LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apache && php help needed (https://www.linuxquestions.org/questions/linux-newbie-8/apache-and-and-php-help-needed-307378/)

issey 03-29-2005 09:14 AM

apache && php help needed
 
hey linux lovers....help me

i installed apache2 from source installation using the following command..

./configure --prefix=/usr/local/apache2 --enable-module=so

and php5 ::

./configure --with-apxs2=/usr/local/apache2/bin/apxs

and configured the httpd.conf as :::

LoadModule php5_module libexec/libphp5.so

and added

AddType application/x-httpd-php .php

and started the service with the command
/usr/local/apache2/bin/apachectl start

and it displayes an error msg saying cannot load /usr/local/apache2/libexec/libphp5.so into server: /usr/local/apache2/libexec/libphp5.so: cannot open shared object file no such file or directory...

and when php files are opend in browser the get downloaded and cannot be viewd...

where did i go wrong????

Thanks in Advance:::
:newbie:

issey 03-29-2005 09:26 AM

anybody to help me....

tuxrules 03-29-2005 10:04 AM

The error might be because you don't have libphp5.so in the path that you think it is. Try
#locate libphp5.so

and see where it is...

issey 03-30-2005 06:58 AM

exatly to where do i need to place it..???

tuxrules 03-30-2005 09:36 AM

Quote:

and it displayes an error msg saying cannot load /usr/local/apache2/libexec/libphp5.so into server: /usr/local/apache2/libexec/libphp5.so: cannot open shared object file no such file or directory
Apache is looking for libphp5.so in /usr/local/apache2/libexec. Locate libphp5.so and modify the path in Apache configuration file (httdp.conf).

See if that works...

atom 03-30-2005 11:28 AM

1) Did you run make install when you compiled php? If so, do what tuxrules has told you:
Code:

locate libphp5.so
You will get output similar to this:
Code:

/usr/lib/libphp5.so
/usr/lib/apache2/modules/libphp5.so

Now pick any one of those and copy it to ServerRoot/libexec/, where ServerRoot is the directory apache2 is installed (you can find it in the /etc/httpd.conf under directive ServerRoot. In your case, it seems to be /usr/local/apache2/)

That should solve it.
Oh, and verify you are not using apache 2.0.52, it doesn't work with php5. Been fuzzling my head for months when php refused to read the config file. Use 2.0.53 instead, it works perfectly.



All times are GMT -5. The time now is 12:45 AM.