Plesk: Test Directory located in /httpdocs/test/

Description:  In default Plesk Installations a folder called Test is created under httpdocs/  this folder contains a series of scripts designed to perform “hello world” type tests to confirm that those scripting languages can be used.

If the test scripts are no longer needed you can remove the directory

If you would like to keep the scripts but prevent access to them, you can either:

1. chmod the directories to 700 and files to 644; or

2. Move the test folder out of the httpdocs/ directory into a non-webaccessible directory for later use.

 

Plesk: Scheduled Task for script not running

Symptoms: A task is scheduled in Plesk under Scheduled Tasks, the task attempts to run a php script but fails.

Solution:
By Default Plesk 11 does not allow execution of scripts in a non-chrooted environment,

To Allow execution of Scripts, change the server policy from the command prompt:

# /usr/local/psa/bin/server_pref -u -crontab-secure-shell “/bin/sh”

To disallow:
# /usr/local/psa/bin/server_pref -u -crontab-secure-shell “”

Plesk: Unable update mailbox: mailmng failed: Empty error message from utility

Symptom: When attempting to add a new mail account you receive the following error message: Unable update mailbox: mailmng failed: Empty error message from utility

Solution: The error is caused by a security update released in Ubuntu for mysql 5.1.66, there is currently no Plesk fix for this error as of Nov. 13th, 2012. In order to resolve the error you must roll back 5.1.66 to 5.1.63.

Instructions can be found here for the temporary fix: Parallels Forum

Note: If Ubuntu 10.04 LTS is set to automatically install updates, every time it checks for updates it will patch 5.1.63 to 5.1.66 again.

Plesk: DNS Server installed but Bind9 won’t load

Symptom: Plesk 11 comes installed with Bind9 but the DNS Server will not start.

Solution: There is a known conflict with apparmor in Ubuntu 10.04 LTS

1. sudo /etc/init.d/apparmor stop

2. Add the following to the apparmor profile: /etc/apparmor.d/usr.sbin.named

# plesk runs bind in chroot, need perms
/var/named/run-root/** rw,

3. sudo /etc/init.d/bind9 start

4. sudo /etc/init.d/apparmor start

5. sudo /etc/init.d/psa stop

6. sudo /etc/init.d/psa start

Bind9 / DNS Service should now be enabled in the control panel.