http://localhost/opencartgw
tapi:
http://opencartgw.com.
Ini Untuk Windows untuk Linux, insha Alloh, besok-besok kalau ada kesempatan.
1. asumsi web server yang mau kita gunakan, menggunakan XAMPP. Bisa didownload di sini http://apachefriends.org/en/xampp-windows.html.
2. misal domain kita adalah opencartgw.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-opencartgw.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:/opencartgw.com (atau dimana lah terserah agan enaknya di mana )
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
Code: Select all
<VirtualHost 192.168.1.1:80>
DocumentRoot "D:/opencartgw.com"
ServerName opencartgw.com
ServerAlias www.opencartgw.com
ErrorLog "logs/opencartgw.com-error.log"
CustomLog "logs/opencartgw.com-access.log" combined
<Directory "D:/opencartgw.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>
Code: Select all
192.168.1.1 opencartgw.com www.opencartgw.com
11. Merdeka! buka http://opencartgw.com di browser. Kalau ada tulisan apache2 gitu, berarti Agan sudah berhasil. Sekarang tinggal isi dah file-file agan di workspace Agan yang baru (di D:\opencartgw.com).
Kalo ada problem, kasih tahu aja ya... jangan sungkan-sungkan.