Moving an opencart website

Avatar
  • Answered
I had an opencart store configured on a domain that was parked to my main domains cpanel. I've recently unparked and created a new cpanel for the store. Moved the database to the new cpanel, and I compressed the parked domain directory, moved the zip to the new cpanel. Unzipped and everything looked good with folder placement. I went into the opencart configuration file and updated the DB info to the new DB name and username and password. I also set up a generic underconstruction html file for the site for the time being. It's 24 hours and I can see the generic under construction page just fine, but when I go to log into the admin page of my opencart and met with this error.

Warning: require_once(/home/OLDDOMAIN/public_html/ninja300decals.com/system/startup.php) [function.require-once]: failed to open stream: Permission denied in /home/ninja300decals/public_html/admin/index.php on line 17

Fatal error: require_once() [function.require]: Failed opening required '/home/OLDDOMAIN/public_html/ninja300decals.com/system/startup.php' (include_path='.:/usr/lib/php') in /home/ninja300decals/public_html/admin/index.php on line 17

I'm unsure of what I missed. Can somebody please advise.

Thank you
Avatar
Arn
Hello,

Sorry for the problem that you're seeing with the transfer of your Opencart site to your VPS. I fixed the permissions issue for you. The problem you're seeing is the result of moving from a shared server (where the owner of the files is NOBODY to a VPS, where there is a defined owner. The files/folders were still looking for a owner of NOBODY, but your server was set to the owner of the VPS account that you created.

The remaining problem is your database connection. You need to configure correctly in the config.php file. The database name is NOT the same when move it to a different server. Make sure that you correct it, and that you assign a datbase user and password (assigned to the database) that matches with your transferred OpenCart installation.

I hope this helps to answer your question, please let us know if you require any further assistance.

Regards,
Arnel C.