RE: [PHP-INSTALL] PHP and Apache not working together
| From: | Andy Stratton | Date: | Thu, 02 Aug 2007 16:01:37 +0000 |
| Subject: | RE: [PHP-INSTALL] PHP and Apache not working together | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-18146@lists.php.net to get a copy of this message | ||
This has happened to my when I haven't included the following directive in httpd.conf for
Apache:
AddType application/x-httpd-php .php .php4 .php5 .phtml
The last bit are file extensions you want recognized as PHP scripts... you can just use .php or keep
adding extensions, separated by a space (like above).
Hope this helps, let me know.
--
Andy Stratton, ZCE
Software/Network Engineer
COMPASS Information Systems, Inc.
www.compassinfo.net
(410) 923-6300 office
(410) 923-2820 fax
(443) 623-6835 mobile
-----Original Message-----
From: swadams3@tx.rr.com [mailto:swadams3@tx.rr.com]
Sent: Thursday, August 02, 2007 11:55 AM
To: php-install@lists.php.net
Subject: [PHP-INSTALL] PHP and Apache not working together
I'm trying to get PHP and Apache 2 working together in Fedora 6. I followed the
instructions on php.net for installing PHP, and these instructions have worked
fine on Red Hat and SuSE systems. Apache runs, and I can run PHP from the
command line, but if I try to load a PHP script in a browser, I get a dialog
window asking if I want to save the script. The only thing I see in Apache's
error log about PHP is:
[notice] Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8b PHP/5.2.3 configured
-- resuming normal operations
I have PHP logging errors to a file and I know that's working because the file
contains errors about not being able to find files certain scripts tried to
include, but nothing about PHP being misconfigured or not being able to find
things it needs.
Any ideas about why this is happening would be greatly appreciated.