LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-04-2002, 11:19 AM   #1
mks113
LQ Newbie
 
Registered: Sep 2002
Location: Saint John, NB, Canada
Distribution: Redhat 7.3
Posts: 5

Rep: Reputation: 0
mod_php +apache + redhat 7.3 +i486 -> steam frome ears


I am really struggling to get php running on my site. It ran "out of the box" on a P166 that I had running, but on my 486 that I use as a server/firewall, I just can't seem to get php working under apache!

PHP is installed, and I can pipe code through it from the console, but mod_php doesn't seem to be present. http.conf is set up properly to handle php, but returns the php source.

I'm not familiar with the installation details to quite understand the relationship between php and mod_php and what needs to be done.

Can anyone give me some hints? I've been working on this for weeks without success! I want my squirrelmail back!

(p.s. I upgraded the 486 from RH 6.1 to 7.3 and decided it should be easier to use it as the web server rather than get port forwarding working to the very flakey P166. I really need a new firewall/server!)

TIA,

Michael
 
Old 09-05-2002, 12:39 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
try this change to your httpd.conf

#<IfDefine HAVE_PHP>
LoadModule php_module modules/mod_php.so
#</IfDefine>

#<IfDefine HAVE_PHP>
AddModule mod_php.c
#</IfDefine>


and make sure you actually have the module

restart the server
 
Old 09-05-2002, 07:10 AM   #3
mks113
LQ Newbie
 
Registered: Sep 2002
Location: Saint John, NB, Canada
Distribution: Redhat 7.3
Posts: 5

Original Poster
Rep: Reputation: 0
I played a bit more last night. I definitely do not have the module. Is mod_php not part of a RedHat rpm?? httpd-l only lists a couple modules, and there is no mod_php.so in the apache/modules directory.

I tried to compile php --with-apache but it appears that the correct apache components aren't in place.

The documentation on php.net seem to make it so simple! Why have I been playing with this for a month without managing to even get a clear explaination of the problem until now?

Michael
 
Old 09-06-2002, 07:30 AM   #4
mks113
LQ Newbie
 
Registered: Sep 2002
Location: Saint John, NB, Canada
Distribution: Redhat 7.3
Posts: 5

Original Poster
Rep: Reputation: 0
I got it working, but I'm not quite sure how. I erased the php rpm and reinstalled it as well as trying to compile php. I must have been using a browser cache, because when I tried my test file from work, it worked!

So I don't have a clear idea as to what caused it, but after I tried 20 different things, something worked!

Michael
 
  


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
FROME Kde TO Gnome MaxtoRs Linux - Software 1 04-20-2005 09:52 AM
Apache and mod_php :( bifur Linux - Software 1 02-29-2004 10:45 AM
Slack-8.1: Apache + mod_php pickledbeans Slackware 2 07-07-2002 12:40 PM
mod_php for apache in Redhat etfetius Linux - Software 1 05-24-2002 01:39 AM
apache and php module mod_php.so kngharv Linux - General 1 11-21-2001 09:39 PM


All times are GMT -5. The time now is 04:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration