Post by philzilla86 » Tue Oct 26, 2021 12:41 am

Hi All

I have just migrated the site from one hosting to a VPS and getting the errors

Warning: require_once(): open_basedir restriction in effect. File(/home/httpd/vhosts/******/httpdocs/system/startup.php) is not within the allowed path(s): (/var/www/vhosts/custom-wrist-bands.com/:/tmp/) in /var/www/vhosts/******/httpdocs/index.php on line 20

Warning: require_once(/home/httpd/vhosts/*****/httpdocs/system/startup.php): failed to open stream: Operation not permitted in /var/www/vhosts/*******/httpdocs/index.php on line 20

Fatal error: require_once(): Failed opening required '/home/httpd/vhosts/*******/httpdocs/system/startup.php' (include_path='.:/opt/plesk/php/7.4/share/pear') in /var/www/vhosts/*****/httpdocs/index.php on line 20

Any ideas on how I fix this

Thanks

Newbie

Posts

Joined
Tue Oct 26, 2021 12:39 am

Post by OSWorX » Tue Oct 26, 2021 1:01 am

As the message already tells you: open_basedir restriction

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by straightlight » Tue Oct 26, 2021 2:04 am

philzilla86 wrote:
Tue Oct 26, 2021 12:41 am
Hi All

I have just migrated the site from one hosting to a VPS and getting the errors

Warning: require_once(): open_basedir restriction in effect. File(/home/httpd/vhosts/******/httpdocs/system/startup.php) is not within the allowed path(s): (/var/www/vhosts/custom-wrist-bands.com/:/tmp/) in /var/www/vhosts/******/httpdocs/index.php on line 20

Warning: require_once(/home/httpd/vhosts/*****/httpdocs/system/startup.php): failed to open stream: Operation not permitted in /var/www/vhosts/*******/httpdocs/index.php on line 20

Fatal error: require_once(): Failed opening required '/home/httpd/vhosts/*******/httpdocs/system/startup.php' (include_path='.:/opt/plesk/php/7.4/share/pear') in /var/www/vhosts/*****/httpdocs/index.php on line 20

Any ideas on how I fix this

Thanks
Contact your host to resolve this issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by EvolveWebHosting » Wed Nov 03, 2021 10:53 pm

philzilla86 wrote:
Tue Oct 26, 2021 12:41 am
Hi All

I have just migrated the site from one hosting to a VPS and getting the errors

Warning: require_once(): open_basedir restriction in effect. File(/home/httpd/vhosts/******/httpdocs/system/startup.php) is not within the allowed path(s): (/var/www/vhosts/custom-wrist-bands.com/:/tmp/) in /var/www/vhosts/******/httpdocs/index.php on line 20

Warning: require_once(/home/httpd/vhosts/*****/httpdocs/system/startup.php): failed to open stream: Operation not permitted in /var/www/vhosts/*******/httpdocs/index.php on line 20

Fatal error: require_once(): Failed opening required '/home/httpd/vhosts/*******/httpdocs/system/startup.php' (include_path='.:/opt/plesk/php/7.4/share/pear') in /var/www/vhosts/*****/httpdocs/index.php on line 20

Any ideas on how I fix this

Thanks
The server is not configured properly as already stated. If it's a managed VPS, contact your hosting provider and give them this error. If it is an unmanaged VPS, whoever is your server admin will need to help you correct this.

2 Week FREE Trial of our Shared Hosting plans (DIrectAdmin or cPanel) for new customers
2 Week FREE Trial of Astra Firewall and Malware Scanner
Visit our website for full details and to start your trial today - www.evolvewebhost.com


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by ishahzeb » Sat Nov 27, 2021 12:29 am

If you are using Shared hosting or Cpanel, You have to follow below details:

- Set memory_limit to 128M. memory_limit describes the maximum amount of memory a script can allocate. It is recommended to set this to the maximum available value. Letter M stands for megabytes.

- Set upload_max_filesize to 64M. upload_max_filesize describes a maximum size of an uploaded file. It must be larger than the theme file mentioned in the example.

- Set post_max_size to 64M. post_max_size has a similar functionality to upload_max_filesize. Make it larger than 19 MB (theme file) as well.

But if you are using Cloudways hosting, Navigate to Setting and Package and click To edit the upload size limit, log in to your Cloudways account navigate to Server under the Server Settings & Packages edit the Upload Size field as shown in the screenshot. Don’t forget to click on Save Changes at the bottom of the screen.

Image

Newbie

Posts

Joined
Fri Nov 26, 2021 11:47 pm
Who is online

Users browsing this forum: No registered users and 112 guests