Sentora Support Forums

Full Version: is_dir() and mkdir() problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.
# 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
(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.
Thx guys, I think that fix my problem Smile
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?
Anyone?
(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
(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