Can I use Alias to modify the default access path of phpMyAdmin? PhpMyAdmin configuration file. the conf file is located in/etc/httpd/conf. d/directory, all are located in/etc/httpd/conf. d/the configuration file in the directory uses Alias to modify the default access path of phpMyAdmin
?
PhpMyAdmin configuration file. the conf file is located in/etc/httpd/conf. d/directory, all are located in/etc/httpd/conf. the configuration files in the d/directory are httpd sub-configuration files. syntax errors in any sub-configuration file may cause httpd startup failure.
?
[Root @ fedora? Log] #? Httpd? -T ???? // This command can be used to check whether the syntax of the httpd-related configuration file is correct.
?
PhpMyAdmin web access method:
The Alias line in phpMyAdmin. conf determines the phpMyAdmin web access path:
[Root @ fedora? Log] #? 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? Shocould? 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 indicate to Allow those hosts to access phpMyAdmin. The Order is "Deny, Allow", indicating to prohibit access from all IP addresses, except for the next Allow? From.
?
Note:/nima/shangbuqi is a virtual path. this directory does not exist on the server. it is not found in the root directory of the web server defined in httpd. conf.
?
?
If "Cannot?" is displayed on the phpMyAdmin login page? Load? Mcrypt? Extension .? Please? Check? Your? PHP? Configuration. ", indicates that the php-mcrypt package is not installed on the server.
?
Restart service httpd restart after completion