This shows you the differences between the selected revision and the current version of the page.
|
litespeed_wiki:multiple_phps_in_control_panel_lsws 2013/04/17 17:13 |
litespeed_wiki:multiple_phps_in_control_panel_lsws 2013/04/18 15:00 current |
| | * Script handlers need to be set up in LSWS at the server level to correspond with each external application created. This step essentially creates MIME types for each php binary built. | | * Script handlers need to be set up in LSWS at the server level to correspond with each external application created. This step essentially creates MIME types for each php binary built. |
| | * To configure special MIME types at the user level, AddHandler, AddType, or ForceType directives need to be added in httpd.conf or .htaccess files. | | * To configure special MIME types at the user level, AddHandler, AddType, or ForceType directives need to be added in httpd.conf or .htaccess files. |
| | + | |
| | | | |
| | | | |
| | AddHandler application/x-httpd-php5 php | | AddHandler application/x-httpd-php5 php |
| | | | |
| - | As would the following directive: | + | Another way to solve the problem is to use the ForceType directive. ForceType in a .htaccess file changes all files in the directory to a single MIME-type. The following command would cause all files in this directory to be sent to the lsphp53_1 external application: |
| | | | |
| - | ForceType application/x-httpd-php5 php | + | ForceType application/x-httpd-php5 |
| | | | |
| | If you want to use multiple PHP versions for files in the same directory, you will have to change some suffixes. In the following example we're using all three versions of PHP for files with different suffixes in the same directory: | | If you want to use multiple PHP versions for files in the same directory, you will have to change some suffixes. In the following example we're using all three versions of PHP for files with different suffixes in the same directory: |