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

Incorrect open_basedir

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
cyberking55
Posts: 2
Joined: Fri Jun 07, 2019 7:54 pm

Os: Ubuntu 17x
Web: apache + nginx
Incorrect open_basedir
  • Quote

Post by cyberking55 » Fri Jun 07, 2019 8:03 pm

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

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: Incorrect open_basedir
  • Quote

Post by dreiggy » Mon Jul 29, 2019 3:14 pm

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/
Last edited by dreiggy on Wed Jul 31, 2019 6:32 pm, edited 1 time in total.
Top

Alex Connor
Support team
Posts: 1047
Joined: Fri Mar 21, 2014 7:49 am
Contact:
Contact Alex Connor
Website Twitter

Os: CentOS 6x
Web: apache + nginx
Re: Incorrect open_basedir
  • Quote

Post by Alex Connor » Mon Jul 29, 2019 8:11 pm

dreiggy wrote: ↑
Mon Jul 29, 2019 3:14 pm
As I understand from your error, you should add location to your domain open_basedir record: /usr/share/php
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
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