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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > 4.1 > 4.1.1 upgrade - odd behaviour

Reply
 
Thread Tools Display Modes
  #21  
Old 06-28-2011, 12:15 AM
cmanns cmanns is offline
Senior Member
 
Join Date: Jun 2010
Posts: 100
Quote:
Originally Posted by webizen View Post
Could not duplicate the issue. sample code snippet is as follows:
Code:
<?php
include '../../test1/public_html/test1.php';
...
?>
open_basedir is empty.
We enabled WHM/cPanel open_basedir, one site already had issues with it.

A series of includes to take a site forums info and put it on the front page.

Includes like

include "forums/blah/bluuu.php" and required "conf_global.php; in the forums dir which the conf was also in that dir was now failing too. Code that worked for years.

I added a ./ infront of every include, switched require to include_once for some reason required "./blah" caused issues. On a few I did the full path of /home/username/public_html/path/to/php/include

Now it works fine.

pen_basedir no value no value
include_path .:/usr/lib/php:/usr/local/lib/php .:/usr/lib/php:/usr/local/lib/php

Yet phpinfo shows the above, so I ignored module they said here http://www.litespeedtech.com/support...?t=1033&page=2 and then the home made page went to wonk again


Coppermine gallery online users include script uses the below to include config, we got a unable to connect error
require ('include/config.inc.php');


The error we got in error_log

8-Jun-2011 00:10:41] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/home/boo/public_htmlrenders/include/config.inc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/boo/public_html/renders/onlinestats_external.php on line 23

We ended up using


include_once $_SERVER['DOCUMENT_ROOT'] . '/renders/include/config.inc.php';

Is this similar to your problem?
__________________
-William C.Manns Owner of XenServ Co
Need LiteSpeed Hosting, Server Tuning, or Other Help I'm your guy

http://xenserv.com http://evilpuma.com
Reply With Quote
  #22  
Old 07-11-2011, 05:49 PM
XN-Matt XN-Matt is offline
Member
 
Join Date: Apr 2011
Posts: 46
Sounds very similar.. and obviously an issue between the version.

Support??
Reply With Quote
  #23  
Old 07-11-2011, 07:37 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
It is likely caused by concurrent_php module support in the new version (open_basedir is not empty). old version does not support that module and simply ignore the whole section (hence open_basedir becomes empty).

Code:
<IfModule concurrent_php.c>
        php4_admin_value open_basedir ".:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/$
        php5_admin_value open_basedir ".:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    <IfModule !concurrent_php.c>
        <IfModule mod_php4.c>
            php_admin_value open_basedir ".:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/ph$
        </IfModule>
    </IfModule>
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:19 AM.



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