Post by REW » Fri Apr 22, 2016 8:19 am

Hi,

Running opencart 1.5.6.4.

Today I wanted to clone my whole install to a development location.

I downloaded all content via FTP, and uploaded to a new subdomain.
Created new database.
Exported old database, then import to new database, no errors.
changed both config.php files with new file paths and database name info

When I load the site I get:

Warning: require_once(/home/cmargo5/development.ourwebsite.com/system/startup.php): failed to open stream: Permission denied in /home/tobiasdev/development.ourwebsite.com/index.php on line 21

Fatal error: require_once(): Failed opening required '/home/cmargo5/development.ourwebsite.com/system/startup.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/tobiasdev/development.ourwebsite.com/index.php on line 21

I checked permissions on startup.php and it's 644, same as the live site.
I see from index.php that startup.php is a vqmod file. Tried running /vqmod/install but no change.

What should I do? Can anyone point me in the right direction?

Not super critical as live site is fine.

Thanks!! O0

REW
New member

Posts

Joined
Wed Feb 25, 2015 4:00 am

Post by IP_CAM » Sat Apr 23, 2016 1:23 am

startup.php is sure NOT a VqMod File, but you had VqMod installed before, on your other server, and you just tried now, to move a fully 'enabled' System to another Place.

You should have better de-activated everything first, like all Vqmod's, and Modules, not required to make OC work,
then, download and reupload the whole works (exept for the ../CACHE/... Stuff and images). And to make absolutely sure, it will work, UPLOAD TWO VIRGIN Index.php Files, from an untouched Package, to start up the system again on the new Server. Then, initialize the VqMod again, by calling
http -- yoursite/shop/vqmod/install/
and then, you may start to enable your different Modules and VqMod's again.

Good Luck ;)
Ernie

PS: You should never EXPORT/IMPORT such a DB, you SHOULD CREATE a new DB, and then COPY/MOVE the entire CONTENT, not only DATA, from your old existing DB, by USE of the Server MyAdmin Tool, only then, you sure have a full COPY of everything, you keep on your old DB.

PS2: VqMod Files always carry an .xml Title.Extension

PS3: And what about the .htaccess file, did you adjust it, to be able to 'handle' the new Shop-Directory ?

Code: Select all

# SEO URL Settings
RewriteEngine On
RewriteBase /shop/
 

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by REW » Sat Apr 23, 2016 2:43 am

Thanks so much for the awesome reply!

- First, My PHPMyadmin does not have an option for "Copy Database to:" in the Operations tab. It's PHPMyadmin 4.6.0. Host support not helpful, as usual. (Dreamhost)

- Tried fresh new index.php files in root and /admin, no change.

- Looked at .htaccess. I don't run the shop in a subdirectory, I run it in root. But here's my settings anyway:

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

I'm now going to disable all extensions, re-download, re-upload. And export the DB with extensions disabled I suppose.

But then I'm just using the regular database export import again. I'm about to give up. blah. Thanks for the help though.

REW
New member

Posts

Joined
Wed Feb 25, 2015 4:00 am

Post by victorj » Sat Apr 23, 2016 3:13 am

Most of time its related to wrong path in the config files.
best is to upload all files to development place.
also upload the folder install wich came with original download.
edit both config files in root and admin and remove all content save and reupload.

go through installer and finish install.

check site for proper functioning

now go into phpmyadmin, select all tables and remove them then import copy off your database.

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland
Who is online

Users browsing this forum: No registered users and 5 guests