Sentora Support Forums
open_basedir restriction in effect - Printable Version

+- Sentora Support Forums (https://senforums.mach-hosting.com)
+-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5)
+--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32)
+---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36)
+---- Thread: open_basedir restriction in effect (/showthread.php?tid=2277)



open_basedir restriction in effect - jeremyotten - 12-11-2015

I cannot upload files from an URL in my servicedesk..

The programmer debugged it to this

I uploaded a simple test php script here http://support.randomsolutions.nl/scripts/test.php

the output is:
Warning: is_writable(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/sentora/hostdata/zadmin/public_html/support_randomsolutions_nl:/var/sentora/temp/) in /var/sentora/hostdata/zadmin/public_html/support_randomsolutions_nl/scripts/test.php on line 22 bool(false)


How can i fix this @ the serverside?


RE: open_basedir restriction in effect - TGates - 12-11-2015

The proper way is to find the code that is looking for /tmp and change it too /var/sentora/temp

The less secure (and not recommended) way is to go into module admin > apache config > override virtualhost > select the domain > uncheck open_basedir > save and wait for 5mins for the daemon to update the httpd-vhosts.conf file.


RE: open_basedir restriction in effect - jeremyotten - 12-11-2015

When i do the last... my virtual server no longer works and the webpage generates an error 500


RE: open_basedir restriction in effect - TGates - 12-11-2015

(12-11-2015, 06:26 AM)jeremyotten Wrote: When i do the last... my virtual server no longer works and the webpage generates an error 500

No idea why it would do that. Do you have any other custom vhost entries?


RE: open_basedir restriction in effect - jeremyotten - 12-12-2015

No. One server with just one domain on it..

when i set the custom setting on that vhost.. error 500... the end


RE: open_basedir restriction in effect - TGates - 12-14-2015

You will need to go back and revert your changes. Also, you should be running 1.0.3 (or update your server profile).


Also check if there is a .htaccess in that domains root folder to see if there are any directives that may be causing it.