WAMP is by default configured to permit access to only the machine on which it is running. So if you try to access it from your mobile or any other device on the network it will give you the following error :
To solve this you need to grant permission. For that follow the following steps:
1. Click on the WAMP icon.
2. Click on Apache.
3. Open httpd-vhosts.conf
4. Change 'Require local' to 'Require all granted'.
5. Restart your server.
Remember, when the server and the client are not the same device, you cannot access via localhost. You need the IP address of the device. For that follow the following steps:
1. Open Command Prompt.
2. Type ipconfig.
3. Read the IPv4 address under the Wireless LAN adapter Wi-Fi.
4. Use this address to access the files from the mobile browser. (Make sure you are connected to the same wireless network.)
Example: 192.168.1.5/temp/index.html
“Forbidden You don't have permission to access /phpmyadmin/ on this server.”
1. Click on the WAMP icon.
2. Click on Apache.
3. Open httpd-vhosts.conf
4. Change 'Require local' to 'Require all granted'.
5. Restart your server.
Remember, when the server and the client are not the same device, you cannot access via localhost. You need the IP address of the device. For that follow the following steps:
1. Open Command Prompt.
2. Type ipconfig.
3. Read the IPv4 address under the Wireless LAN adapter Wi-Fi.
4. Use this address to access the files from the mobile browser. (Make sure you are connected to the same wireless network.)
Example: 192.168.1.5/temp/index.html
Comments
Post a Comment