- Server operating system version
- Cento os 7.9.2009
- Plesk version and microupdate number
- 18.0.45
Magento 2.4.3
PHP 7.4 .30 FPM application served by nginx
We are having a new Magento 2.4 website developed on our server but we have decided to move it to a different domain which is basically the same domain name but moving from .co to .co.uk & when I try to install the cron job with the command:
I get the following warnings:
For some reason it seems to be referencing the old domain & old subdomain but I cannot find out where.
Line 14 of the bin/magento file is:
and the app/bootstrap.php file is there but I have no understanding of how it all works.
I know I can install the cron job other ways & I have done that but I have a few other errors on the site which may be related to this.
Any suggestions?
Thanks
PHP 7.4 .30 FPM application served by nginx
We are having a new Magento 2.4 website developed on our server but we have decided to move it to a different domain which is basically the same domain name but moving from .co to .co.uk & when I try to install the cron job with the command:
Code:
bin/magento cron:install [--force]
I get the following warnings:
Code:
PHP Warning: require(): open_basedir restriction in effect. File(/var/www/vhosts/newdomian.co.uk/httpdocs/app/bootstrap.php) is not within the allowed path(s): (/var/www/vhosts/olddomain.co/:/tmp/) in /var/www/vhosts/newdomain.co.uk/httpdocs/bin/magento on line 14
PHP Warning: require(/var/www/vhosts/newdomain.co.uk/httpdocs/app/bootstrap.php): failed to open stream: Operation not permitted in /var/www/vhosts/newdomain.co.uk/httpdocs/bin/magento on line 14
PHP Fatal error: require(): Failed opening required '/var/www/vhosts/newdomain.co.uk/httpdocs/bin/../app/bootstrap.php' (include_path='.:/var/www/vhosts/olddomain.co/oldsubdomain.co/opt/plesk/php/7.4/share/pear/vendor') in /var/www/vhosts/newdomain.co.uk/httpdocs/bin/magento on line 14
For some reason it seems to be referencing the old domain & old subdomain but I cannot find out where.
Line 14 of the bin/magento file is:
Code:
require __DIR__ . '/../app/bootstrap.php';
and the app/bootstrap.php file is there but I have no understanding of how it all works.
I know I can install the cron job other ways & I have done that but I have a few other errors on the site which may be related to this.
Any suggestions?
Thanks