Sentora open_basedir - how to set for specific directory
#1
Sentora open_basedir - how to set for specific directory
Hi,

how to set for specific directory open_basedir

i get following error when running my CI project


Code:
A PHP Error was encountered Severity: Warning Message: ini_set(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/sentora/hostdata/zadmin/public_html/inv_opensourceworld_info:/var/sentora/temp/) Filename: drivers/Session_files_driver.php Line Number: 108 Backtrace: File: /var/sentora/hostdata/zadmin/public_html/inv_opensourceworld_info/application/controllers/Auth.php Line: 7 Function: __construct File: /var/sentora/hostdata/zadmin/public_html/inv_opensourceworld_info/index.php Line: 315 Function: require_once
Reply
#2
RE: Sentora open_basedir - how to set for specific directory
Fixed the issue thanks to @Ron-e

Thread Link


http://forums.sentora.org/showthread.php...1#pid20031

Steps:

Module Admin -> Apache Config -> Select domain at "Override a Virtual Host Setting" -> unselect "OpenBase Enabled" -> save -> wait 5 min. or run daemon manually.
Reply
#3
RE: Sentora open_basedir - how to set for specific directory
lol, i'm glad i could help.. Tongue

My Sentora DemoMy GithubAuxio Github
Zentora themeS-Type themeCstyleX theme
flat-color-iconssmall-n-flat-icons

Sentora's development takes way too long, so i'm transitioning to HestiaCP.
Reply
#4
RE: Sentora open_basedir - how to set for specific directory
(10-26-2017, 11:31 PM)Ron-e Wrote: lol, i'm glad i could help.. Tongue


Hi sorry for interrupt this post, my english its not good and im new at sentora but i have the same issue when i try to use session_start

Warning: session_start(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/sentora/hostdata/zadmin/public_html/adharagrill_mx:/var/sentora/temp/) in /var/sentora/hostdata/zadmin/public_html/adharagrill_mx/lang/Language.php on line 10

I saw your fix solution but you mentioned that fix could lead to an security issue so there is another way to fix?
Reply
#5
RE: Sentora open_basedir - how to set for specific directory
(04-10-2019, 01:28 AM)Juan Pablo Wrote: Hi sorry for interrupt this post, my english its not good and im new at sentora but i have the same issue when i try to use session_start

Warning: session_start(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/sentora/hostdata/zadmin/public_html/adharagrill_mx:/var/sentora/temp/) in /var/sentora/hostdata/zadmin/public_html/adharagrill_mx/lang/Language.php on line 10

I saw your fix solution but you mentioned that fix could lead to an security issue so there is another way to fix?

That is because your script is looking for /tmp while it should be pointed at /var/sentora/temp You could also try and add /tmp to the Open Base Temp Directory config in: Admin > Module Admin > Apache Config and change it to look like:

Code:
/var/sentora/temp/:/tmp/
-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
#6
RE: Sentora open_basedir - how to set for specific directory
(04-11-2019, 07:24 AM)TGates Wrote: That is because your script is looking for /tmp while it should be pointed at /var/sentora/temp You could also try and add /tmp to the Open Base Temp Directory config in: Admin > Module Admin > Apache Config and change it to look like:

Code:
/var/sentora/temp/:/tmp/

Sorry for the late response but i tried as you said setting this: /var/sentora/temp/:/tmp/ to Apache config and restarted the service but still got the same issue.

[Image: open_base.png]

But still got this 
[Image: issue_temp.png]
i should do the override config?
Reply
#7
RE: Sentora open_basedir - how to set for specific directory
You can do the bypass to test the site and get it working, then we can sort out the folder restriction so that you can turn the blocking back on. I checked the domain and whatever scripts you are using are full of problems from the looks of 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 cp steps 421darren 6 17 ,288 06-12-2025, 03:29 PM
Last Post: AnthonyDillard
Improving Security on Your Sentora Panel: Best Practices DylanForeman 0 445 05-27-2025, 06:10 PM
Last Post: DylanForeman
Is Sentora dead? rajeevrrs 2 5 ,668 12-17-2022, 09:20 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)