#1  
Old 16th June 2009, 00:39
Norman Norman is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 242
Thanks: 0
Thanked 18 Times in 14 Posts
Default suPHP with SSL

I'm running Perfect setup Debian Lenny with latest version of ISPConfig 3.
Noticed an issue with running suPHP and SSL activated.

Any request to the site with SSL activated only gives server error 500 return codes.

In the error log for the site I found these lines:

ue Jun 16 00:30:34 2009] [error] [client x.x.x.x] Premature end of script headers: index.php
[Tue Jun 16 00:32:03 2009] [error] [client x.x.x.x] SecurityException in Application.cpp:440: Handler not found in configuration
[Tue Jun 16 00:32:03 2009] [error] [client x.x.x.x] Caused by KeyNotFoundException in Configuration.cpp:234: Handler "x-httpd-php" not found


I switched over to fastCGI instead (php) and it works fine. Any idea what may cause this ? Is there a fix so I can use suPHP with ssl?
__________________
http://www.xh.se
Reply With Quote
Sponsored Links
  #2  
Old 16th June 2009, 14:42
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

There is a bug in the vhost template. In The file /usr/local/ispconfig/server/conf/vhost.conf.master around line 258 you will find these lines:

Code:
    suPHP_Engine on
    # suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'>
    AddHandler x-httpd-php .php .php3 .php4 .php5
    suPHP_AddHandler x-httpd-php
replace it with:

Code:
        suPHP_Engine on
        # suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'>
        AddHandler x-httpd-suphp .php .php3 .php4 .php5
        suPHP_AddHandler x-httpd-suphp
Then change a setting in the website in ispconfig and click on save so that the config gets rewritten.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 17th June 2009, 09:47
Norman Norman is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 242
Thanks: 0
Thanked 18 Times in 14 Posts
Default

Ah Is this going to be fixed in next version?
__________________
http://www.xh.se
Reply With Quote
Reply

Bookmarks

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSL "connection interrupted" apache not listening on 443 yuro Installation/Configuration 10 28th October 2008 14:42
SSL and IPs problem. debian-lover General 7 21st April 2008 11:59
SSL for virtual hosts on one certificate rbartz Tips/Tricks/Mods 8 20th November 2007 17:59
SSL Issue - Unable to connect to any site Menzor Installation/Configuration 4 27th May 2007 04:03
Unbearably slow access speeds CombatGod Installation/Configuration 5 30th May 2006 16:31


All times are GMT +2. The time now is 11:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.