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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > [solved] open_basedir tweak via cpanel not supported

Reply
 
Thread Tools Display Modes
  #11  
Old 05-08-2007, 08:27 PM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
I owe you an apology.

Apparently open_basedir *is* working, it's just that unlike apache, the error is not being thrown to the http output?

I just noticed this in the lsws logs:
Quote:
[STDERR] PHP Warning: file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: open_basedir restriction in effect. File(/proc/loadavg) is not within the allowed path(s): (/home/example/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/example/public_html/phpinfo/index.php on line 5
So it's working just fine.
Just not seeing the error in the browser which threw me.
Is that a php.ini option I might be missing?
Reply With Quote
  #12  
Old 05-20-2011, 01:10 PM
outeredge outeredge is offline
Member
 
Join Date: Sep 2010
Posts: 25
Sorry to open up this old thread, however we've just installed Litespeed Enterprise alongside cPanel.

We have the so called 'open_basedir tweak' turned on, and in the /etc/httpd/etc/httpd.conf file under the test virtual host, the following line appears:

Code:
<IfModule concurrent_php.c>
        php4_admin_value open_basedir "/home/thamesbu/:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/$
        php5_admin_value open_basedir "/home/thamesbu/:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    <IfModule !concurrent_php.c>
        <IfModule mod_php4.c>
            php_admin_value open_basedir "/home/thamesbu/:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/ph$
        </IfModule>
        <IfModule mod_php5.c>
            php_admin_value open_basedir "/home/thamesbu/:/usr/lib/php:/usr/local/lib/php:/tmp"
        </IfModule>
        <IfModule sapi_apache2.c>
            php_admin_value open_basedir "/home/thamesbu/:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/ph$
        </IfModule>
    </IfModule>
When we look in our phpinfo however, it shows:

PHP Code:
open_basedir    no value      no value 
Could you advise the cause of this and how to resolve?

Thanks

David
Reply With Quote
  #13  
Old 05-20-2011, 02:46 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
add concurrent_php to ignored Modules.
http://www.litespeedtech.com/docs/we...IgnoredModules

4.1.1 added that by default.

Last edited by mistwang; 05-20-2011 at 03:11 PM..
Reply With Quote
  #14  
Old 05-20-2011, 03:01 PM
outeredge outeredge is offline
Member
 
Join Date: Sep 2010
Posts: 25
Quote:
Originally Posted by mistwang View Post
add concurrent_php to ignored Modules.
http://www.litespeedtech.com/docs/we...IgnoredModules
Perfect, that works - thanks!
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:30 PM.



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