LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 10: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-04-2002, 11:39 PM   #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, 06: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, 06: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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