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

Go Back   LiteSpeed Support Forums > External Applications > PHP > htaccess & php[45]-script

Reply
 
Thread Tools Display Modes
  #11  
Old 04-28-2009, 06:36 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
I am talking about the script handler configuration in LSWS console, not whether .php4 scripts are processed by PHP4 or PHP5. It is controlled by the "AddType" directives you mentioned.

You have to have a script handler defined for "php4", so LSWS will know that MIME type "application/x-httpd-php4" will be handled by that handler. And later on, you can change the handler using those "AddType" directives.

You should not remove the script handler configuration from the LSWS console.
Reply With Quote
  #12  
Old 04-29-2009, 02:23 AM
priestjim priestjim is offline
Senior Member
 
Join Date: Mar 2009
Location: Athens, Greece
Posts: 60
I thought it was apparent that I already have a php4 script handler.

Excerpt from httpd_config.xml:
Quote:
<scriptHandlerList>
<scriptHandler>
<suffix>php5</suffix>
<type>lsapi</type>
<handler>lsphp5</handler>
<note></note>
</scriptHandler>
<scriptHandler>
<suffix>php</suffix>
<type>lsapi</type>
<handler>lsphp5</handler>
<note></note>
</scriptHandler>
<scriptHandler>
<suffix>php3</suffix>
<type>lsapi</type>
<handler>lsphp4</handler>
<note></note>
</scriptHandler>
<scriptHandler>
<suffix>php4</suffix>
<type>lsapi</type>
<handler>lsphp4</handler>
<note></note>
</scriptHandler>
</scriptHandlerList>
PHP4 settings:
Quote:
<extProcessor>
<type>lsapi</type>
<name>lsphp4</name>
<address>uds://tmp/lshttpd/lsphp4.sock</address>
<note></note>
<maxConns>500</maxConns>
<env>PHP_LSAPI_MAX_REQUESTS=500</env>
<env>PHP_LSAPI_CHILDREN=500</env>
<env>LSAPI_MAX_PROCESS_TIME=3000</env>
<initTimeout>60</initTimeout>
<retryTimeout>0</retryTimeout>
<persistConn>1</persistConn>
<pcKeepAliveTimeout></pcKeepAliveTimeout>
<respBuffer>0</respBuffer>
<autoStart>1</autoStart>
<path>$SERVER_ROOT/fcgi-bin/lsphp4</path>
<backlog>100</backlog>
<instances>1</instances>
<runOnStartUp></runOnStartUp>
<extMaxIdleTime></extMaxIdleTime>
<priority>-1</priority>
<memSoftLimit>250M</memSoftLimit>
<memHardLimit>300M</memHardLimit>
<procSoftLimit>200</procSoftLimit>
<procHardLimit>200</procHardLimit>
</extProcessor>
__________________
Web hosting, Domain Names, VPS and Dedicated Servers in one of the most secure, reliable, fast and low-cost web hosting services in the European market.

:: dnHost Interactive Agency :: Supporting and providing Litespeed Web Server in all shared hosting and VPS servers since 2008 ::
Reply With Quote
  #13  
Old 04-29-2009, 09:22 AM
auser auser is offline
Senior Member
 
Join Date: Mar 2009
Posts: 119
Quote:
Originally Posted by priestjim View Post
The weird part is that info.php4 with the .htaccess removed displays the correct PHP4 info!
Any suggestions?
how about info.php4 with the .htaccess(not remove)? display correct or not?
Reply With Quote
  #14  
Old 04-29-2009, 09:24 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Quote:
<path>$SERVER_ROOT/fcgi-bin/lsphp4</path>
Make sure it does exist. You can try that command from command line.
Reply With Quote
  #15  
Old 04-29-2009, 02:20 PM
priestjim priestjim is offline
Senior Member
 
Join Date: Mar 2009
Location: Athens, Greece
Posts: 60
With no apparent reason and no configuration change,no reboot, no other change, now the directive works...
__________________
Web hosting, Domain Names, VPS and Dedicated Servers in one of the most secure, reliable, fast and low-cost web hosting services in the European market.

:: dnHost Interactive Agency :: Supporting and providing Litespeed Web Server in all shared hosting and VPS servers since 2008 ::
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:29 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.