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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > open_basedir blank in lsws but correct in httpd

Reply
 
Thread Tools Display Modes
  #1  
Old 09-10-2011, 07:50 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Question open_basedir blank in lsws but correct in httpd

Under cpanel they have this set in the httpd.conf template

/var/cpanel/templates/apache2/vhost.default

php_admin_value open_basedir "[% vhost.homedir %] etc.

and it works in apache - under phpinfo it correctly shows the open_basedir restriction

but when lsws is running

open_basedir no value

the php.ini does not have any overrides, it's commented out

any suggestions where I should begin looking for the problem?

it is possible I complied PHP with a missing option to obey the apache env ?

OH - maybe it's this http://www.litespeedtech.com/support...6&postcount=23

what can I do about
Code:
<IfModule concurrent_php.c>
then?

Last edited by aww; 09-10-2011 at 08:24 AM..
Reply With Quote
  #2  
Old 09-10-2011, 08:43 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Yup that was the problem,

why doesn't litespeed obey?

<IfModule !concurrent_php.c>

I had to move the basedir outside of that structure for it to work

I hope cpanel doesn't override that with it's future upgrades.

I guess litespeed cannot qualify any of the conditionals?
Code:
    <IfModule concurrent_php.c>
        php4_admin_value open_basedir "[&#37; vhost.homedir &#37;]:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/ph$
        php5_admin_value open_basedir "[% vhost.homedir %]:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    <IfModule !concurrent_php.c>
        <IfModule mod_php4.c>
            php_admin_value open_basedir "[% vhost.homedir %]:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib$
        </IfModule>
        <IfModule mod_php5.c>
            php_admin_value open_basedir "[% vhost.homedir %]:/usr/lib/php:/usr/local/lib/php:/tmp"
        </IfModule>
        <IfModule sapi_apache2.c>
            php_admin_value open_basedir "[% vhost.homedir %]:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib$
        </IfModule>
    </IfModule>
Note that this means suddenly there are a whole bunch of people running litespeed under cpanel who no longer have the open_basedir protection they thought they had working previously. It's a silent fail. I'd call that a big security problem that litespeed might get blamed for.

Last edited by aww; 09-10-2011 at 08:47 AM..
Reply With Quote
  #3  
Old 09-10-2011, 10:28 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Please upgrade to the latest release, it should have been taken care of.
Or, you can add "concurrent_php" to
http://www.litespeedtech.com/docs/we...IgnoredModules
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 06:43 AM.



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