Post by sugarskull » Mon Aug 19, 2013 7:11 pm

I am wanting to make changes to my website and I am wanting to test out new things with it, but on a localhost MAMP.
I have completely backed up the files, exported the database from mySQL. I have imported this database into my MAMP SQL, and set the mamp folder to the backup of all the website files. I have then changed the OC config files to the username: root and password: root just as the mamp requires. This all provides a server 500 internal error.

Can anyone provide me a tutorial as to how to get a copy of my online website OC installation onto my localhost for testing.
Thank you!

New member

Posts

Joined
Fri Nov 23, 2012 8:50 am

Post by Calcite » Mon Aug 19, 2013 8:38 pm

I did similar but forget all the steps.

I had the same database name user and passwords for both MAMP and live store and it worked, however I left both config files on the local server as default installation.

In other words the config paths are:


// HTTP
define('HTTP_SERVER', 'http://localhost:8888/');
define('HTTP_IMAGE', 'http://localhost:8888/image/');
define('HTTP_ADMIN', 'http://localhost:8888/admin/');

// HTTPS
define('HTTPS_SERVER', 'http://localhost:8888/');
define('HTTPS_IMAGE', 'http://localhost:8888/image/');

// DIR
define('DIR_APPLICATION', '/Applications/MAMP/htdocs/catalog/');
define('DIR_SYSTEM', '/Applications/MAMP/htdocs/system/');
define('DIR_DATABASE', '/Applications/MAMP/htdocs/system/database/');
define('DIR_LANGUAGE', '/Applications/MAMP/htdocs/catalog/language/');
define('DIR_TEMPLATE', '/Applications/MAMP/htdocs/catalog/view/theme/');
define('DIR_CONFIG', '/Applications/MAMP/htdocs/system/config/');
define('DIR_IMAGE', '/Applications/MAMP/htdocs/image/');
define('DIR_CACHE', '/Applications/MAMP/htdocs/system/cache/');
define('DIR_DOWNLOAD', '/Applications/MAMP/htdocs/download/');
define('DIR_LOGS', '/Applications/MAMP/htdocs/system/logs/');

// DB

This section is the same as the live server config.

I am now also running XAMPP which has been ported to Mac. Did it because I had some weird things happen in the admin panel with differnt PHP versions which can be set in MAMP preferences.

http://www.apachefriends.org/en/xampp-macosx.html

I am about to go the other way back up to the server after developing a new look but there are differences in the layout and database so may have a few problems on the live server.

Also one tip if you don't already know...Use Cyberduck or similar FTP on the Localhost to "upload" new extensions or folders. If you just add extension folders from Finder window on the Mac it will actually replace the same folder in Mamp/htdocs instead of merging them. Took me a lot of time copying individual files across before finding I could FTP them and merge them.

More info on this site but slightly out of date with Lion OSX

http://blog-en.mamp.info/2009/08/how-to ... -mamp.html

Active Member

Posts

Joined
Fri Dec 30, 2011 3:21 am

Post by butte » Mon Aug 19, 2013 10:52 pm

sugarskull, your local 500 might be thrown by having imported the public server's .htaccess file. Try renaming or sidelining that in order to silence it for the moment. If that stops the 500, then just don't use the .htaccess (as-is) from the public server.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am
Who is online

Users browsing this forum: Bing [Bot] and 140 guests