Tool for checking issues before upgrade or migration to Parallels Plesk 10.x version
Due to the changes in business model in Parallels Plesk Panel 10.x release, not all previous accounts settings will be portable from the previous Parallels Plesk Panel releases.
Attached is a script that allows checking environment before upgrade or migration. Now it is checking business logic issues and it works for both platform: Linux and Windows. This tool could be launched prior to upgrade for the purpose of getting a report on potential problems with the upgrade. Based on the report a hoster can decide whether upgrade to Parallels Plesk Panel 10.x is suitable.
How to use..
# php plesk10_preupgrade_checker.php [plesk-admin-password] -d safe_mode=Off
Apache Security: Hide Apache Web Server Version number
Apache Web Server Version number with ServerSignature and ServerTokens directives
Open your httpd.conf file using text editor such as vi:
There are two config directives that controls Apache version. The ServerSignature directive adds a line containing the Apache HTTP Server server version and the ServerName to any server-generated documents, such as error messages sent back to clients. ServerSignature is set to on by default. The ServerTokens directive controls whether Server response header field which is sent back to clients includes a description of the generic OS-type of the server as well as information about compiled-in modules.
Append/modify config directive as follows:
ServerSignature Off
ServerTokens Prod
Save and close the file. Restart Apache web server:
/etc/init.d/httpd restart
Ensim Pro Control Panel and Yum version
Ensim Pro is compatible with yum version 2.4 or later. If an earlier version is installed, the installer tries to install/update the installed version; however, to avoid installation failures, it is recommended that you verify the version of yum installed on the server. To verify the yum version, run the following command at the prompt:
Fix For Memory Error in Ensim Pro for Linux Version
Restore of appliance, reseller, site and user fails with the “MemoryError” if the size of the backup tar file is greater than the aggregate size of RAM and swap space.
Instructions to fix MemoryError exception occuring during import sites.
Resolution: Add extra swap space to the server before doing the restore. The extra swap space is added to the server by setting up a new swap file and enabling swapping on it.
Instructions to setup swap file:
Select the partition where you want to create the swap file. This partition must have free disk space to create the swap file.
Create a file for swap with the following command (# is shell prompt):
#dd if=/dev/zero of=/var/swapfile bs=1024 count=
Where = number of 1024 blocks required. If count=1024000 size of /var/swapfile will be 1024* 1024000 = 1 GB.
Setup an extra swap with the following command:
Enable “/var/swapfile” for swapping with the following command:
Verification: The file “/proc/swaps” must contain the entry for the swap file “/var/swapfile”. If this entry is not present, then swapping has not been enabled for the swap area.
Restore can be performed after the extra swap file has been enabled for swapping.
Instructions for deleting the swap file after import:
Turn off swapping for file “/var/swapfile” with the following command:
Delete the file “/var/swapfile” with the following command:
Migrating to the Latest Version of Parallels Pro Control Panel
The following section provides instructions on migrating to the latest version of Parallels Pro Control Panel.
To migrate to the latest version of Parallels Pro Control Panel:
Log in to the Server Administrator control panel on the Parallels Pro Control Panel server from which you want to migrate data.
Export data from the server:
In the shortcuts section of the Home page, click Export/Import (Tools section).
Perform a Complete backup.
Log in to the Server Administrator control panel on the Parallels Pro Control Panel server.
Import the data to the server to which you want to migrate.
In the shortcuts section of the Home page, click Export/Import (Tools section).
Click Import.
Reference: http://download.pro.parallels.com/