Apache does not grab index.php
Posted on 2004-11-18
I configured apache to use files with extension *.php. For some reason when i point to folder, Apache does not take and display index.php automaticly. I have to scroll dawn list of files in folder to find index.php.
How to make apache server to grab index.php automaticly whenever i point to that folder.
Here are steps i did take when configuring php with apache.
By the way i am runing apache 220.127.116.11 and php 4-3-8 win32 on 2000 Server
1. Renamed php.ini-dist to php.ini and copy in C:\WINNT folder
2. Copy php4ts.dll into C:\program files\....\Apache2\bin(just did it, it wasn't, but still not working after restart of apache server)
3.Add three lines of AddType:
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
added -> AddType application/x-httpd-php .php
added -> AddType application/x-httpd-php .php3
added-> AddType application/x-httpd-php-source .phps
4. add one line of:
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
LoadModule php4_module c:/php/sapi/php4apache2.dll
(php4apache2.dll is in path c:/php/sapi path)
And it is still not working.