RE: PHP and Apache not working together

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxx [mailto:swadams3@xxxxxxxxx] 
Sent: Thursday, August 02, 2007 11:55 AM
To: php-install@xxxxxxxxxxxxx
Subject:  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. 


[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux