LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-24-2007, 12:12 PM   #1
paul123
Member
 
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 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 I aint an expert.
 
Old 04-24-2007, 03:40 PM   #2
twantrd
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.

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

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

:s
cratch:

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, 03:47 PM   #4
paul123
Member
 
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.
 
  


Reply



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 12:30 PM
Apache + PHP Module chrisk5527 Linux - General 16 04-06-2004 06:09 AM
Installing PHP as an apache module? birv Linux - Software 2 04-05-2004 12:22 PM
Can't load php module in Apache pepino Linux - Newbie 2 10-21-2003 10:26 AM
apache and php module mod_php.so kngharv Linux - General 1 11-21-2001 08:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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