plesk

Defaulting PHP safe_mode to off in Plesk

When creating a domain in Plesk, PHP safe_mode is enabled by default. To change the default behavor do the following as the admin:

Pushing / Forwarding Email from one server to another.

When transfering domains from one server to another, sometimes the emails get delievered to the old server after the DNS has been updated. When that happens, you can run the following script to forward the emails to the other server, or to a different email address.

 

Plesk Backup Error: Specified file is not accessible

 I just did a kernel upgrade on the server and after making sure that the IPs and services were working properly I tried to backup a domain through the web interface and got this error:

 

Plesk Backup Error: Specified file is not accessible

 

I know that the location for Plesk back up files are located here:

 

/var/lib/psa/dumps

 

FTP per_source_limit Error

While trying to download and upload files via FTP, I was getting

Oct 11 15:19:39 209443-www2 xinetd[12269]: EXIT: smtp status=1 pid=8309 duration=0(sec)
Oct 11 15:19:39 209443-www2 xinetd[12269]: FAIL: ftp per_source_limit from=xxx.xxx.xxx.xxx

In order to fix this I had to modify the /etc/xinet.d/ftp_psa file. I did so by adding the bold lines to the file:

Showing Hidden Files in ProFTPD

Files that begin with a . (dot) are technically hidden and don't show up in FTP clients such as FileZilla. To get get .htaccess files to show up alone with other hidden files add the following to the <Global> sections:
 
ListOptions "-la"
 

Retrieving Web Users and Passwords from Plesk

To get a list of uid's and passwords for web users run the following query:

SELECT su.login AS "Web User", a.password AS "Password"
FROM web_users AS wu
JOIN sys_users AS su ON wu.sys_user_id = su.id
JOIN accounts AS a ON su.account_id = a.id
JOIN domains AS d ON wu.dom_id = d.id
WHERE d.name="domain.tld"

Plesk Disk Limit not Affected by User Interaction

Problem

Plesk states that the domain's alloted disk space is unlimited by when attempting to upload files, an error is thrown stating the quota has been reached.

Migrating Plesk Accounts from One Server to Another

Procedure

  1. Create a backup of the account that you want to migrate for testing purposes:
    1.  Login to the server via ssh
    2. Get the user account that you want to backup, for example paulusworldadmin. 
    3. To backup a user account with all data:

      # /usr/local/psa/bin/pleskbackup clients paulusworldadmin /path/to/backup

Making a Linux Plesk 8.6 Server PCI Compliant

To make a server that is running Plesk PCI compliant follow these steps:
 

Plesk open_basedir

PHP's open_basedir limits a script's ability to open files to specified directories.  This setting can only be modified within an httpd.conf file or in the php.ini.
When specifying more than one directory to be accessible by php scripts, use a semicolon for Windows, and a colon for all other systems. It's also important to note that directories within the open_basedir are actually prefixes and not a directory name. For example:
 

Syndicate content