Change in : xampp > apache > conf > extra > httpd-vhosts.conf
<VirtualHost *:88>
##ServerAdmin [email protected]
DocumentRoot "C:/xampp/htdocs/netpower/magento/Magento_CE_1_9"
ServerName salgvest.local
##ErrorLog "logs/netpower/magento/Magento_CE_1_9_error.log"
##CustomLog "logs/netpower/magento/Magento_CE_1_9_access.log" common
</VirtualHost>
Change in : xampp > apache > conf > httpd.conf : chang port to 88
1. Create local.xml
2. Create env.php // Magento 2
3. Config XAMPP [1]
local.xml
====================================================
<?xml version="1.0"?>
<!--
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we åcan send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category Mage
* @package Mage_Core
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
-->
<config>
<global>
<install>
<date><![CDATA[Fri, 31 Jul 2015 03:15:54 +0000]]></date>
</install>
<crypt>
<key><![CDATA[==1231313123==]]></key>
</crypt>
<disable_local_modules>false</disable_local_modules>
<resources>
<db>
<table_prefix><![CDATA[]]></table_prefix>
</db>
<default_setup>
<connection>
<host><![CDATA[==1.1.1.1==]]></host>
<username><![CDATA[==hieu==]]></username>
<password><![CDATA[==hieu==]]></password>
<dbname><![CDATA[==Magento_Database==]]></dbname>
<initStatements><![CDATA[SET NAMES utf8]]></initStatements>
<model><![CDATA[mysql4]]></model>
<type><![CDATA[pdo_mysql]]></type>
<pdoType><![CDATA[]]></pdoType>
<active>1</active>
</connection>
</default_setup>
</resources>
<session_save><![CDATA[files]]></session_save>
<remote_addr_headers>
<header1>HTTP_X_REAL_IP</header1>
<header2>HTTP_X_FORWARDED_FOR</header2>
</remote_addr_headers>
</global>
<admin>
<routers>
<adminhtml>
<args>
<frontName><![CDATA[==desktop==]]></frontName>
</args>
</adminhtml>
</routers>
</admin>
<stores>
<default>
<web>
<unsecure>
<base_url>==http://test.local:88/==</base_url>
</unsecure>
</web>
</default>
<admin>
<web>
<unsecure>
<base_url>==http://test.local:88/==</base_url>
</unsecure>
</web>
</admin>
</stores>
</config>
env.php // MAGENTO 2
====================================================
<?php
return [
'backend' => [
'frontName' => 'desktop'
],
'crypt' => [
'key' => '==123412312321412412=='
],
'db' => [
'table_prefix' => '',
'connection' => [
'default' => [
'host' => '==1.1.1.1==',
'dbname' => '==database name==',
'username' => '==hieu==',
'password' => '==hieu==',
'active' => '1'
]
]
],
'resource' => [
'default_setup' => [
'connection' => 'default'
]
],
'x-frame-options' => 'SAMEORIGIN',
'MAGE_MODE' => 'developer',
'session' => [
'save' => 'files'
],
'cache_types' => [
'config' => 1,
'layout' => 1,
'block_html' => 1,
'collections' => 1,
'reflection' => 1,
'db_ddl' => 1,
'eav' => 1,
'customer_notification' => 1,
'config_integration' => 1,
'config_integration_api' => 1,
'full_page' => 1,
'translate' => 1,
'config_webservice' => 1,
'compiled_config' => 1
],
'install' => [
'date' => 'Mon, 29 Jan 2018 07:15:34 +0000'
],
'system' => [
'default' => [
'dev' => [
'debug' => [
'debug_logging' => '0'
]
]
]
]
];