Latest LQ Deal: Linux Power User Bundle
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 04-24-2007, 01:12 PM   #1
Registered: Nov 2006
Location: UK
Distribution: Mandriva 2007
Posts: 93

Rep: Reputation: 15
Tired and need help! Apache - php module error

Ive done this once before but on this box i just cant see my error. Im no way an expert. Ive just got some time to learn php so Ive loaded Apache on home pc and got it running. 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 a modules@ which is a sybolic link to shared library /usr/li/apache the modules 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 I aint an expert.
Old 04-24-2007, 04:40 PM   #2
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
I never had good faith in loading apache modules from rpms and package managers. Try compiling php5 and loading the new module that way. I've always compiled modules for apache and they always worked just fine.

Old 04-25-2007, 09:11 AM   #3
Registered: Nov 2006
Location: UK
Distribution: Mandriva 2007
Posts: 93

Original Poster
Rep: Reputation: 15
been to hell and back!


Well things got worse, I trashed my system some how, reinstalled and carefully went through adding mysql,apache and php5.

Same problems and finally the whole system went tits again. Eventually I became convinced that after installing Mandriva 2007 then fully updating the system, I had installed an update with a bug. I tried removing packages but it got messy.

Ive been on Mandriva for 6 month or more but I just couldnt take it anylonger....2 days and I just couldnt resolve issues.

Burnt a Kubuntu iso, loaded up, loaded apache2, loaded php module, wrote some basic php and hi ho silver away

Only thing I cant do now is stop and start the server with apachectl stop, nor can do any apachectl commands, bash returns command not found.??????

Im in the shell using sudo su to get root because it seems there isnt option to become root???? But that aint powerful enough for the apache commands?????

Whilst this is all terribly frustrating for a newbie im sure as hell not going back to xp.
Old 04-25-2007, 04:47 PM   #4
Registered: Nov 2006
Location: UK
Distribution: Mandriva 2007
Posts: 93

Original Poster
Rep: Reputation: 15
sortred /etc/init.d/apache2 stop

/etc/init.d/apache2 stop was the answer or even /etc/init.d/apache2ctl stop

Status doesnt work very well compared to how it used too! Something else not set I guess! AAaaaaaaaargh.

And its still better than XP!

Its taken me 12 hours to get used to Kubuntu but im glad i gave it ago. Not bad at all.

Well now im gonna thrash my php text book! lol.


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 4 module not loaded into apache Spreegem Debian 2 10-16-2006 01:30 PM
Apache + PHP Module chrisk5527 Linux - General 16 04-06-2004 07:09 AM
Installing PHP as an apache module? birv Linux - Software 2 04-05-2004 01:22 PM
Can't load php module in Apache pepino Linux - Newbie 2 10-21-2003 11:26 AM
apache and php module kngharv Linux - General 1 11-21-2001 09:39 PM > Forums > Linux Forums > Linux - Newbie

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