LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help fixing/reconfiguring PHP on Apache (http://www.linuxquestions.org/questions/linux-software-2/help-fixing-reconfiguring-php-on-apache-317950/)

PolishSausageof 04-28-2005 12:41 AM

Help fixing/reconfiguring PHP on Apache
 
hey all,
i have an Apache server running and i've been wanting to get PHP on it to play with, but i have had some problems. after finding my way out of dependency hell i got ./configure to finally run through, but i had to do:

./ configure --disable-simplexml --disable-libxml --disable-xml --without-pear

if i didnt do that then i would get an error dealing with my xml2-config file. so i did that and then make and then make install and all was well, so i thought.

i have a book "Beginning PHP 5 and MySQL" by W. Jason Gilmore that i've been using to help my install and the book says to use:

./configure --with-apxs2=/usr/local/apache2/bin/apxs [other options]

i dont know what that does, so i dont know that because I DIDNT select that option and installed it, if that messed my install up. as the book states, i also did:

cp php.ini-dist /usr/local/lib/php.ini

and i also added to my httpd.conf file the following:

LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php

so now when i try to start Apache it says:

[root@localhost root]# /usr/local/apache2/bin/apachectl start Syntax error on line 233 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
[root@localhost root]#

i installed php-5.0.4 and httpd-2.0.54
sorry for the long post, any help is much appreciated!!!

munchkins 04-28-2005 09:54 AM

enable php first ib your httpd.conf


All times are GMT -5. The time now is 05:43 PM.