Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-23-2006, 10:40 AM   #1
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:
/usr/local/apache2/bin/apachectl start
i get the following error:
httpd: Syntax error on line 54 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/ into server: /usr/local/apache2/modules/ cannot open shared object file: No such file or directory
I have searched for using "locate" and found nothing.
I am a linux newbie and im using CentOS 4.3.
If anyone can help me i would be very grateful.
Old 08-23-2006, 11:08 AM   #2
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, 11:11 AM   #3
LQ Newbie
Registered: Mar 2005
Posts: 9

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

Rep: Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794
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, 01:09 PM   #5
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.


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 07:42 AM
Apache/PHP/GD Problem johndmann Linux - Software 2 03-15-2006 11:04 AM
Apache and PHP problem justanothersteve Linux - Software 1 02-23-2006 02:03 AM
why is the problem (php, apache?) ilnli Programming 1 03-25-2005 02:12 PM
Apache php index.php problem neurotic Linux - Software 3 11-18-2003 06:02 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:16 PM.

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