Contact
Site: US UK AU |

How to create dev sites for Magento 1

How to create dev sites for Magento 1

Overview
This article explains how Nexcess Classic (non-Cloud) clients can create development (dev) sites for Magento 1.

What you need

  • A working, preferably current installation of Magento 1
  • A Nexcess Classic (non-Cloud) account and access to SiteWorx; If you use Nexcess Cloud, see instead What are Nexcess Cloud dev sites? for details regarding dev site creation
  • MySQL, or phpMyAdmin access through SiteWorx
  • SSH (recommended) or SFTP program

Method

ATTENTION: This method is intended only for Nexcess Classic (non-Cloud) clients. If you use Nexcess Cloud, see instead What are Nexcess Cloud dev sites? for details about dev site creation.

  1. Create the secondary domain to serve as the dev site. For details, refer to How to add secondary domains with SiteWorx.

  2. Using SSH or SFTP, copy your website files from your PHP installation to your new secondary domain. SSH is the preferred method, as FTP may take considerable time to copy these files. See How to transfer files to a server with SFTP for details.  

  3. Download your live website’s database as a .sql file to your computer. If you are proficient with the command line interface and MySQL, see How to export tables and import MySQL tables via CLI/SSH. If not, use the method provided in How to import and export MySQL databases in SiteWorx.

  4. Create a new MySQL database, a new user, and to assign that new user to the new database. Refer to How to create MySQL databases and users with SiteWorx for more information.

  5. Open this new database in PHPMyAdmin, then import the downloaded .sql file to the dev site database. As in Step 3, see How to export tables and import MySQL tables via CLI/SSH or How to import and export MySQL databases in SiteWorx for guidance.

  6. Change the base URL by opening your newly imported database in PhpMyAdmin, or by accessing via CLI. In the core_config_data table, update the web/unsecure/base_url and web/secure/base_url entries with the URL of your dev site. See How to change Magento URLs for more information.

  7. Verify you have updated all URLs by searching for %<your_domain.com>%, and update as necessary.

  8. Using a text editor, modify your app/etc/local.xml file to the new database name, mysql user, and password you made in Step 4. Save changes on the files you copied to your new dev site.

  9. Flush your cache. See How to flush your Magento cache for assistance.

 

For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.

Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
How to improve Magento maintenance mode
Added on Mon, Feb 24, 2014
How to install Magento CE v1.8 and later
Added on Thu, Mar 6, 2014
How to optimize Magento performance
Added on Mon, Jul 29, 2013
What is Turpentine?
Added on Thu, Aug 28, 2014
How to add admin users in Magento 1.x
Added on Wed, Dec 7, 2016
How to perform Magento database maintenance
Added on Tue, Jul 30, 2013
What is Magento?
Added on Thu, Sep 10, 2015
How to improve the security of your Magento store
Added on Wed, Dec 26, 2018
What is Varnish?
Added on Thu, Aug 28, 2014
How to protect your Magento store from the Credit Card Hijack exploit
Added on Tue, Nov 22, 2016