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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Feedback/Feature Requests > PHP6: Working, but no SuExec

Reply
 
Thread Tools Display Modes
  #1  
Old 06-19-2008, 01:29 AM
Gerry Gerry is offline
Member
 
Join Date: Feb 2008
Posts: 29
Default PHP6: Working, but no SuExec

I managed to get PHP6-dev more or less working with the Litespeed LSAPI.

I had to comment out all references to php_end_ob_buffers() in lsapi_main.c, because that is apparently not supported in PHP6, but aside from this it compiled cleanly.

Would there be any chance for the Litespeed dev's to investigate why PHP6 does not work with SuExec? I know PHP6 is still in development, but we would like to offer this to a limited set of customers that are developing beeding edge applications and would like to use the upcoming major PHP version.
Reply With Quote
  #2  
Old 06-19-2008, 01:13 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
LSWS does not enabled suEXEC for "application/x-httpd-php6" yet. Will be added in our 4.0 release. however, you can create a script handle for "pthml" suffix using the PHP6 external app. And use "AddType application/x-httpd-phtml .php" to have PHP6 handle php scripts.
Reply With Quote
  #3  
Old 07-09-2009, 09:24 AM
Gerry Gerry is offline
Member
 
Join Date: Feb 2008
Posts: 29
I have a new question concerning this problem. Currently we offer PHP4 (4.4.9), PHP5 (5.2.8) and PHP6 (dev).
I would like to add one more PHP version, PHP5.3, and offer it separately. Is there a way to do this cleanly? The 'phtml' was kind of hack-ish.

If you rely on the "AddType application/x-httpd-XXX .php" to determine if SuEXEC is available, might I suggest checking for "AddType application/x-httpd-php(.*) .php"? That way I could do something like "AddType application/x-httpd-php53 .php", which would be a lot cleaner.
Reply With Quote
  #4  
Old 07-10-2009, 12:45 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
We will check what we can do about it.
Reply With Quote
  #5  
Old 07-14-2009, 06:10 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
PHP suEXEC for application/x-httpd-php6 has been added a while ago.
Reply With Quote
  #6  
Old 08-05-2009, 03:26 AM
heavy heavy is offline
New Member
 
Join Date: Feb 2009
Posts: 3
Yes this is limiting us to give more php versions.

Maybe option in handlers to enable disable suexec?
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 01:18 AM.



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