I cannot find files correctly using my web browser. I am using the latest stable versions of Apache and PHP on WinXP.
I have summarised what I have done as follows:
I set the server info in Apache to: localhost
Tried http://localhost which opened the default file ok.
Then I changed the DirectoryIndex to also look for index.htm and index.html
In httpd.conf changed parameters as follows:
DocumentRoot "C:/web"
<Directory "C:/web">
and added:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
PHP:
I changed php.ini file and moved it to the windows:
doc_root = "c:\web"
extension_dir = "c:\php\extensions"
Also copied php4apache.dll and php4ts.dll to c:\php
I created a file 'c:\web\test.php' and started Apache and tried to access the file using 'http://localhost/test.php' but a message something like 'file not found was returned'.
Then I tried 'http://localhost' from the browser - this returned two files. These two files actually reside in the C:\Windows\Kazaa\My Shared Folders' directory - weird.
I created a test.php file in the above directory and tried to access it from the browser as follows: 'http://localhost/test.php' again file not found error was returned.
The I accessed 'http://localhost' which showed the list of three files (including the test.php file). When I clicked this file it correctly opened the test.php file - however in the address bar the address changed to 'http://localhost/12457\test.php'
Can somebody please help in explaining what I have done wrong and how to rectify this bizarre problem. Is it a problem with Kazaa - should I uninstall Kazaa?
Your help will be most appreciated.
Manny