To modify the default access path for phpMyAdmin by using alias
?
The phpMyAdmin configuration file phpmyadmin.conf file is located in the /etc/httpd/conf.d/ directory, all located in /etc/httpd/conf.d/ the configuration files in the directory are httpd , and any child profile syntax errors can cause httpd to fail.
?
[Email protected]]#?httpd?-t???? This command can be used to check the correct syntax for httpd -related configuration files
?
PhpMyAdmin Web access methods:
The Alias row in phpmyadmin.conf determines the Web access path for phpMyAdmin :
[[Email protected]]#?cat?/etc/httpd/conf.d/phpmyadmin.conf
#?phpmyadmin?-? Web?based? mysql?browser?written?in?php
#
#? Allows?only?localhost?by?default
#
#? But?allowing?phpmyadmin?to?anyone?other?than?localhost?should?be?considered
#?dangerous?unless?properly?secured?by? Ssl
?
#Alias?/phpmyadmin?/usr/share/phpmyadmin
#Alias?/phpmyadmin?/usr/share/phpmyadmin
Alias?/nima/shangbuqi?? /usr/share/phpmyadmin
?
??? Order? Deny,allow
??? Deny?? From? All
??? allow?from?127.0.0.1
??? Allow?from?192.168.18.0/24
??? Allow?from?192.168.1.0/24
??? Allow?from?::1
?
Alias?/nima/shangbuqi?? /usr/share/phpmyadmin indicates that the phpMyAdmin Web access path is :
Www.mydomain.com/nima/shangbuqi
?
The following Deny and allow means that those hosts are allowed access to the phpMyAdmin, Order is "Deny,allow", which means that all IP access is forbidden except for the hosts defined in the next allow?from.
?
Note:/nima/shangbuqi is a virtual path, there is no directory on the server, the web httpd.conf defined in the The directory will not be available under the server root directory.
?
?
If the landing page of phpMyAdmin : "Cannot?load?mcrypt?extension.?" Please?check?your? Php?configuration. " , it indicates that the server is not installed Php-mcrypt package.
?
Restart service httpd restart when finished