KONFIGURASI WEB SERVER DEBIAN LENNY
Langsung saja, ikuti langkah berikut.
1. Login sebagai Root
2. Install paket untuk web servernya.
apt-get install apache2 php5 |
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libexpat1 libmysqlclient15off libpq5 mysql-common openssl openssl-blacklist php5-common ssl-cert Suggested packages: apache2-doc apache2-suexec apache2-suexec-custom php-pear ca-certificates The following NEW packages will be installed: apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libexpat1 libmysqlclient15off libpq5 mysql-common openssl openssl-blacklist php5 php5-common ssl-cert 0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/14.0MB of archives. After this operation, 31.8MB of additional disk space will be used. Do you want to continue [Y/n]? y |
3. Backup dulu konfigurasi untuk web servernya.
cp /etc/apache2/sites-available/default /etc/apache2/sites-available/default.asli |
4. Kemudian edit file configurasinya.
pico /etc/apache2/sites-available/default |
<VirtualHost *:80> ServerAdmin admin.daywalker@gmail.com ServerName www.situstkj.co.cc ServerAlias situstkj.co.cc DocumentRoot /var/www/ </VirtualHost> |
5. Restart paket web servernya.
/etc/init.d/apache2 restart |
6. Edit file index sesuka anda (harus sesuai bahasa html)
pico /var/www/index.html |
7. Pada computer client anda, buka www.situstkj.co.cc (domain anda) Jika sesuai dengan editan anda,
Tidak ada komentar:
Posting Komentar