Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-24-2007, 03:58 PM   #1
Registered: Nov 2006
Location: UK
Distribution: Mandriva 2007
Posts: 93

Rep: Reputation: 15
Apache error after adding module in httpd.conf - but cant see why????

Ive set apache once before this time i just cant see my error. Im installing apache after I reinstalled linux. Im no way an expert. Ive just got some time to learn php so Ive loaded Apache on home pc and it is running ok. Then i installed PHP for apache through urpmi. fine.

Then I

mv php.ini-recommended /etc/php.ini

no probs.

Next i go to /etc/httpd/ and there is modules@ which is a sybolic link to shared library /usr/li/apache the modules directory has Thats ok then.

Open httpd.conf in editor and add line Loadmodule php5_module modules/
also add AddType application/x-httpd-php .php .html

This is all fine I think. Save httpd.conf and go to command line to start apache and get the following error.

httpd: Syntax error on line 248 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/ into server: /etc/httpd/modules/ undefined symbol: ap_user_id

Line 248 is Loadmodule php5_module modules/ what have I done wrong.

Ive gone over and over this and im sure im missing something I said Im not an expert.
Old 04-25-2007, 01:38 PM   #2
Registered: Apr 2007
Location: Corinth, TX
Distribution: CentOS, RHEL, SLES, ubuntu
Posts: 44

Rep: Reputation: 15
it looks like you've got a version conflict somewhere. The module you're loading is trying to reference a symbol that apache doesn't have, so it croaks. Verify that you've got the right module for your version of apache and that there aren't any other modules you need to load first. I think that will help you fix your problem.
Old 04-26-2007, 04:53 AM   #3
Registered: Nov 2006
Location: UK
Distribution: Mandriva 2007
Posts: 93

Original Poster
Rep: Reputation: 15
Thanks for the reply. I think you are right. Im much further up the road now with everything running, mysql,apache and php but in a tantrum I migrated to Kubuntu aswell.

looking back I now think I selected a php module that was only suitable for the latest apache prefork which i didnt have. something like that.

The next thing that I ran into was that the apache2 doesnt seem to run apachectl command. thats when i finally relised something was a miss.

In desperation I had another thread running in newbie forum. More detials of apache2ctl over there.

Thanks for the 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 module not in httpd.conf alkmie Mandriva 2 07-19-2006 08:43 PM
Problems Adding Directives to the httpd.conf file kaplan71 Linux - Software 1 03-25-2005 08:56 AM
apache httpd.conf ilnli Linux - Software 9 01-11-2005 07:58 AM
Apache httpd.conf help BoardinBum Linux - Software 4 12-29-2004 01:59 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 11:32 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:29 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
Open Source Consulting | Domain Registration