E
E
Error 5022019-03-02 10:01:14
PHP
Error 502, 2019-03-02 10:01:14

Unable to remove access to phpmyadmin, what am I doing wrong?

On the server with Ubuntu and the Apache web server, phpmyadmin was installed and a symbolic link was created to it in the directory with the site (via ln -s). The customer asked to leave phpmyadmin but close access to it. As a result, this symbolic link was removed via rm. It is not in the directory. But when opened in a browser via site.ru/phpmyadmin/ the interface is still available. Removing phpmyadmin itself solves the problem, but this output does not match the requirements of the customer. When reinstalling everything is still available. I repeat - there is no symbolic link in the site directory. What is causing this heresy?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2019-03-02
@NullByte

If I understand the question correctly, then this will help:

Изменение страницы входа в phpMyAdmin на Apache
В CentOS, RHEL и Fedora откройте файл /etc/httpd/conf.d/phpMyAdmin.conf

1
sudo vim /etc/httpd/conf.d/phpMyAdmin.conf
В Debian, Ubuntu и Linux Mint отройте файл /etc/phpmyadmin/apache.conf

1
sudo vim /etc/phpmyadmin/apache.conf
Закомментируйте строку Alias /phpmyadmin /usr/share/phpmyadmin, чтобы получилось так:

1
# Alias /phpmyadmin /usr/share/phpmyadmin
и вместо неё добавьте свою, вроде такой:

1
Alias /my /usr/share/phpmyadmin
В примере my – замените на любую свою строку, которая станет частью адреса вида http://<ip адрес>/my

Для того, чтобы изменения вступили в силу, перезагрузите службу веб-сервера Apache

1
sudo service apache2 reload

Those. config here: /etc/phpmyadmin/apache.conf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question