11 Jul 2019

How to Enable Local Network(public) Users to Access my WAMP phpmyadmin? / Allow phpmyadmin public access

Many people have a problem in WAMP 3.0.6 new update 2016

this message "Forbidden - You don't have permission to Access / on this server"

and can not be able to access PHPMYADMIN

solution for this security as the following:

go to wamp or wamp64 and search this file httpd-vhosts.conf
           Go to Wamp then left click wampmanager -> Apache -> httpd-vhost.conf

Find this section:

## Virtual Hosts#

<VirtualHost *:80> ServerName localhost DocumentRoot D:/wamp/www <Directory  "D:/wamp/www/"> Options +Indexes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory></VirtualHost>


and amend this line

"Require local"
         to
"Require all granted"


Next step:

go to PHPMYADMIN.conf or search on it from wamp or wamp64

#Wampserver root folder\alias

<Directory "D:/wamp64/apps/phpmyadmin4.8.3/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride all
<ifDefine APACHE24>
Require local
</ifDefine>
<ifDefine !APACHE24>
Order Deny,Allow
Deny from all
Allow from localhost ::1 127.0.0.1
</ifDefine>
# To import big file you can increase values
php_admin_value upload_max_filesize 128M
php_admin_value post_max_size 128M
php_admin_value max_execution_time 360
php_admin_value max_input_time 360
</Directory>
adjust on it as the following:

change  
"Require local"
        to be         
"Require all granted"               

Finally restart your wamp server and you will be fine.

No comments:

Post a Comment