Page 1 of 1

Help! Failed attempt to clone a live site

Posted: 11 Oct 2017, 15:05
by kevinharper
I wanted to clone our live OpenCATS installation to test future updates and customizations, but I ended up with a fatal error, and now our live installation is down. Can someone tell me what I did wrong, or if my server configuration got messed up somehow?

I used SSH to copy the files from the entire folder to a new folder:

cp -fr sourcefoldername destinationfoldername

Then I went into the MySQL database, exported the entire thing, created a new one, and imported the SQL file. There were no errors, everything executed perfectly.

I then went into the new folder and changed the config file database settings to point to the new one.

Sometime around this time, we noticed the live site being down. Host is Dreamhost.

There is a 500 error on the root of the site: "Internal Server Error - the server encountered an internal error...."

And a Fatal Error on the careers portal: "Fatal error: Can't inherit abstract function awComponent::drawEnvelope() (previously declared abstract in finalize) in /path/to/Component.class.php on line 19."

Any help identifying what went wrong is appreciated. Dreamhost just says to restore from backup, but we'll lose about 4 hours of applicants. Not a lot, but I'd like to avoid if possible—and I'm not even convinced restoring will work, if the problem is how Dreamhost maps their MySQL to subdomains. It seemed sketchy to me while setting it up, and I'm concerned that that is what caused this error.

Re: Help! Failed attempt to clone a live site

Posted: 11 Oct 2017, 19:51
by kevinharper
Update:

Dreamhost found a zend_extension line in the .htaccess that somehow got added to the site, maybe by employee testing things. This line was deleted and both the original site and cloned site now work.

Re: Help! Failed attempt to clone a live site

Posted: 11 Dec 2017, 11:52
by RussH
Thanks Kevin..

that would have taken an age to find!

checking .htaccess would be one of the last things I'd check.. especially if I was just cloning a live site.