Below are notes about fucking with Plesk …
-
MySQL admin password set by Plesk
On Linux can be found in /etc/psa/.psa.shadow.
also at http://www.onlinehowto.net/Tutorials/Plesk-Control-Panel/Plesk-password-issue-/376 you’ll find some more items to resolve your MySQL problem.
I personally like the workaround:/usr/local/psa/bin/init_conf -u -passwd 'some_password' -plain-password SUCCESS: Completed updating administrator's information.
This will save the password ‘some_password’ in plain text in the file /etc/psa/.psa.shadow, as well as synchronizing the ‘admin’ password in mysql. Thus it is possible to use the same password for the web-interface of Plesk and for the mysql admin login.Just make sure the linux server’s root password is not the same as the Plesk password, as this will be in plain text in the file /etc/psa/.psa.shadow
Alternate workaround: log in to mysql as ‘admin’ using the encrypted ‘admin’ password from /etc/psa/.psa.shadow (the whole string – “mysql -u admin -p ‘cat /etc/psa/.psa.shadow'”).Then recreate the mysql root user originally removed by Plesk:
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'some_password' WITH GRANT OPTION;
Thereafter you can again log in to mysql as ‘root’, and don’t need to change anything with Plesk.
-
Unable to use short names for POP3/IMAP
If you recently upgraded to Plesk 8.4.0 with short names enabled, you may have found that it’s working with SMTP, but it doesn’t work with POP3 or IMAP. There’s a bug in the Plesk version that prevents the courier configuration from being updated.
To correct the issue, first make sure that Plesk has short names enabled (Server > Mail). Once you’ve confirmed that Plesk thinks it’s enabled, add SHORTNAMES=1 to the following configuration files:
/etc/courier-imap/imapd /etc/courier-imap/imapd-ssl /etc/courier-imap/pop3d /etc/courier-imap/pop3d-ssl
Restart courier-imap with /etc/init.d/courier-imap restart and you should be all set.
-
Mysql ERROR: PleskFatalException
Please, make sure that MySQL is running and you can access it from the command line:
# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa
If it works, try to increase maximum connection number for MySQL server. By default the number of simultaneous connections is limited to 100, if MySQL is highly used on your server, you need to increase this limit in /etc/my.cnf in section [mysqld]:
[mysqld]
set-variable=max_connections=200
Then restart MySQL. Also, please, make sure that the /tmp/mysql.sock file exists. If not, create the link:
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
-
How to disable Apache 2 test page
open a file:
“/etc/httpd/conf.d/welcome.conf”Comment out these lines:
#
# This configuration file enables the default “Welcome”
# page if there is no default index page present for
# the root URL. To disable the Welcome page, comment
# out all the lines below.
#
Options -Indexes
#ErrorDocument 403 /error/noindex.html
ErrorDocument 403 ‘Access Forbidden …….’
-
Disabling email from some domains in command line
Changing the MX records has no effect in local mail system.
I had entered the command below, like in Plesk Control Panel./usr/local/psa/bin/domain.sh -u xxxxxxxxxxxxxx.com -mail_service false
-
Problem restarting apache:
Starting httpd: [Wed Jan 22 05:00:00 2014] [error] (EAI 9)Address family for hostname not supported: Could not resolve host name: … — ignoring!Could not resolve host name … IPV6– Just to do resync and deleting IPV6 addresses from Plesk panel Interface.
– :[root@u17 plesk.conf.d]# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all [root@u17 plesk.conf.d]# /etc/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] [root@u17 plesk.conf.d]#
-
Change default Plesk Backup Folder
Did you look in /etc/psa/psa.conf ?
# Backups directory
DUMP_D /var/lib/psa/dumps
Maybe you can change it there….this is without warranty