Incorrect open_basedir
-
- Posts: 2
- Joined: Fri Jun 07, 2019 7:54 pm
- Os: Ubuntu 17x
- Web: apache + nginx
Incorrect open_basedir
Hello all,
I am trying to install a SMM panel on my subdomain, Its a laravel script so in the project folder there is a public folder which i put in public_html and all the other files I put in smm folder outside public_html folder.
Now I am getting this error:
Warning: require(): open_basedir restriction in effect. File(/home/admin/web/smm.dreamwebsters.com/smm/bootstrap/autoload.php) is not within the allowed path(s): (/home/admin/web/smm.dreamwebsters.com/public_html:/home/admin/tmp) in /home/admin/web/smm.dreamwebsters.com/public_html/index.php on line 28
Warning: require(/home/admin/web/smm.dreamwebsters.com/smm/bootstrap/autoload.php): failed to open stream: Operation not permitted in /home/admin/web/smm.dreamwebsters.com/public_html/index.php on line 28
Fatal error: require(): Failed opening required '/home/admin/web/smm.dreamwebsters.com/public_html/../smm/bootstrap/autoload.php'
(include_path='.:/usr/share/php') in /home/admin/web/smm.dreamwebsters.com/public_html/index.php on line 28
What should I do? I have read few articles which told me to edit
/usr/local/vesta/data/templates/web/apache2/basedir.tpl
/usr/local/vesta/data/templates/web/apache2/basedir.stpl
but how to do it and what should I add in it?
I am trying to install a SMM panel on my subdomain, Its a laravel script so in the project folder there is a public folder which i put in public_html and all the other files I put in smm folder outside public_html folder.
Now I am getting this error:
Warning: require(): open_basedir restriction in effect. File(/home/admin/web/smm.dreamwebsters.com/smm/bootstrap/autoload.php) is not within the allowed path(s): (/home/admin/web/smm.dreamwebsters.com/public_html:/home/admin/tmp) in /home/admin/web/smm.dreamwebsters.com/public_html/index.php on line 28
Warning: require(/home/admin/web/smm.dreamwebsters.com/smm/bootstrap/autoload.php): failed to open stream: Operation not permitted in /home/admin/web/smm.dreamwebsters.com/public_html/index.php on line 28
Fatal error: require(): Failed opening required '/home/admin/web/smm.dreamwebsters.com/public_html/../smm/bootstrap/autoload.php'
(include_path='.:/usr/share/php') in /home/admin/web/smm.dreamwebsters.com/public_html/index.php on line 28
What should I do? I have read few articles which told me to edit
/usr/local/vesta/data/templates/web/apache2/basedir.tpl
/usr/local/vesta/data/templates/web/apache2/basedir.stpl
but how to do it and what should I add in it?
Re: Incorrect open_basedir
As I understand from your error, you should add location to your domain open_basedir record: /usr/share/php
@Edit:
Better add whole domain dir: /home/admin/web/smm.dreamwebsters.com/
@Edit:
Better add whole domain dir: /home/admin/web/smm.dreamwebsters.com/
Last edited by dreiggy on Wed Jul 31, 2019 6:32 pm, edited 1 time in total.
-
- Support team
- Posts: 1047
- Joined: Fri Mar 21, 2014 7:49 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Incorrect open_basedir
No, its wrong. Script need access to folder /home/admin/web/smm.dreamwebsters.com/smm/bootstrap/, but basedir not allowed. So, for resolving this problem, you may edit your domain config (or best practice create new config and add that folder to basedir record