kb: how-to
Plesk for Linux
Applicable to:
- Plesk for Linux
Question
How to install Plesk on Linux with specific pre-installed MySQL/MariaDB version?
Answer
If MySQL/MariaDB server is already installed on a server:
-
Connect to the server via SSH.
-
Create the file
/root/.my.cnf:# touch /root/.my.cnf
-
Open the file in a text editor. In this example, we are using the vi editor:
# vi /root/.my.cnf
-
Specify the username and the password of a MySQL/MariaDB user with administrator rights:
CONFIG_TEXT: [client]
user = root
password = "root_password" -
Save the changes and close the file.
Comments
Hi,
Default perms for /root/.my.cnf are 644
Should be 600
LadyLinux
Does not work ERROR while trying to establish test connection. If you are installing Plesk on an already configured MySQL server, you need to specify the administrator's credentials to succeed with the installation. To do this, you need to create a file - /root/.my.cnf with the 'client' section where you need to provide user and its password ("user = $admin_name" and "password = $admin_pass"). After installation is finished, the file /root/.my.cnf will be renamed to /root/.my.cnf.bak
Tried web and command line install, 600 and 777 for permissions, no joy. Help!
Please sign in to leave a comment.