Editing phpmyadmin.conf to restrict access change alias

If you want to change alias of your phpmyadmin directory then you just need to edit your phpmyadmin.conf file and update following line.

- vi phpmyadmin.conf (if you use windows then just use any editor. I like linux)
- Alias /aliasname /var/www/phpmyadmin
- done

vi phpmyadmin.conf - Will open phpmyadmin.conf file in vi editor.
aliasname - you can set any new string here

So next time you can hit http://localhost/aliasname instead of http://localhost/phpmyadmin.

Related Questions?
How to give ip based restriction to phpmyadmin directory.


Post a Comment

Share this post with your friends