Pada kesempatan kali ini saya akan membahas tentang cara Upload Opencart Dari Localhost Ke Domain, url yang kita pakai bukan 
http://localhost/opencartguwe tapi: http://opencartguwe.com.

Akibatnya:
kita ngga bisa menuju url yang sedang kita kembangin itu secara online. 
Maksudnya, jika kita sudah mempunyai domain itu dan sudah online maka yang terload di browser kita ketika menilik url domain kita tersebut adalah yang versi offline (http://localhost/opencartguwe).

Berikut ini kami berikan langkah - langkahnya :


  1. asumsi menggunakan XAMPP. download di http://apachefriends.org/en/xampp-windows.html.
  2. misal domain kita adalah opencartguwe.com. Pastikan semua service XAMPPnya dimatikan terlebih dahulu. Stop semua servicenya di Start Menu -> XAMPP -> XAMPP-Control-Panelnya.
  3. Buka Control Panel Windows (bukan Control Panel XAMPP) ==> Add Hardware ==> Yes, I have already connected the hardware ==> Add new hardware device ==> Install secara Advanced ==> Network Adapters ==> Manufacture : Microsoft, Network Adapter : Microsoft Loopback Adapter.
  4. Buka Network Connections di Control Panel. Ganti nama Microsoft Loopback Adapter yang barusan kita buat, misalnya: koneksi-opencartguwe.com. Klik kanan ==> Properties ==> Double klik Internet Protocol(TCP/IP) ==> Use the following IP address => Isi sebagai berikut (boleh diganti)
    IP Address : 192.168.1.1
    Subnet mask : 255.255.255.0
    Default gateway : 192.168.1.1
  5. Buat folder di Drive D:/opencartguwe.com (atau dimana lah terserah agan)
  6. Hapus tanda pagar "#" di baris LoadModule vhost_alias_module modules/mod_vhost_alias.so di file /xampp/apache/conf/httpd.conf.
    7. Copy code di bawah ini ke /xampp/apache/conf/extra/httpd-vhosts.conf 

VirtualHost 192.168.1.1:80>
    DocumentRoot "D:/husada/opencartguwe.com"
    ServerName opencartguwe.com
    ServerAlias www.opencartguwe.com
    ErrorLog "logs/opencartguwe.com-error.log"
    CustomLog "logs/opencartguwe.com-access.log" combined

<Directory "D:/gangsar/opencartguwe.com">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks Includes ExecCGI

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>
</VirtualHost>

 9. Buka file \WINDOWS\System32\drivers\etc\hosts. Tambahkan seperti di bawah ini:
192.168.1.1 opencartguwe.com www.opencartguwe.com
 10. Nyalakan service2 di XAMPP lewat Control Panel XAMPP. Jika ada yang tidak mau aktif, itu berarti ada yang salah dengan pengeditan file di atas. Coba periksa lagi.
11. Merdeka, silahkan tilik url http://opencartguwe.com di browser. Kalau ada tulisan apache2 gitu, berarti Agan sudah berhasil. Sekarang tinggal isi deh file-file agan di workspace Agan yang baru (di D:\opencartguwe.com).

Demikian pembahasan saya kali ini Tentang Upload Opencart Dari Localhost Ke Domain, semoga bermanfaat.

Tagged:

2 komentar:

  1. Thanks a lot for providing individuals with a very terrific opportunity to read in detail from this site.

    It's usually

    very ideal plus packed with a good time for me and my office

    acquaintances to search your

    site at a minimum 3 times in 7 days to find out the newest guidance you have. And of course,

    we are actually

    impressed considering

    the astonishing

    tips served by you. Some 1

    points in this article are essentially the best I've had.
    Here is my blog post wiki.zbedu.net

    BalasHapus
    Balasan
    1. We are very happy to share to everyone, but we are only human that much less. But it is good we can be better for tomorrow

      Hapus