|
-
Jul 24th, 2005, 09:17 PM
#1
Thread Starter
Member
[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.-
... and the rivers shall open for the righteous, and the rivers shall open for the righteous, and rivers shall open for the righteous, someday ....
-
Jul 25th, 2005, 12:13 AM
#2
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>
-
Jul 25th, 2005, 12:28 AM
#3
Thread Starter
Member
Re: Setting Apache and PHP5
 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 ?!?!?!?
... and the rivers shall open for the righteous, and the rivers shall open for the righteous, and rivers shall open for the righteous, someday ....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|