Disabling phpMyAdmin Plesk Linux

Disabling phpMyAdmin Plesk Linux.

In the Plesk control panel I have never been able to find an option to disable it within the panel. This guide will show how to prevent it from running or howto remove.

To disable.

Login via ssh and run the following.

chmod 000 /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin

To re-enable.

chmod 755 /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin

To remove.

rmĀ /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin

Bash script to enable/disable.

#!/bin/bash

#Author Phil Bond box-admin www.box-admin.com

echo “Permissions currently set on Plesk phpMyAdmin”

stat /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin
echo

echo “Usage enter enable to enable phpMyAdin or disable to disable it”

read CHOICE

case $CHOICE in

disable) chmod 000 /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin;;
enable) chmod 755 /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin;;
esac

echo “Permissions now set on Plesk phpMyAdmin”

stat /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin

exit 0

Bash Scripting, Linux, Plesk Linux, Virtual & Dedicated Servers , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

2 × four =