Page 1 of 1

how to make directory under web root

Posted: Mon Jul 10, 2017 4:29 pm
by marsha1234
guys please help me

my case is...i need to make new directory under webroot along with public_html directory and others

like this
cgi-bin
document_errors
MYFOLDER <<< needs all access 0777
public_html
etc...

the problem is MYFOLDER directory not detected by php script it said..UR MYFOLDER DIRECTORY DOESNT EXSIST..PLEASE MAKE IT CORRECT

what should i do to fix it..
need help

Re: how to make directory under web root

Posted: Wed Jul 12, 2017 2:50 am
by plutocrat
You're not really giving a lot of information here, but you might want to look into the php logs and see if there are errors about the open_basedir directive.

If this is the case, you'll need to adjust this. You can do so temporarily in your ~/conf/web/apache2.conf. If you want the changes to be permanent, you can change the template file in
/usr/local/vesta/data/templates/web/
Or, probably better, create a new template from default.tpl, and then select it in the control panel.

Re: how to make directory under web root

Posted: Wed Jul 12, 2017 8:10 am
by mehargags
In your apache2.conf (and in sapach2.conf also if using https)
edit this line php_admin_value open_basedir /home/<user> and in the end add : /home/<user>/web/MYFOLDER