I know this is an old post. However, I have the same problem. I can not use any of the php files. I could not find anything called 'DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.shtml' in the /etc/apache2/apache2.conf file. And, the httpd.conf file appears to be empty.
I do have all of the packages and modules I could find listed for using PHP5 in Debian with the Apache 2.2 Server installed. The only response I can get is "The requested URL http://localhost/home/ande/
was not found on this server.'
The only clear instructions I have found so far are only dealing with installing onto a server on the internet. Everything for using the localhost are one or two word phrases and no help.
I would surely appreciate some actual information on the configuration required for using PHP5 on the LocalHost. Especially since it was installed using the Package Manager with no errors and everything indicates PHP5 is installed and available.
Originally Posted by gilead
Did you update your .conf file as the following recommends?
If you want to allow the different index files types check for the following line in /etc/apache2/apache2.conf file:
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.shtml
Also, in your .conf files after all of the installs are there lines like these (I'm using PHP 5)?
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps