Disable phpmyadmin installation in ubuntu

Source: Internet
Author: User
Installing phpmyadmin in ubuntu is actually very simple. sudoapt-getinstallphpmyadmin is installed in ubuntu. However, after installing phpmyadmin, it is easy to make mistakes. at first, I kept modifying & nbsp; install phpmyadmin in/usr/share/phpmyadmin ubuntu
Installing phpmyadmin in ubuntu is simple.

sudo apt-get install phpmyadmin


However, the configuration after installation makes it easy to make mistakes.
At first, I was modifying/usr/share/phpmyadmin/config. inc. php.
However, no. the correct location is in/etc/phpmyadmin/config. inc. php, and it includes/var/lib/phpmyadmin/config. inc. php.
The file to be modified should be/var/lib/phpmyadmin/config. inc. php.

In fact, we do not need to manually modify config. inc. php.
We can configure http: // localhost/phpmyadmin/setup/like this/

There are two commands to help us
* Pma-configure
* Pma-secure
The two commands have no parameters. the function is opposite. one is to enable the configuration switch, the other is to disable the configuration, and modification is prohibited.
When we need to modify, run pma-configure. after the modification, run pma-secure.
Of course, both commands require sudo permissions.

The overall process is as follows:
Install phpmyadmin-> pma-configure->/phpmyadmin/setup-> pma-secure


Of course, we need to place phpmyadmin under apache or nginx.
sudo ln -s /usr/share/phpmyadmin  /var/www/

In fact, the above steps are redundant.
Check/etc/phpmyadmin/apache. conf and you will understand it.
Alias /phpmyadmin /usr/share/phpmyadmin

There are other configurations.


----------------------

So much content, you can see from here
dpkg -L phpmyadmin

In this way, you can see what files are mounted to the hard disk by phpmyadmin.















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.