2.
KONFIGURASI IP
4.
INSTALL DNS SERVER
- apt-cdrom add
- apt-get install bind9
- cd /etc/bind/
- nano named.conf.local
zone "tkj.net"
{
type master;
file
"/etc/bind/db.local";
};
zone
"192.168.100.1.in-addr.arpa" {
type master;
file
"/etc/bind/db.255";
};
- nano db.local
@ IN SOA tkj.net. root.tkj.net. {
@ IN NS tkj.net.
@ IN A 192.168.100.1
www IN A 192.168.100.1
mail IN A 192.168.100.1
ftp IN A 192.168.100.1
video IN A 192.168.100.1
- nano db.255
@ IN SOA tkj.net. root.tkj.net. {
@ IN NS tkj.net.
1 IN PTR tkj.net.
- nano /etc/resolv.conf
nameserver 192.168.100.1
5.
INSTALL APACHE2
- apt-get install apache2
- mkdir /var/www/ostube
- chmod 777 /var/www/ostube
- tar xvf
/home/tkj/OsTube-2.1.tar.gz
- cd /etc/apache2/sites-avaliable/
- cp default video
- nano video
ServerName video.tkj.net
DocumentRoot
/var/www/ostube/
<Directory
/var/www/ostube/>
ScriptAlias /cgi-bin/
/var/www/ostube/cgi-bin/
<Directory
"/var/www/ostube/cgi-bin">
- a2ensite video
- /etc/init.d/apache2 restart
6.
INSTALL PHP5
- apt-get install php5
- nano /etc/php5/apache2/php.ini
- (CTRL+W) upload_max
- ganti 2M menjadi 1000M
7.
INSTALL PHP5-CLI
- apt-get install php5-cli
8.
INSTALL MYSQL-SERVER
- apt-get install mysql-server
password: 12345
- mysql -u root -p
- create database
ostube;
- grant INSERT,SELECT on
root.* to ostube@localhost;
- grant CREATE,INSERT,SELECT,DELETE,UPDATE
on ostube.* to ostube@localhost identified by "ostubepass";
- grant
CREATE,INSERT,SELECT,UPDATE on ostube.*
to ostube identified by “ostubepass";
- exit
- chown -Rf www-data.www-data /var/www/ostube
7.
PADA BROWSER
- (pada addressbar) video.tkj.net