LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-24-2007, 02:58 PM   #1
paul123
Member
 
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 mod_php5.so. Thats ok then.

Open httpd.conf in editor and add line Loadmodule php5_module modules/mod_php5.so
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/mod_php5.so into server: /etc/httpd/modules/mod_php5.so: undefined symbol: ap_user_id


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

Ive gone over and over this and im sure im missing something stupid....like I said Im not an expert.
 
Old 04-25-2007, 12:38 PM   #2
djjoshuad
Member
 
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, 03:53 AM   #3
paul123
Member
 
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.
 
  


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 07:43 PM
Problems Adding Directives to the httpd.conf file kaplan71 Linux - Software 1 03-25-2005 07:56 AM
apache httpd.conf ilnli Linux - Software 9 01-11-2005 06:58 AM
Apache httpd.conf help BoardinBum Linux - Software 4 12-29-2004 12:59 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 10:32 PM


All times are GMT -5. The time now is 04:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration