Install Server WEB
Cara melakukan instalasi server web :
1.
Install
paket apache2 => #apt-get install apache2 php5 mysql-server phpmyadmin
2.
File
konfigurasi document root =>
/etc/apache2/sites-available/
3.
Catatan
file index.html/index.php telah
tersimpan di /var/www jika anda ingin mengubah posisi Documet rootnya anda bisa
mengubahnya ke direktori lainya misalkan /home/www/html
(disesuaikan saja dengan kebutuhan anda)
4.
# nano
default ( tampilan default Documentroot)
<VirtualHost *:80> *=ni. ip yang digunakan
ServerAdmin
webmaster@localhost
DocumentRoot
/var/www/ (sesuaikan letak host yang akan digunakan)
<Directory />
Options
FollowSymLinks
AllowOverride
None
</Directory>
<Directory /var/www/> (sesuaikan letak host yang akan digunakan)
Options
Indexes FollowSymLinks MultiViews
AllowOverride
None
Order
allow,deny
allow
from all
#
This directive allows us to have apache2’s default start page
#
in /apache2-default/, but still have / go to the right place
RedirectMatch
^/$ /apache2-default/
</Directory>
…. ……………….Dan seterusnya
</VirtualHost>
#/etc/init.d/apache2 restart
TES DARI LAPTOP CLIENT
Tuliskan di browser IE/firefox/google chrom/opera
di address bar :
Kalo ada tulisan “it works ! “ berarti apache2 sudah berjalan
Komentar