Search Results

Plesk unlock admin account

mysql -uadmin -p$(cat /etc/psa/.psa.shadow) -Dpsa -e “delete from lockout where login=’admin’”

Plesk 9 Backup Utility Broken

After an upgrade to Plesk 9 you cannot schedule backups and get the following error: Unable to update scheduled backup information: MySQL query failed: Unknown column ‘backup_time’ in ‘field list’ Just run the following and it will reinstall them and correct the database: yum erase psa-backup-manager psa-migration-manager yum install psa-backup-manager psa-migration-manager service psa restart

Plesk 9 Greylisting

Plesk 9 introduced greylisting  – yay! or not. To disable it: /usr/local/psa/bin/grey_listing –update-server -status off

Plesk PHP open_basedir changes

To make a change to PHP for a site in Plesk, such as opening open_basedir, edit /var/www/vhosts/$domain/conf/vhost.conf. You would then add : <Directory /var/www/vhosts/domain.com/httpdocs> php_admin_value open_basedir “/var/www/vhosts/domain.com/httpdocs:/tmp:/THE_PATH_PHP_SCRIPT_TRIES_TO_ACCESS_TO” </Directory> After that, you will need to rebuild the apache configuration with the following command: /usr/local/psa/admin/sbin/websrvmng -v -a

Horde Plesk enforce signature

To enforce a signature/footer on all users: Edit /usr/share/psa-horde/imp/config/trailer.txt

Horde Plesk disable IP checks

The Horde webmail client checks to ensure that its users sessions always originate from the same IP once open.  This can be problematical if the user has an intermittent connection or a roaming IP etc: edit /usr/share/psa-horde/config/conf.php set $conf[‘auth’][‘checkip’] = false;

Install GIT on Plesk

Install GIT on a Plesk/Centos Box doesn’t actually involve much other than a yum install and setting up key auth. Enable RPMforge repo yum install git Enable /bin/bash shell for the user in plesk. make a .ssh directory in their homedir with 700 perms Generate a keypair, or get public key of clients keypair: ssh-keygen […]

FTPS and SFTP on Plesk with ProFTP

SFTP (SSH-FTP) ————— You can add: /usr/libexec/openssh/sftp-server To /etc/shells And then select this in the account as their shell. This will give them access to only sftp with no additional software required. FTPS (FTP over SSL) ——————- Either purchase a certficate or create one:

Too many open files when several hundred domains in Plesk

With more than several hundred domains in plesk, issues can arise with too many open files. Solution: echo ‘ulimit -n 32768′ >> /etc/sysconfig/httpd Enabling piped logging his also helps greatly,: mysql -uadmin -p$(cat /etc/psa/.psa.shadow) -BAND psa -e ‘REPLACE INTO misc VALUES (“apache_pipelog”,”true”)’ /usr/local/psa/admin/bin/websrvmng -a To see the default open file limit per process: ulimit -n […]

Adding a secondary SMTP port in Plesk

Choose an unused port and add it to the /etc/services file, for example: smtp_alt 2525/tcp # new SMTP port Make a copy of /etc/xinetd.d/smtp_psa to /etc/xinetd.d/smtp_psa_alt and correct service line within new file: service smtp_alt Restart xinetd `/etc/init.d/xinetd restart` Edit the firewall, adding port 25025