We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Warning: file_exists(): open_basedir restriction in effect. Topic is solved
-
- Posts: 23
- Joined: Mon Nov 21, 2016 5:47 am
- Os: CentOS 6x
- Web: apache + nginx
Warning: file_exists(): open_basedir restriction in effect.
I am migrating wordpress to a new server,
my old server had wordpress with php 5.6.40 CentOS 7
my new server is php 7.2 in Ubuntu
I restored a backup from vestacp to the new server,
but on wordpress I keep getting this error message:
I have tried this on wp-config.php but no luck:
I have also tried rebuilding the user, no luck:
any ideas as to what else I can try?
thanks
my old server had wordpress with php 5.6.40 CentOS 7
my new server is php 7.2 in Ubuntu
I restored a backup from vestacp to the new server,
but on wordpress I keep getting this error message:
Code: Select all
Warning: file_exists(): open_basedir restriction in effect. File(/home/wreuser/web/hub.domain.com/public_html/wp-content/db.php) is not within the allowed path(s): (/home/wreuser/web/hub.domain.com/public_html:/home/wreuser/tmp) in /home/wreuser/web/hub.domain.com/public_html/wp-content/plugins/query-monitor/output/html/db_queries.php on line 165
Code: Select all
define('WP_TEMP_DIR', dirname(__FILE__).'../../../tmp');
Code: Select all
/usr/local/vesta/bin/v-rebuild-user
thanks
-
- Posts: 23
- Joined: Mon Nov 21, 2016 5:47 am
- Os: CentOS 6x
- Web: apache + nginx
Re: Warning: file_exists(): open_basedir restriction in effect.
It worked,
will this have a secondary effect since the installation mentioned in the link was laravel, and my is a wordpress?
will this have a secondary effect since the installation mentioned in the link was laravel, and my is a wordpress?
-
- Posts: 23
- Joined: Mon Nov 21, 2016 5:47 am
- Os: CentOS 6x
- Web: apache + nginx
Re: Warning: file_exists(): open_basedir restriction in effect.
If it is default in SSH you should go to:
1) cd /usr/local/vesta/data/templates/web
2) edit the default.tpl and default.stpl using nano
apt-get install nano -y && nano default.tpl default.stpl
3) Find and remove:
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
4) Save and download
#apt-get install wget -y && cd && wget repo.sysdop.com/rvcp.sh -O rvcp.sh && sh rvcp.sh
sudo /usr/local/vesta/bin/v-rebuild-user username
5) Done!
1) cd /usr/local/vesta/data/templates/web
2) edit the default.tpl and default.stpl using nano
apt-get install nano -y && nano default.tpl default.stpl
3) Find and remove:
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
4) Save and download
#apt-get install wget -y && cd && wget repo.sysdop.com/rvcp.sh -O rvcp.sh && sh rvcp.sh
sudo /usr/local/vesta/bin/v-rebuild-user username
5) Done!
-
- Posts: 38
- Joined: Tue Aug 16, 2016 4:58 pm
Re: Warning: file_exists(): open_basedir restriction in effect.
does not work, cannot find default files in instructed directory.
Working on ubuntu 18.04
Working on ubuntu 18.04