[Techtalk] RedHat 8, Apache and PHP
Chan Hong Guan
hgchan at singnet.com.sg
Fri Feb 28 10:15:05 EST 2003
Beth Johnson wrote:
> Hi there,
> I'm trying to get PHP working with Apache; does anyone have these
> working together on Psyche?
I think you missed mod_php.
If you are just using php, you don't need mod_perl, mod_python.
If you have ssl mod_ssl is fine.
If you are doing good old php,
you only need php, you don't need the rest of the php modules
> For Apache this is what I have installed via rpm:
> For PHP this is what I have installed via rpm:
> I've checked for this line in my httpd.conf:
> # Load config files from the config directory "/etc/httpd/conf.d".
> Include conf.d/*.conf
> Checked that these lines are in /etc/httpd/conf.d/php.conf:
> LoadModule php4_module modules/libphp4.so
> # Cause the PHP interpreter handle files with a .php extension.
> <Files *.php>
> SetOutputFilter PHP
> SetInputFilter PHP
> LimitRequestBody 524288
> # Add index.php to the list of files that will be served as directory
> # indexes.
> DirectoryIndex index.php
> I've restarted the server.
> I've created the following document, set 777 for now, in /var/www/html
> <title>Testing PHP</title>
> <h1>Testing PHP</h1>
> <p>If you have php working, you'll get a greeting;</p>
> <?php print "Hello world!"; ?>
> When I pull it up the html renders fine, but the php doesn't execute.
> I've tried downgrading httpd to Apache-1.3.27, but that leads to
> dependency hell. I've also looked at building from source, but the
> documentation assumes that you know a lot about what is going on, and
> that's not me!
> Any help here?
> 0 for 2 in stuff she wanted to get done on her box this week. :-(
More information about the Techtalk