Forum Home
Press F1
 
Thread ID: 59468 2005-07-03 12:06:00 apache server, index.php not appearing and other questions Morgenmuffel (187) Press F1
Post ID Timestamp Content User
369032 2005-07-03 12:06:00 Hi All

First off, i have
win2K professional
with apache server mysql and Php installed and running

now when i browse to my phpmyadmin directory, using my webbrowser

localhost
(obvious the above won't work on your machine)

I get the directory listing, and have to scroll down and click on the index.php page,
My question is -- Why doesn't the page automatically come up when i browse to that directory, I'm sure it's a setting somewhere but I don't really even now what I should be searching for, i've tried searching google but if I don't know the terminology I can't find anything relevant

The other questions I have are

I have a hosts file which blocks ads by redirecting them to the localhost 127.0.0.1 (I think), This replaces a lot of the ads with a "File not Found" page , how do i replace this file not found page with a custom error page for example a blank page .

and there was another question but it has slipped my mind so i will post back tomorrow, Thanks all
Morgenmuffel (187)
369033 2005-07-03 20:18:00 I may be able to help with the first question

I just recently setup mysql, php, and apache on my fc2 lappy and had the same problem. The solution for me was to list index.php as a page to search for when say the web server was accessed from my xp box using the pc ip that apache is hosted on (http:\\192.168.xx.xx).

Im not sure where you find this option in the windows version of apache, but have a look for it youll find other pages for the server to search for when accessed either using http:\\localhost (http:\\127.0.0.1 will also do the same thing)or from another machine http:\\<machine ip that apache is hosted on>.

You can also use IIS but you will need a plugin for php as my research indicates that php is not nativly supported by IIS.
beama (111)
369034 2005-07-03 20:35:00 Staright from my apache config file (/etc/apache2/conf/commonapache.conf) it should be the same in windows.


###
### 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.html.var index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm
</IfModule>


That works perfectly for apache2 under gentoo.
ILikeLinux (1669)
1