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.

is_dir() and mkdir() problem
#1
is_dir() and mkdir() problem
Hi there guys,

I'm facing this problem:

is_dir(): open_basedir restriction in effect. File(/var/sentora/sessions) is not within the allowed path(s): (/var/sentora/hostdata/his/public_html/pagos_his_edu_do:/var/sentora/temp/)

mkdir(): open_basedir restriction in effect. File(/var/sentora/sessions) is not within the allowed path(s): (/var/sentora/hostdata/his/public_html/pagos_his_edu_do:/var/sentora/temp/)


Don't know what to do. I've search and nothing found.
Reply
Thanks given by:
#2
RE: is_dir() and mkdir() problem
That's because you are trying to access a folder/location outside of your normal domain folder. The openbase_dir and suhosin lock the user down to their own folder.
-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: is_dir() and mkdir() problem
# log into your Sentora control panel
# Go to Menu Admin/Modual Admin/Apache Config
# select the domain from the Override a Virtual Host Setting drop down
# select the check box for open_basedir

Save
Reply
Thanks given by: Blooddarkness
#4
RE: is_dir() and mkdir() problem
(08-01-2015, 06:30 AM)clu55ter Wrote: # log into your Sentora control panel
# Go to Menu Admin/Modual Admin/Apache Config
# select the domain from the Override a Virtual Host Setting drop down
# select the check box for open_basedir

Save

Correct, this will disable openbase_dir for that domain. If this is one of your own sites, this is OK but still could prove to be a vulnerability if the web scripts you are using have any holes.
-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: clu55ter
#5
RE: is_dir() and mkdir() problem
Thx guys, I think that fix my problem Smile
Reply
Thanks given by:
#6
RE: is_dir() and mkdir() problem
But I have another one within your fix:

Forbidden

You don't have permission to access / on this server.

Apache Server at pagos.his.edu.do Port 80

what's wrong?
Reply
Thanks given by:
#7
RE: is_dir() and mkdir() problem
Anyone?
Reply
Thanks given by:
#8
RE: is_dir() and mkdir() problem
(08-04-2015, 12:59 AM)Blooddarkness Wrote: But I have another one within your fix:

Forbidden

You don't have permission to access / on this server.

Apache Server at pagos.his.edu.do Port 80

what's wrong?

Add index.html
in
DirectoryIndex

http://pagos.his.edu.do/index.html Big Grin
Reply
Thanks given by:
#9
RE: is_dir() and mkdir() problem
(08-04-2015, 12:59 AM)Blooddarkness Wrote: But I have another one within your fix:

Forbidden

You don't have permission to access / on this server.

Apache Server at pagos.his.edu.do Port 80

what's wrong?

Add index.html
in
DirectoryIndex

http://pagos.his.edu.do/index.html Big Grin
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Problem with roundcube pgh2011 0 2 ,289 01-30-2021, 12:48 AM
Last Post: pgh2011
Import zpanel settings problem pgh2011 0 2 ,292 12-30-2020, 07:08 PM
Last Post: pgh2011
Senator crash problem with mysql provokas 3 9 ,699 08-20-2020, 04:11 AM
Last Post: Your Creator

Forum Jump:


Users browsing this thread: 1 Guest(s)