linux - You don't have permission to access /phpMyAdmin on this server -


i installed lamp server in amazon linux ec2 instance described in here. now, issue when try access http://publicdns/phpmyadmin telling me forbidden: don't have permission access /phpmyadmin on server.

i have tried varies articles trying fix this, tried symbolic links. since of other articles based on manually install phpmyadmin, unable correct result.

i know have access file , change the configurations, don't know how properly.

you need add ip under allow section in phpmyadmin.conf able access phpmyadmin remotely.

<directory /usr/share/phpmyadmin/>    adddefaultcharset utf-8     <ifmodule mod_authz_core.c>      <requireany>        require ip my-server-ip-here        require ip ::1        require ip <your ip>      </requireany>    </ifmodule>    <ifmodule !mod_authz_core.c>      order deny,allow      allow my-server-ip-here      allow ::1      allow <your ip>    </ifmodule> </directory> 

restart apache post these changes.


Comments