Re: Asked to save PHP file on Apache instead of running file
| From: | Fabian Mellegard | Date: | Thu, 23 Aug 2001 06:40:21 +0000 |
| Subject: | Re: Asked to save PHP file on Apache instead of running file | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-4071@lists.php.net to get a copy of this message | ||
Hi,
I have found the problem.
It might be obvious, but for me (who have a newbe) it took some day of
reading FAQ's, news groups and install guides.
If you have the problem that you are asked to save the PHP-file then the
problem can be:
1. You have not included the following lines in thhpd.conf (but this is
obvious since every one is telling you to do this)
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
2. You are installing PHP as a DSO and not loaded the DOS, i.e. not
included the following reference to the PHP-lib in httpd.conf
LoadModule php4_module /opt/apache/libexec/libphp4.so
I have configured PHP as follows:
./configure -prefix=/opt/apache -with-mysgl=/opt/mysql/
--with-config-file-path=/opt/apache/conf/ --with-apxs=/opt/apache/bin/apxs
Best regards,
Fabian Mellegard