LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-20-2004, 05:39 AM   #1
PennyroyalFrog
Member
 
Registered: Mar 2004
Location: Michigan
Distribution: Gentoo 2006.1
Posts: 107

Rep: Reputation: 15
where to get mod_php


i installed the php 4.2.2 rpm from the red hat disk but cannot find the mod_php. anybody know where to look?
 
Old 05-20-2004, 05:47 AM   #2
aps_rewa
LQ Newbie
 
Registered: May 2004
Location: INDIA
Distribution: RedHat, Mandrake, Debian
Posts: 3

Rep: Reputation: 0
hi
you can find mod_php into Red Hat CD's it is included with apache
and when you install apache it will be automatically installed on your system
 
Old 05-20-2004, 05:56 AM   #3
jag
Member
 
Registered: Jun 2001
Location: Philippines
Distribution: Slackware
Posts: 34

Rep: Reputation: 15
sometimes you have to uncomment a line in your httpd.conf that load the module when httpd start.
 
Old 05-20-2004, 09:47 AM   #4
PennyroyalFrog
Member
 
Registered: Mar 2004
Location: Michigan
Distribution: Gentoo 2006.1
Posts: 107

Original Poster
Rep: Reputation: 15
i can't find it on any of the red hat CDs. i'm using red hat 9. you sure it's on there?
 
Old 05-20-2004, 02:42 PM   #5
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
PennyroyalFrog

Look in /usr/lib/httpd/modules see if you can find libphp4.so

Then look in /etc/httpd/conf.d see if you have a php.conf file

If you have both of these PHP is good to go

Pete
 
Old 05-24-2004, 02:27 PM   #6
PennyroyalFrog
Member
 
Registered: Mar 2004
Location: Michigan
Distribution: Gentoo 2006.1
Posts: 107

Original Poster
Rep: Reputation: 15
Thanks Pete for the reply.

I do have both of those yet I get an 'internal service error' when trying to access .php files on the webserver. i think there are there a few lines i need to add or uncomment like jag said. anybody know how to edit the httpd.conf properly?

Thanks in advance
 
Old 05-24-2004, 06:31 PM   #7
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
PennyroyalFrog

/etc/httpd/conf.d should look like this

# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

LoadModule php4_module modules/libphp4.so

#
# Cause the PHP interpreter handle files with a .php extension.
#
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
</Files>

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

Make sure this is uncommented in httpd.conf

# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

Pete
 
Old 06-03-2004, 07:36 PM   #8
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Rep: Reputation: 31
I'm having the same problem here. I'm trying to get ganglia to work and it seems to do fine, but it won't show the RRD charts. I was thinking it was RRD with the problem, but after viewing the files, they are changing every minute.

The install directions say I need to put this in my httpd.conf file:
##########################################
<IfDefine HAVE_PHP4>
LoadModule php4_module extramodules/libphp4.so
AddModule mod_php4.c
</IfDefine>

AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
##########################################

But it keeps hanging up on this 'AddModule mod_php4.c' line.

Is there a way I can test to see if PHP4 is working? All my graphs come up with 'X' and I'm stumped...

Last edited by mijohnst; 06-03-2004 at 07:48 PM.
 
  


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
mod_php problem in gentoo doralsoral Linux - Software 1 11-29-2005 02:18 AM
Apache and mod_php :( bifur Linux - Software 1 02-29-2004 10:45 AM
mod_php installed, but still no mime... lhoff Linux - Software 0 11-19-2002 02:03 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

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

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