This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

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
Thanks given by:
#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
Thanks given by:
#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
Thanks given by:
#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
Thanks given by:
#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
Thanks given by:
#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
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Sentora open_basedir - how to set for specific directory sathish2009 6 17 ,378 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 ,174 04-11-2017, 12:02 AM
Last Post: Ron-e
Open_basedir restriction Ints 2 8 ,071 12-12-2016, 01:17 AM
Last Post: Ints

Forum Jump:


Users browsing this thread: 1 Guest(s)