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
How to configure WordPress plug-ins
Added on Tue, Jul 30, 2013
How to configure Magento to use your SSL certificate
Added on Mon, Feb 29, 2016
How to conserve disk space in Magento
Added on Fri, Jan 17, 2014
How to install WordPress
Added on Tue, Aug 6, 2013
How to configure the Nexcess CDN with WordPress and W3 Total Cache
Added on Thu, Mar 8, 2018
What is WordPress?
Added on Wed, Sep 11, 2013
What is Magento?
Added on Thu, Sep 10, 2015
How to configure CDN access for Magento
Added on Wed, May 16, 2018
How to patch your Magento store
Added on Mon, Jan 11, 2016
How to optimize Magento performance
Added on Mon, Jul 29, 2013