Redirecting allows you to redirect one website to another or to a specific directory on the server using apache/nginx rewrite rules.
MODE
|
Advantages
|
Disadvantages
|
Fast-CGI
|
- Scripts are executed with user privileges for the website.
- Supports more than 1 PHP version.
- Quicker than CGI and suPHP.
|
- php.ini values cannot be changed via PHP scripts, vhost files, or .htaccess files.
|
CGI
|
- Scripts executed with user privileges for the website
- Supports multiple PHP versions for multiple websites.
|
- May run slower due to high memory requirements.
- php.ini values cannot be changed via PHP scripts, vhost files, or .htaccess files.
|
Mod-PHP
|
- Speed.
- php.ini values can be changed via PHP scripts, vhost files, .htaccess files.
|
- Not secure as it runs scripts using apache privileges and is not recommended.
- Allows only one php version to be installed.
|
SuPHP
|
- Scripts executed with user privileges of the website.
- Each vhost can have its own php.ini file.
- Allows users to run multiple versions of PHP.
|
- php.ini values cannot be changed via PHP scripts, vhost files, or .htaccess files.
|
PHP-FPM
|
- Scripts executed with user privileges of the website.
- Supports multiple PHP versions.
|
- php.ini values cannot be changed via PHP scripts.
|