Setting Up VPS Optimized Mode in Virtuozzo Containers

In Virtuozzo containers for Linux, the VPS-optimized mode switches off the InnoDB engine in the MySQL database server, and Apache web server modules that are not critical for hosting services.

The only disadvantages of using the optimized mode are as follows:

To switch Plesk to the VPS-optimized mode in the Virtuozzo environment:

Install the pp12.5.30-vps-optimized EZ template. The template applies the necessary configuration.

If you need to switch Plesk back to the normal mode of operation, perform the following steps:

  1. Switch on the InnoDB engine.
    1. Open for editing the file /etc/my.cnf.
    2. Locate the lines containing entries skip-innodb and remove them, or comment them out.
    3. Save the file.
    4. Restart MySQL server.
  2. Switch on the required Apache modules.
    1. Open for editing the file /etc/httpd/conf/httpd.conf.
    2. Locate the lines LoadModule <module_name> corresponding to the modules that you want to switch on, and uncomment the lines.
    3. Save the file.
    4. Restart Apache.
  3. Switch Plesk back to normal operation mode by issuing the following SQL query:

    mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e "update misc set val='0' where param='vps_optimized_mode_status';"