View Single Post
  #6  
Old 06-01-2010, 01:53 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,227
Quote:
Example, not possible:

- PHP 5.3.2 with Curl and Mailparse, plus;
- PHP 5.3.2 with SOAP and GD
it's possible, too.

steps:
1. assume you have defined external applications:
lsphp532_1 --> PHP 5.3.2 with Curl and Mailparse
lsphp532_2 --> PHP 5.3.2 with SOAP and GD

2. under admin console --> server or vhost --> Script Handler -->Add,
(for example,)
php52 -->lsphp532_1
php53 -->lsphp532_2
php52,php53 are suffixes.

thus, you've defined new php handlers:
application/x-httpd-php52
application/x-httpd-php53

3.you can choose different php handler in different folders.
in .htaccess,
to select "PHP 5.3.2 with Curl and Mailparse" to run .php, using
AddType application/x-httpd-php52 php
to select "PHP 5.3.2 with SOAP and GD" to run .php, using
AddType application/x-httpd-php53 php

and so on. you can verify this by access phpinfo() in that folder.
Reply With Quote