Softwareβ±οΈ 2 min readπ
2026-05-31
How to Fix: WAMP error: Forbidden You don't have permission to access /phpmyadmin/ on this server
Permission access error with phpMyAdmin in WAMP on Windows 7.
Quick Answer: Check the phpMyAdmin configuration file (usually located at C:\xampp\phpMyAdmin\config.php) and ensure that the 'allow_url_fopen' directive is set to 'On'. Also, verify that the Apache server is configured correctly and the phpMyAdmin directory has the correct permissions.
π Table of Contents
You have successfully installed WAMP and are encountering the 'Forbidden' error while trying to access phpMyAdmin. This issue occurs due to a lack of proper configuration or incorrect file permissions.
π‘ Why You Are Getting This Error
- [Cause]
β Best Solutions to Fix It
Method 1: Changing phpMyAdmin Configuration
- Step 1: Open the
phpmyadmin.inifile located in theC: extwrapindirectory. - Step 2: Update the configuration settings, specifically changing the ownership and permissions of the phpMyAdmin directory to match your user account. You can do this by running the following command in the Command Prompt:
icacls C: extwrapinin/phpmyadmin.exe /setowner [YourUsername] - Step 3: Restart the Apache service to apply the changes.
Method 2: Changing File Permissions
- Step 1: Open the Command Prompt and navigate to the phpMyAdmin directory.
- Step 2: Run the following command to change the ownership of the phpMyAdmin directory:
icacls C: extwrapinin/phpmyadmin.exe /setowner [YourUsername] - Step 3: Update the file permissions by running the following command:
icacls C: extwrapinin/phpmyadmin.exe /inheritance:r - Step 4: Restart the Apache service to apply the changes.
π― Final Words
By following these steps, you should be able to resolve the 'Forbidden' error and access phpMyAdmin successfully.
β Frequently Asked Questions
Step 1: Open the phpmyadmin.ini file located in the C: extwrapin directory.Step 2: Update the configuration settings, specifically changing the ownership and permissions of the phpMyAdmin directory to match your user account. You can do this by running the following command in the Command Prompt: i
Step 1: Open the Command Prompt and navigate to the phpMyAdmin directory.Step 2: Run the following command to change the ownership of the phpMyAdmin directory: icacls C: extwrapinin/phpmyadmin.exe /setowner [YourUsername]Step 3: Update the file permissions by running the following command: icacls
By following these steps, you should be able to resolve the 'Forbidden' error and access phpMyAdmin successfully.
π οΈ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Pc crashes shortly after launching game, possible cause: outdated grap
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: FPS drops
FPS drops in games can be caused by high system resource usage, outdat