Re: PHP doesn't work on Redhat 7.2
| From: | Marc Maniscalco | Date: | Wed, 26 Dec 2001 14:31:12 +0000 |
| Subject: | Re: PHP doesn't work on Redhat 7.2 | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-5389@lists.php.net to get a copy of this message | ||
Good PHP install tutorial for linux:
http://www.linuxguruz.org/z.php?id=31
This may solve your problem.
# Uncomment or Change the following lines in
/usr/local/apache/conf/httpd.conf
<IfModule mod_dir.c>
DirectoryIndex index.html index.php index.php3 index.phtml
</IfModule>
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .html .htm .php .php3 .phtml
AddType application/x-httpd-php-source .phps
cp /usr/local/php-4.1.0/php.ini-dist /usr/local/apache/conf/php.ini
"Michiel Van Otegem )" <michiel_lists@aspnl.com> wrote in message
news:002501c18bf9$c1fa52d0$4f00a8c0@itcomposer.nl...
Here's the deal...
I've downloaded Redhat 7.2, created two CDs and installed it.
I installed it with Apache and all the PHP modules.
I found out that Apache didn't run autmoatically after booting, so I changed
that. Apache now runs fine.
However, when I request a PHP file, I get the contents of the PHP file,
without it being executed by the server.
When I open the Apache Config tool, I see index.php set as the default page,
so why isn't any .php file being executed?
I tried chmodding so it has execute rights... nothing.
My files are in the root webdir (index.html loads fine over HTTP), so it
should work.
Anybody have clue what I have to do? Thanks.
/Michiel