Modify the default access path of phpMyAdmin through Alias

Source: Internet
Author: User
Can I use Alias to modify the default access path of phpMyAdmin? PhpMyAdmin configuration file. the conf file is located in etchttpdconf. d Directory, all are in etchttpdconf. 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 modify the default access path of phpMyAdmin through Alias

?

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.