After alias to modify the default access path for phpMyAdmin

Source: Internet
Author: User
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

  • 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.