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:
-
Switch on the InnoDB engine.
- Open for editing the file
/etc/my.cnf
. - Locate the lines containing entries
skip-innodb
and remove
them, or comment them out. - Save the file.
- Restart MySQL server.
- Open for editing the file
-
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/
.
- Open for editing the file
/etc/httpd/conf/httpd.conf
. - Locate the lines
LoadModule
<module_name>
corresponding to
the modules that you want to switch on, and uncomment the lines. - Save the file.
- Restart Apache.
-
-
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';"