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:

  • Web applications requiring InnoDB will not work.
  • Perl, python and ASP scripts will not work because the required Apache modules will be switched off.
  • PHP will be available only through CGI.

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

Install the ppOnyx-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.

    • 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/.

    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';"