Hello (again)
On a server that I have for months I can not access phpmyadmin.
I have tried with
curl -sSL https://7j.gg/fixperms | sudo bash -s –
And I get back:
Fixing Roundcube perms (/etc/roundcube/)…Done!
Fixing Roundcube perms (/var/lib/roundcube/)…Done!
Fixing Roundcube perms (/var/log/roundcube/)…Done!
Fixing phpMyAdmin perms (/etc/phpmyadmin/)…Done!
Fixing phpMyAdmin perms (/usr/share/phpmyadmin/tmp/)…Done!
But when I call phpmyadmin from the HestiaCP panel it returns a 404 Page Not Found
Can you help me?
Hi,
I just looked at your script and found that the permission is not sufficiently programmed in the phpmyadmin code.
To add the extra line, you will have to download the file, rename it to fixperm.sh and execute it on your server by the command, in the directory where it is residing:
bash fixperm.sh
After the line:
chown -R root:www-data /etc/phpmyadmin/ && echo "Done!" || echo "Error!"
Add the following extra line:
chmod -R 644 /etc/phpmyadmin/ && echo "Permission of config.inc.php updated!" || echo "Error!"
So if the phpmyadmin package is properly installed, the new line will correct the permission so that you can access the page via a browser.
If you do not want to add the line in the file, simply execute the extra line on the SSH monitor and it will update the permission, if it was wrong.
However, as the error is 404, it is not finding the main page of phpmyadmin. This means that something in the config file is not OK.
Best is to rebuild the user like this:
v-add-sys-dependencies
v-rebuild-user username
Let’s see if the config gets repaired. If not, other solutions to correct it and have phpmyadmin link working should be applied.