apache - WAMP server - when i write my IP adress, it doesnt redirect to index.php
2014-04
i downloaded WAMP server (php and apache and mysql) and i have problem. When i am on localhost, all works fine, but when i write my public IP in browser, it says:
You don't have permission to access / on this server.
but when i add index.php in adress, it works fine.
I already tried add DirectoryIndex index.php line to .htaccess but without effect
Any ideas?
You may have not enough permission to access your localhost with your local ip address. try this,
Solution :
- Go to C:\WAMP\bin\apache\apache2.2.17\conf (version may change)
- Open httpd.conf file in notepad.
Find the section given below. By default it will be like this.
<Directory "c:/wamp/www/">
Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
>Now change this section as given below.
<Directory "c:/wamp/www/">
Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
#Deny from all
#Allow from 127.0.0.1
Allow from all
</Directory>
- Restart apache service.
- Now you will be able to get the localhost by using your local ip address also.
Good luck Bro :)
I have WAMP on Windows XP, and the Apache server runs just fine if I access the content via localhost.
I followed this guide to set up access from other clients: http://www.petri.co.il/install_wamp_server_on_vista.htm
So, I opened port 80 in my router to forward requests to Apache. Went to www.whatismyip.com to see where to point my browser. The server is actually hit, but takes forever to load content and the browser eventually gives up. Any ideas?
Most ISP's block incoming port 80 so that people do not do exactly what you are trying to do. Try using a non-standard port (8080, 888, etc.) and see if you have any better luck that way.