Contact
Site: US UK AU |

How to create Magento and WordPress dev sites

How to create Magento and WordPress dev sites

Overview
This article explains how Nexcess clients can create development (dev) sites for Magento 1.x, Magento 2, and WordPress.

Before proceeding

This document assumes you have beginner-level web development skills and requires proficiency with the following systems:

  • MySQL

  • FileZilla or a similar file-transfer utility

  • SiteWorx

Procedure

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

  2. Using FileZilla or a similar file-transfer program, copy your website files from your PHP installation to your new secondary domain. See How to set up FileZilla and How to use FileZilla for more information.

  3. Download your live website’s database as a .sql file to your computer. From SiteWorx, you may use PhpMyAdmin to export this database; refer to How to import and export MySQL databases.

  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 and import the downloaded .sql file to the dev site database.

  6. Change the base URL; choose the option corresponding to your platform:

    • If using Magento 1.x:

      1. Open your newly imported database in PhpMyAdmin.

      2. On the left, locate the core_config_data table.

      3. Update web/unsecure/base_url and web/secure/base_url to show the URL of your dev site.

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

    • If using Magento 2:

      1. Open your newly imported database in PhpMyAdmin.

      2. On the left, locate the core_config_data table.

      3. Update the following paths to show the URL of your website:

        1. web/unsecure/base_url

        2. web/secure/base_url

        3. design/head/includes

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

    • If using WordPress:

      1. Open your newly imported database in PhpMyAdmin. On the left, locate the wp_options table.

      2. From the “option_name” column, locate the following values in this table:

        1. siteurl

        2. home

      3. These values will display a sub-value of your old domain. Update them with the URL of your dev site.

  1. Select one of the following two options to modify critical files:

    • If using Magento 1.x:

      1. Modify your app/etc/local.xml file to reflect the new database name, mysql user, and password you created in Step 4.

      2. Save changes on the files you copied to your new dev site.

    • If using Magento 2: Modify env.php file under app/etc/env.php to reflect the new database name, mysql user, and password you created in Step 4. For more information, refer to the Mage2.PRO website.

    • If using WordPress:

      1. Modify your wp-config.php file to reflect the new database name, mysql user, and password you made in Step 4.

      2. Save changes on the files you copied to your new dev site.

  2. Flush your cache. If using Magento, see How to flush your Magento cache for assistance. If using a WordPress module that enables caching, refer to the documentation for that module.

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
What is the “Client denied by server configuration app/etc/local.xml” error?
Added on Thu, Sep 10, 2015
How to configure WordPress file permissions
Added on Wed, Oct 29, 2014
How to purchase Nexcess shared hosting plans
Added on Mon, Jan 4, 2016
How to install Magento CE v1.8 and later
Added on Thu, Mar 6, 2014
What is Turpentine?
Added on Thu, Aug 28, 2014
What is WordPress?
Added on Wed, Sep 11, 2013
How to combat WordPress comment spam
Added on Wed, Oct 29, 2014
How to add and remove WordPress users
Added on Mon, Jun 4, 2018
How to configure CDN access for Magento
Added on Wed, May 16, 2018
How to configure the Magento Product Importer (Magmi)
Added on Mon, Jan 26, 2015