General > Support

open_basedir restriction in effect

(1/3) > >>

rascomm:
Hey guys... i have been trying to make the messenger coexist with a joomla installation, finally I moved the Mibew messenger to a subdomain to keep the two applications separated so joomla runs under / at domain.com and the messenger runs under /.SubDomains/mibew at mibew.domain.com.

Joomla requires magic_quotes_gpc = Off to work, so I had to create a local php.ini file under / and it works perfectly. The problem comes with mibew as this php.ini affects everything under /.

I am getting open_basedir errors, like this:


--- Code: ---Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/user/public_html/.SubDomains/mibew/libs/../) in /home/user/public_html/.SubDomains/mibew/libs/common.php

--- End code ---

This is my php.ini:


--- Code: ---register_globals = Off
safe_mode = Off
allow_url_fopen = Off
allow_url_include = Off
;display_errors = Off
magic_quotes_gpc = Off
memory_limit = 64M
upload_max_filesize = 8M
upload_tmp_dir = /home/user/tmp
open_basedir = /tmp:/home/user/tmp:/home/user/public_html/.SubDomains/mibew:/home/user/public_html/.SubDomains/mibew/libs
disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
--- End code ---

If I comment the open_basedir line altogether i still get error messages regarding /tmp not being within the allowed paths in open_basedir.

Linux Kernel      2.6.18-448.4.1.el5.lve0.8.69
Apache version    2.2.24
MySQL version    5.1.59-rel13.0-log
PHP version    5.3.21

Any help is greatly appreciated.

RAM

faf:
Please, provide the output of phpinfo() and more details on your hosting environment (i.e. OS, what mode PHP is running in, etc.).

rascomm:
Thanks FAF, i got it working, just had to declare
--- Code: ---session.save_path = /home/user/tmp/sessions
--- End code ---
in my local php.ini, so that open_basedir will also include
--- Code: ---open_basedir = /tmp:/home/user/tmp:/home/user/tmp/sessions:/home/user/public_html/.SubDomains/mibew
--- End code ---

Thanks!

faf:
Actually, there is nothing to thank me for. However, you're welcome!  :)

maitane:
Hi!
I'm having the same problem, but I don't understand how you solved it.

I installed osTicket support sistem on my website. Under that directory, I created "chat" directory where I have installed Mibew. The installation gone well and I have installed spanish language without any problem.

On the "index.php" page of the osTicket website I have placed Mibew button: "require('chat/mibewbutton.php');".
Where the php file contains this code: http://mibew.org/forums/index.php/topic,1189.0.html .

It works fine.

My problem is that on the same "index.php" this line:
"require(CLIENTINC_DIR.'footer.inc.php');" gives me an error:


--- Code: ---PHP Warning:  require(): open_basedir restriction in effect. File(/home/myuser/public_html/osticket/include/client/footer.inc.php) is not within the allowed path(s): (/home/myuser/public_html/osticket/chat/libs/../) in /home/myuser/public_html/osticket/index.php on line 67
--- End code ---

Before putting "require('chat/mibewbutton.php');" worked fine.

Could you tell me if it's problem from Mibew or osTicket?

(Sorry about my english)

Navigation

[0] Message Index

[#] Next page

Go to full version