LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Differences

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
Line 12: Line 12:
  * 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.
 +
Line 124: Line 125:
          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:
 
litespeed_wiki/multiple_phps_in_control_panel_lsws.txt · Last modified: 2013/04/18 15:00 by Michael
 
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.