Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

how to make directory under web root

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
marsha1234
Posts: 1
Joined: Mon Jul 10, 2017 4:13 pm

how to make directory under web root
  • Quote

Post by marsha1234 » Mon Jul 10, 2017 4:29 pm

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
Top

plutocrat
Posts: 232
Joined: Fri Jan 27, 2017 9:16 am

Os: Ubuntu 17x
Web: apache + nginx
Re: how to make directory under web root
  • Quote

Post by plutocrat » Wed Jul 12, 2017 2:50 am

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.
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: how to make directory under web root
  • Quote

Post by mehargags » Wed Jul 12, 2017 8:10 am

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
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password