Share this topic on Del.icio.usShare this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on SlashdotShare this topic on StumbleUponShare this topic on TechnoratiShare this topic on TwitterShare this topic on YahooShare this topic on Google buzz

Author Topic: Membuat forum berbasis SMF di Intranet  (Read 819 times)

0 Members and 1 Guest are viewing this topic.

Offline 1nf0rm4t1c5

  • Administrator
  • *
  • Posts: 1039
  • Reputasi: 15
  • Informatics Developer

  • Aktivitas bulan ini
    12%
    • Forum Informatika
  • Lokasi: Indonesia
  • Jenis Kelamin: Laki-laki
Membuat forum berbasis SMF di Intranet
« on: 26 November 2009, 22:57:48 »
Membangun forum, blog, atau website jenis apapun banyak dilakukan di localhost (komputer lokal/pribadi) sebagai latihan sebelum di-upload di server / hosting yang sesungguhnya.

Namun bagaimana kalau kita membangun forum tapi hanya dikhususkan untuk pengguna intranet atau komputer2 yang terhubung dalam LAN (jaringan lokal) ?

Perangkat yang kita gunakan untuk praktek kali ini adalah:
  • OS: Windows XP SP2
  • Software Lain: WAMP (Windows, Apache, Mysql, PHP)
  • Minimal 2 komputer yang saling terkoneksi atau LAN dengan bbrp komputer

Setting IP Komputer contoh
PC1: 192.168.2.194 (sebagai server forum)
PC2: 192.168.2.195 (klien atau node lain)

Instalasi WAMP ada di sini: http://if.web.id/index.php?topic=778.0

Asumsi Anda sudah berhasil menginstal WAMP, berikutnya, aktifkan modul apache yang kira2 diperlukan seperti:
  • rewrite_module
  • vhost_alias_module

Tampilan web localhost adalah seperti ini:



Berikutnya silakan Anda instal forum SMF di localhost (pada komputer yang akan dijadikan server), tutorial lama ada di sini: http://if.web.id/index.php?topic=103.0

Jika sudah selesai, sebagai tes awal, untuk memanggil alamat website/forum dari komputer klien biasa ke komputer server adalah dengan mengetikkan alamat IP Komputer server, yaitu: 192.168.2.194.

Sebelum di-setting akan memunculkan tampilan berikut:



SETTING
  • Aktifkan modul Apache - Virtual Host jika belum, yaitu vhost_alias_module
     

     
  • Buka file httpd.conf, biasanya ada di sini:
    Quote
    C:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf
    Atau bisa juga Anda buka melalui sytray-nya WAMP.

    Cari tulisan berikut di bagian bawah file:
    Quote
    # Virtual hosts
    # Include conf/extra/httpd-vhosts.conf

    Hilangkan tanda komentar # di file konfigurasinya, sehingga nampak seperti di bawah ini:

    Quote
    # Virtual hosts
    Include conf/extra/httpd-vhosts.conf
    Kemudian simpan.

  • Berikutnya buka file konfigurasi virtual host di:
    Quote
    C:\wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf

    Isi file tersebut seperti ini:
    Quote
    #
    # Virtual Hosts
    #
    # If you want to maintain multiple domains/hostnames on your
    # machine you can setup VirtualHost containers for them. Most configurations
    # use only name-based virtual hosts so the server doesn't need to worry about
    # IP addresses. This is indicated by the asterisks in the directives below.
    #
    # Please see the documentation at
    # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
    # for further details before you try to setup virtual hosts.
    #
    # You may use the command line option '-S' to verify your virtual host
    # configuration.

    #
    # Use name-based virtual hosting.
    #
    NameVirtualHost *:80

    #
    # VirtualHost example:
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for all requests that do not
    # match a ServerName or ServerAlias in any <VirtualHost> block.
    #

    #
    # Virtual Hosts
    #
    # If you want to maintain multiple domains/hostnames on your
    # machine you can setup VirtualHost containers for them. Most configurations
    # use only name-based virtual hosts so the server doesn't need to worry about
    # IP addresses. This is indicated by the asterisks in the directives below.
    #
    # Please see the documentation at
    # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
    # for further details before you try to setup virtual hosts.
    #
    # You may use the command line option '-S' to verify your virtual host
    # configuration.

    #
    # Use name-based virtual hosting.
    #
    NameVirtualHost *:80

    #
    # VirtualHost example:
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for all requests that do not
    # match a ServerName or ServerAlias in any <VirtualHost> block.
    #
    <VirtualHost *:80>
       ServerName 127.0.0.1
       DocumentRoot "C:/wamp/www/smf1"
            ErrorLog "logs/smf-error.log"
            CustomLog "logs/smf-access.log" common
       <Directory />
          Options FollowSymLinks
          AllowOverride FileInfo Options
       </Directory>
       <Directory "C:/wamp/www/smf1">
          Options Indexes FollowSymLinks
          AllowOverride FileInfo Options
          Order allow,deny
          Allow from all
       </Directory>
    </VirtualHost>

    <VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot "C:/wamp/www/"
        ServerName localhost
        ErrorLog "logs/localhost-error.log"
        CustomLog "logs/localhost-access.log" common
       <Directory />
          Options FollowSymLinks
          AllowOverride All
       </Directory>
    </VirtualHost>
  • Penjelasan sekilas bagian utama, yaitu alamat forum SMF Anda:

    Quote
    <VirtualHost *:80>
       ServerName 127.0.0.1
       DocumentRoot "C:/wamp/www/smf1"
            ErrorLog "logs/smf-error.log"
            CustomLog "logs/smf-access.log" common
       <Directory />
          Options FollowSymLinks
          AllowOverride FileInfo Options
       </Directory>
       <Directory "C:/wamp/www/smf1">
          Options Indexes FollowSymLinks
          AllowOverride FileInfo Options
          Order allow,deny
          Allow from all
       </Directory>
    </VirtualHost>

    Tulisan biru tersebut adalah alamat direktori dari forum Anda.

  • Bagian 2
    Quote
    <VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot "C:/wamp/www/"
        ServerName localhost
        ErrorLog "logs/localhost-error.log"
        CustomLog "logs/localhost-access.log" common
       <Directory />
          Options FollowSymLinks
          AllowOverride All
       </Directory>
    </VirtualHost>

    Tulisan hijau di atas adalah alamat localhost Anda, yaitu memunculkan homepage WAMP.

  • Dalam systray WAMP, silakan Anda restart semua servis, yaitu dengan memilih Restart All Services

Sekarang alamat IP server (forum) bisa dipanggil di komputer lain dalam jaringan dengan sesuai, contoh tampilan:



Selamat mencoba.  :yes:
« Last Edit: 27 November 2009, 21:24:30 by 1nf0rm4t1c5 »
Full access for guest [REGISTER]
Please read the rule [RULES]
Promosi?  [STEP-BY-STEP]

RAR PASSWORD : http://if.web.id --> buat buka file rar

Forum Informatika

Membuat forum berbasis SMF di Intranet
« on: 26 November 2009, 22:57:48 »
Sponsored Links: