LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2006, 11:40 AM   #1
Trevor17BigAl
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Rep: Reputation: 0
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
 
Old 08-23-2006, 12:08 PM   #2
puntjuh
Member
 
Registered: Apr 2006
Location: holland
Distribution: Gentoo / debian / suse / mint
Posts: 558

Rep: Reputation: 42
Copy the file needed from where you installed php5 into the map it is needed. COPY not CUT!
 
Old 08-23-2006, 12:11 PM   #3
Trevor17BigAl
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Original Poster
Rep: Reputation: 0
the file libphp5.so is nowhere to be found. Thats my problem.
 
Old 08-23-2006, 01:40 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
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?
 
Old 08-23-2006, 02:09 PM   #5
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php and apache problem irfanhab Programming 1 05-23-2006 08:42 AM
Apache/PHP/GD Problem johndmann Linux - Software 2 03-15-2006 12:04 PM
Apache and PHP problem justanothersteve Linux - Software 1 02-23-2006 03:03 AM
why is the problem (php, apache?) ilnli Programming 1 03-25-2005 03:12 PM
Apache php index.php problem neurotic Linux - Software 3 11-18-2003 07:02 PM


All times are GMT -5. The time now is 08:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration