LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-16-2006, 08:04 PM   #1
Hit3k
Member
 
Registered: Nov 2005
Location: Australia
Distribution: Ubuntu, Slackware, Gentoo
Posts: 32

Rep: Reputation: 15
Apache Not Loading Modules


Sorry I dont know if this is the right area to do this.
I have emerged PHP and mod_php for apache but when I got to a php file it displays the source of the file any ideas?
 
Old 04-17-2006, 02:50 PM   #2
Harry Seldon
Member
 
Registered: Feb 2004
Distribution: SLES 9
Posts: 112

Rep: Reputation: 15
Do you have a php config file under /etc/apache2/conf.d?

# ls
. .. apache2-manual.conf inst_server.conf.in mod_perl.conf php4.conf susehelp.conf you_server.conf

apache won't include any modules if it doesn't have the config file to pull from.
 
Old 04-17-2006, 03:06 PM   #3
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 68
Gentoo uses /etc/apache2/httpd.conf now, but you don't need to edit it to get php to work.

What you need to do is edit /etc/conf.d/apache2 and add "-D PHPN" where 'N' is either 4 or 5 depending on your php version like so:
Code:
APACHE2_OPTS="-D PHP4"
Now restart apache.
 
  


Reply

Tags
apache, mod


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2 Modules which I can disable loading.. latino Linux - Networking 2 10-16-2004 03:14 AM
Loading modules error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 11:10 AM
modules are loading that shouldn't in my rc.modules thrice Slackware 3 05-11-2004 10:35 PM
loading modules w/o rc.modules e1000 Slackware 3 01-09-2004 02:57 AM
Loading Modules Mega Man X Linux - Newbie 6 06-05-2003 05:45 AM


All times are GMT -5. The time now is 01:06 PM.

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