art1c0 / mooha

Automatically exported from code.google.com/p/mooha
0 stars 0 forks source link

open_basedir restriction in effect #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Error opening in the browser:

Warning: is_executable() [function.is-executable]: open_basedir restriction in 
effect. File(/usr/bin/wbxml2xml) is not within the allowed path(s): 
(/var/www/vhosts/site.ru/httpdocs:/tmp) in 
/var/www/vhosts/site.ru/httpdocs/modules/mooha_server/mooha/inc/WbxmlHelper.php 
on line 101

Warning: is_executable() [function.is-executable]: open_basedir restriction in 
effect. File(/usr/local/bin/wbxml2xml) is not within the allowed path(s): 
(/var/www/vhosts/site.ru/httpdocs:/tmp) in 
/var/www/vhosts/site.ru/httpdocs/modules/mooha_server/mooha/inc/WbxmlHelper.php 
on line 101

Warning: is_executable() [function.is-executable]: open_basedir restriction in 
effect. File(/usr/bin/xml2wbxml) is not within the allowed path(s): 
(/var/www/vhosts/site.ru/httpdocs:/tmp) in 
/var/www/vhosts/site.ru/httpdocs/modules/mooha_server/mooha/inc/WbxmlHelper.php 
on line 101

Warning: is_executable() [function.is-executable]: open_basedir restriction in 
effect. File(/usr/local/bin/xml2wbxml) is not within the allowed path(s): 
(/var/www/vhosts/site.ru/httpdocs:/tmp) in 
/var/www/vhosts/site.ru/httpdocs/modules/mooha_server/mooha/inc/WbxmlHelper.php 
on line 101

Fatal error: SyncmlException: Cannot decode WBXML in 
/var/www/vhosts/site.ru/httpdocs/modules/mooha_server/mooha/inc/WbxmlHelper.php 
on line 66 ...SyncmlException: Source (input) is empty in 
/var/www/vhosts/site.ru/httpdocs/modules/mooha_server/mooha/inc/WbxmlHelper.php 
on line 56 in 
/var/www/vhosts/site.ru/httpdocs/modules/mooha_server/mooha/config.php on line 
58

============================================

Error when connected to syncml:

Invalid Server Response

============================================

files "wbxml2xml" and "xml2wbxml" exist in /usr/bin/

Original issue reported on code.google.com by sergey.s...@gmail.com on 8 Jul 2011 at 8:48

GoogleCodeExporter commented 9 years ago
You have the answer for your question in your error log: "open_basedir 
restriction in effect" means that PHP cannot access "/usr/bin/" directory due 
to security reasons.

You should turn off "open_basedir" in PHP or move (create symlinks for) 
"wbxml2xml" and "xml2wbxml" files inside protected scope.

If you cannot do that there is only option to set WBXML_USE_EXTERNAL costant to 
FALSE (in config.php)

Original comment by artico.b...@gmail.com on 25 Aug 2011 at 10:25