I have recently installed apache-ssl onto my server to provide a secure site. I have it all installed with php working, but any time that I surf to the site or to any directory within the site where a index.php file is called I am prompted to download the file.
I have all the relevant options set in the httpd.conf file and have restarted so that it uses the new version, but I am still getting nowhere.
I hope that this is just me missing something really obvious.
Many thanks.
I have the following in my httpd.conf file:
Code:
#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.php index.html index.htm index.shtml index.cgi
</IfModule>
[/code]
And
Code:
#
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
php is working when you type the full url into the address bar (
www.domain.com/index.php) but not when it should be reading the directory index.