If you deploy Plesk in Virtuozzo for Linux, consider switching Plesk to a special mode of operation - optimized for virtual environments. The mode switches off InnoDB engine in MySQL database server, and Apache web server modules that are not critical for hosting services. This makes Plesk use less memory than other control panels available on the market, which ensures better utilization of hardware resources and increased density of virtual environments per server.
The only disadvantages of using the optimized mode are as follows:
Note: The optimized mode can be switched on only on the clean Plesk installations. It is not applicable to the Plesk installations upgraded from earlier versions.
To switch to the VPS-optimized mode:
Install the pp12-vps-optimized
EZ template. The template applies the necessary configuration.
Important: The optimized mode can only be enabled on fresh installations of Plesk which have not yet been initialized, or, in other words, have not undergone the initial configuration.
If you need to switch Plesk back to the normal mode of operation, perform the following steps:
/etc/my.cnf
.skip-innodb
and remove them, or comment them out. On Debian Linux, use the a2enmod
utility to switch on all required modules. For example, if you want to switch on the PHP module, issue the following command:
a2enmod php5
On other distributions of Linux, edit the main Apache configuration file, which, in most Linux installations, is located in /etc/httpd/conf/
.
/etc/httpd/conf/httpd.conf
.LoadModule
<module_name>
corresponding to the modules that you want to switch on, and uncomment the lines.mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e "update misc set val='0' where param='vps_optimized_mode_status';"
The following Apache modules are switched off in the optimized mode:
The list of the modules can vary depending on the operating system distribution and architecture. When Plesk is installed and the optimized mode is switched on, you can check the list in the following files:
/usr/lib/plesk-12.0/vps_optimized_aspects/apache-modules-all
/usr/lib64/plesk-12.0/vps_optimized_aspects/apache-modules-all