Konfigurasi Web Server
1) apt-get
install apache2 php5mysql-server phpmyadmin lynx
2) nano /etc/apache2/sites-available/default
<VirtualHost
*:80>
ServerAdmin admin@itservice5.co.id
ServerName www.itservice5.co.id
ServerAlias
itservice5.co.id
DocumentRoot
/var/www/its/
</VirtualHost>
...................
DocumentRoot /var/www/its/
...............................
{Ctrl+K copy semua script dan paste paling bawah lalu
edit}
<VirtualHost
*:80>
ServerAdmin admin@lks5.co.id
ServerName www.lks5.co.id
ServerAlias
lks5.co.id
DocumentRoot
/var/www/lks/
</VirtualHost>
.....................
DocumentRoot /var/www/lks/
...............................
3) mkdir
/var/www/its
4) mkdir
/var/www/lks
5) cp
/var/www/index.html /var/www/its
6) nano
/var/www/its/index.html
<html><body><h1>Welcome
to IT Service Website</h1></body></html>
7) nano
/var/www/lks/index.php
<?php
print “Welcome to LKS Pringsewu Website” ?>
8) /etc/init.d/apache2
restart
9) lynx www.itservice5.co.id
10)
lynx www.lks5.co.id
Post a Comment