how to make directory under web root
-
- Posts: 1
- Joined: Mon Jul 10, 2017 4:13 pm
how to make directory under web root
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
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
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.
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.
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: how to make directory under web root
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
edit this line php_admin_value open_basedir /home/<user> and in the end add : /home/<user>/web/MYFOLDER