LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache and PHP problem (https://www.linuxquestions.org/questions/linux-newbie-8/apache-and-php-problem-476606/)

Trevor17BigAl 08-23-2006 10:40 AM

Apache and PHP problem
 
Hi, I've seen this problem posted in a few places but never saw a solution suitable for me.
I have installed apache 2.2.3 and php 5.1.5.
I have added the necessary lines to my httpd.conf and when trying to start apache again using this command:
Code:

/usr/local/apache2/bin/apachectl start
i get the following error:
Code:

httpd: Syntax error on line 54 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
I have searched for libphp5.so using "locate libphp5.so" and found nothing.
I am a linux newbie and im using CentOS 4.3.
If anyone can help me i would be very grateful.
Thanks

puntjuh 08-23-2006 11:08 AM

Copy the file needed from where you installed php5 into the map it is needed. COPY not CUT!

Trevor17BigAl 08-23-2006 11:11 AM

the file libphp5.so is nowhere to be found. Thats my problem.

bathory 08-23-2006 12:40 PM

Could you give as more details, like how did you installed apache and php? Did you used your package manager, or did you compiled them from source?

jstephens84 08-23-2006 01:09 PM

Try downloading the source and see if they supply the library. More than likly you are going to have to compile php from source.


All times are GMT -5. The time now is 07:03 PM.