[RESOLVED] Setting Apache and PHP5
Hi guys, i've recently installed Apache and PHP5 in my system (winxp). I've edited httpd.conf, setting DocumentRoot to "C:\public_html" but when i tried to open a website i'm developing i get:
HTML Code:
Forbidden
You don't have permission to access / on this server.
--------------------------------------------------------------------
Apache/2.0.54 (Win32) PHP/5.0.3 Server at localhost Port 80
any clue why this is happening?
I tried openning port 80 in the windows firewall, but nothing chances. Also open that port in the machine that connects directly to internet, i have a lan connection.
Well, thanks in advance.
Matias.-
Re: Setting Apache and PHP5
You get this error because you have no default file in your document root. You need to put a file in there called index.html.
If you would like a directory listing instead then you need to find the directory container for the document root directory and add the following:
Code:
<Directory "C:\public_html">
Options +Indexes
</Directory>
Re: Setting Apache and PHP5
Quote:
Originally Posted by visualAd
You get this error because you have no default file in your document root. You need to put a file in there called index.html.
I've always worked without a index.html but an index.php... however i tried this on httpd.conf:
HTML Code:
DirectoryIndex index.html index.html.var index.php
And now instead of the the 403 err, a window appears telling me if i want to download localhost ?!?!?!?
:sick: