LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-19-2006, 08:42 AM   #1
crillegs
LQ Newbie
 
Registered: Nov 2005
Posts: 8

Rep: Reputation: 0
Apache Server error, libphp5.so


Hi Linuxquestions

I've installed Apache with PHP5, but when I try to start the server I get this error:

[root@localhost crillegs]# /usr/local/apache2/bin/apachectl restart httpd: Syntax error on line 408 of /usr/local/apache2/conf/httpd.conf: API module structure `php5_module' in file /usr/local/apache2/modules/libphp5.so is garbled - perhaps this is not an Apache module DSO?

Well line 408 (witch I added myself, to include libphp5.so, and that line is not the problem) tells:

LoadModule php5_module modules/libphp5.so

Anyone have a solution for this?

Best Regards

Christian S.
 
Old 05-20-2006, 02:24 AM   #2
vikasumit
Member
 
Registered: Apr 2006
Location: Delhi, India
Distribution: Fedore , CentOs, Debian
Posts: 121

Rep: Reputation: 15
Hi,

It seems your PHP5 so is corrupted or not compile for Apache on your machine, I suggest you download PHP5 for apache source and recomiple it and install.

also try to run httpd -t to test your config before starting service..

Hope that help
 
Old 05-23-2006, 01:53 PM   #3
stephenb
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Rep: Reputation: 0
Apache, php5 and mysql have problems working together.

i spent ages trying to figure out a missing libphp5.so file but i found this article and it solved it. results in a valid php5.so file and allows apache to start without errors.

(this won't let me post a link so i'll add it in a seperate post)


My setup is
- Apache 2
- PHP5
- MySQL 5

and all are working fine. If you try what this article suggests and are still having trouble, give me a shout back.
 
Old 05-23-2006, 01:56 PM   #4
stephenb
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Rep: Reputation: 0
the link is http://archives.neohapsis.com/archiv...4-q3/0980.html
 
  


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
PHP5 + Apache 2.x : /usr/local/modules/libphp5.so: Undefined symbol "apr_table_set" Ephracis Linux - Software 6 10-01-2010 12:26 PM
Error in PHP 5.0.5 and Apache 1.3.34 - Cannot load libphp5.so jun_tuko Linux - Software 7 01-05-2008 11:12 PM
Cannot load /usr/lib/apache2/libphp5.so into server Kristijan Slackware 1 10-08-2005 12:28 AM
FreeBSD PHP5 ports error - libphp5.la is not a valid libtool archive BizHat.com *BSD 2 08-18-2005 10:27 AM
Apache Error (Internal Server Error) dwarf007 Linux - Software 1 07-17-2005 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:32 AM.

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
Open Source Consulting | Domain Registration