open_basedir restriction in effect
#1
open_basedir restriction in effect
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?
Reply
#2
RE: open_basedir restriction in effect
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.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#3
RE: open_basedir restriction in effect
When i do the last... my virtual server no longer works and the webpage generates an error 500
Reply
#4
RE: open_basedir restriction in effect
(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?
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#5
RE: open_basedir restriction in effect
No. One server with just one domain on it..

when i set the custom setting on that vhost.. error 500... the end
Reply
#6
RE: open_basedir restriction in effect
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.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Sentora open_basedir - how to set for specific directory sathish2009 6 20 ,017 05-02-2019, 07:35 AM
Last Post: TGates
how fix Warning: finfo_file(): open_basedir restriction in effect. File(/var/sentora/ jeff 1 6 ,979 04-11-2017, 12:02 AM
Last Post: Ron-e
Open_basedir restriction Ints 2 8 ,982 12-12-2016, 01:17 AM
Last Post: Ints

Forum Jump:


Users browsing this thread: 1 Guest(s)