Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: 0
Apache Server error,

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/ is garbled - perhaps this is not an Apache module DSO?

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

LoadModule php5_module modules/

Anyone have a solution for this?

Best Regards

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

Rep: Reputation: 15

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
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 file but i found this article and it solved it. results in a valid 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
LQ Newbie
Registered: Aug 2004
Posts: 9

Rep: Reputation: 0
the link is


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/ 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 jun_tuko Linux - Software 7 01-05-2008 11:12 PM
Cannot load /usr/lib/apache2/ into server Kristijan Slackware 1 10-08-2005 12:28 AM
FreeBSD PHP5 ports error - is not a valid libtool archive *BSD 2 08-18-2005 10:27 AM
Apache Error (Internal Server Error) dwarf007 Linux - Software 1 07-17-2005 01:16 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:12 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