BUKU-TAMU

Selasa, 02 Oktober 2012

KONFFIGURASI WEB SERVER (Web Server pada Ubuntu 8.04 Server)




1. $ nano /etc/php5/apache2/php.ini
     ; extension = msql.so
                 Tanda ; dihapus ;

2. $ nano / etc/apache2/sites-available/tkj

    Ketik baris berikut :
  
  NameVirtualHost 192.168.1.2:80
 <VirtualHost 192.168.1.2:80>
                    ServerAdmin webmaster@tkj.net
                    ServerName www.tkj.net
                    DocumentRoot /var/www/tkj

                    ScriptAlias /cgi-bind/ /var/www/cgi-bin/
                    <Directory “/var/www/cgi-bin”>
                                          AllowOverride None
                                          Options +ExecCGI –Multiviews +SymlinksIfOwnerMatch
                                         
Order allow,deny
                                          Allow from all
                   </Directory>

                   ErrorLog /var/log/apache2/error.log
                   #Possible values include: debug, info, notic, warn, error, crit,
                   #alert, emerg.
                   LogLevel warn

                   CustomLog /var/log/apache2/access.log combined
                   ServerSignature On
  </VirtualHost>


3. $ mkdir /var/www/tkj
    $ mkdir /var/www/cgi-bin

4. $ a2ensite tkj
5. $ a2disste default
6. $ reboot

7. Nano /var/www/tkj/info.php
    
     Ketik baris Berikut :
     <?
     phpinfo();
     ?>
8. Browsing dari klien menuju alamat :    http://www.tkj.net



Download Artikel Klik Gambar

Baca Artikel Terkait Lainya :