|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
I had successfully installed Apache, PHP and Mysql.
Apache are Mysql are working perfectly fine. The Root directory of Apache is /home/www. For safety I have also symbolically linked it under /usr/local. But even after enabling the AddType line for php4 my php scripts dont execute on the Server. I have tried enabling the AddModule for php4.so. In such case on running apachectl configtest I get the following error API module structure `php4_module' in file /home/www/libexec/libphp4.so is garbl ed - perhaps this is not an Apache module DSO? Could any one guide me reg. what corrective steps to be taken ? |
|
#2
|
|||
|
|||
|
>> For safety I have also symbolically linked it under /usr/local
Mind to clarify this? >> Could any one guide me reg. what corrective steps to be taken ? Yes but you should first tell us how did you install Apache + PHP (what configure options). |
|
#3
|
|||
|
|||
|
The downloads for apache and php were downloaded
under an area /home/pccs and unzipped/untarred. The installation material was therefore copied under /home/pccs/apache_1.3.12 and /home/pccs/php-4.0.2. The the installation was carried out using the procedure mentioned under INSTALLATION file of php. The code used is as follows : gunzip -c apache_1.3.x.tar.gz | tar xf - $ cd apache_1.3.x $ ./configure $ cd .. $ gunzip -c php-4.0.x.tar.gz | tar xf - $ cd php-4.0.x $ ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars $ make $ make install $ cd ../apache_1.3.x $ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a (The above line is correct! Yes, we know libphp4.a does not exist at this stage. It isn't supposed to. It will be created.) $ make (you should now have an httpd binary which you can copy to your Apache bin dir) $ cd ../php-4.0.x $ cp php.ini-dist /usr/local/lib/php.ini Edit your httpd.conf or srm.conf file and add: AddType application/x-httpd-php .php ( NOTE : All operations were performed as root ) I had also tried static installation. I am not very clear reg. which to use for my system by the way.. |
|
#4
|
|||
|
|||
|
From your previous post:
>> php4_module' in file /home/www/libexec/libphp4.so is garbl But you had $ ./configure --prefix=/www which the --prefix don't match. >> $ cp php.ini-dist /usr/local/lib/php.ini From the configure script of php source: ac_help="$ac_help --with-config-file-path=PATH Sets the path in which to look for php.ini, defaults to PREFIX/lib" But your PREFIX was /www, so php.ini should be located in /www/lib/php.ini, UNLESS you have specified --with-config-file-path but you haven't. >> $ ./configure --with-mysql --with-mysql alone without specifying the path would fail to add mysql support 99.9999% of the time because your mysql more than likely was installed to a non-standard location. Anyhow, I suggest you to follow the DSO method and redo everything again. |
|
#5
|
|||
|
|||
|
check out my guide to setting up apache on linux (unfortunately with interbase for you)... this system is pretty much foolproof. Post if you have any problems.
-S |
|
#6
|
|||
|
|||
|
Thanks Niyogi for the reply..
Where is your guide located ????? bsd4... I had removed previous installatiosn and again tried the Aapache..PHP4 installation ( DSO ). Still the apachectl configtest gives the error for the php4.so file ( garbled file..). I am now thinking of downloading latest php source version and trying again.. |
|
#7
|
|||
|
|||
|
bajaar.com
-S |
|
#8
|
|||
|
|||
|
Is your server up ???
I am getting connection failure to it ..both on name and IP addr. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Apache-PHP Installation problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|