Install Webserver di Debian
install apache2
root@rufaidah:~# aptitude -y install apache2
konfigurasi apache2
root@rufaidah:~# vi /etc/apache2/conf.d/security
# line 27: change
ServerTokens Prod
# line 39: change
ServerSignature Off
root@rufaidah:~# vi /etc/apache2/mods-enabled/dir.conf
# line 3: add file name that it can access only with directory's name
DirectoryIndex index.html index.htm
root@rufaidah:~# vi /etc/apache2/sites-available/default
# line 2: change to webmaster's email
ServerAdmin webmaster@server.world
# line 3: add server's hostname
ServerName rufaidah.server.world
# line 11: change
AllowOverride All
root@rufaidah:~# /etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting
install perlg
root@rufaidah:~# aptitude -y install perl
konfigurasi perl
root@rufaidah:~# vi /etc/apache2/mods-enabled/dir.conf
# line 3: add file name that it can access only with directory's name
DirectoryIndex index.html index.cgi
root@rufaidah:~# vi /etc/apache2/mods-enabled/mime.conf
# line 219: uncomment and add extensions for CGI
AddHandler cgi-script .cgi .pl
root@rufaidah:~# vi /etc/apache2/sites-available/default
# line 10: change ( remove "Indexes" )
Options FollowSymLinks MultiViews ExecCGI
root@rufaidah:~# /etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting
install php
root@rufaidah:~# aptitude -y install php5 php5-cgi libapache2-mod-php5 php5-common php-pear
root@rufaidah:~# vi /etc/apache2/mods-enabled/mime.conf
# near line 220: add extension for PHP
AddHandler php5-script .php
root@rufaidah:~# vi /etc/php5/apache2/php.ini
# line 876: uncomment and add your timezone
date.timezone = "Asia/Tokyo"
root@rufaidah:~# /etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting
Install Ruby
root@rufaidah:~# aptitude -y install ruby1.9.3
root@rufaidah:~# vi /etc/apache2/mods-enabled/mime.conf
# line 219: add extension for ruby script
AddHandler cgi-script .cgi .pl .rb
root@rufaidah:~# /etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting .
Friday, 24 April 2015
Menginstall NFS Server dan NFS Client di Debian
Posted By: Rufaidah-network - 20:31
Menginstall NFS Server dan NFS Client de Debian
1 NFS Server caranya ikuti langkah langkahnya seperti di bawah ini :
root@rufaidahServer:~# aptitude -y install nfs-kernel-server
root@rufaidahServer:~# vi /etc/idmapd.conf
# line 6: uncomment and change to your domain name
Domain = server.world
root@rufaidahServer:~# vi /etc/exports
# write like below *note
/home 10.0.0.0/24(rw,sync,fsid=0,no_root_squash,no_subtree_check)
# *note
/home ⇒ shared directory
10.20.0.0/24 ⇒ range of networks NFS permits accesses
rw ⇒ possible to read and write
sync ⇒ synchronize
no_root_squash ⇒ enable root privilege
no_subtree_check ⇒ disable subtree check
root@rufaidahServer:~# /etc/init.d/nfs-kernel-server restart
Menginstall NFS Client
root@rufaidahclient:~# aptitude -y install nfs-common
root@rufaidahclient:~# vi /etc/idmapd.conf
# line 6: uncomment and change to your domain name
Domain = server.world
root@rufaidahclient:~# /etc/init.d/nfs-common restart
Stopping NFS common utilities: idmapd statd.
Starting NFS common utilities: statd idmapd.
root@rufaidahclient:~# mount -t nfs rufaidahServer.server.world:/home /home
root@rufaidahclient:~# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 19G 745M 17G 5% /
udev 10M 0 10M 0% /dev
tmpfs 202M 196K 202M 1% /run
/dev/mapper/www-root 19G 745M 17G 5% /
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 403M 0 403M 0% /run/shm
/dev/vda1 228M 18M 199M 9% /boot
rufaidahServer.server.world:/home 19G 917M 17G 6% /home
# home directory on NFS is mounted
root@rufaidahclient:~# vi /etc/fstab
# add at the last: change home directory this server mounts to the one on NFS
rufaidahServer.server.world:/home /home nfs defaults 0 0
1 NFS Server caranya ikuti langkah langkahnya seperti di bawah ini :
root@rufaidahServer:~# aptitude -y install nfs-kernel-server
root@rufaidahServer:~# vi /etc/idmapd.conf
# line 6: uncomment and change to your domain name
Domain = server.world
root@rufaidahServer:~# vi /etc/exports
# write like below *note
/home 10.0.0.0/24(rw,sync,fsid=0,no_root_squash,no_subtree_check)
# *note
/home ⇒ shared directory
10.20.0.0/24 ⇒ range of networks NFS permits accesses
rw ⇒ possible to read and write
sync ⇒ synchronize
no_root_squash ⇒ enable root privilege
no_subtree_check ⇒ disable subtree check
root@rufaidahServer:~# /etc/init.d/nfs-kernel-server restart
Menginstall NFS Client
root@rufaidahclient:~# aptitude -y install nfs-common
root@rufaidahclient:~# vi /etc/idmapd.conf
# line 6: uncomment and change to your domain name
Domain = server.world
root@rufaidahclient:~# /etc/init.d/nfs-common restart
Stopping NFS common utilities: idmapd statd.
Starting NFS common utilities: statd idmapd.
root@rufaidahclient:~# mount -t nfs rufaidahServer.server.world:/home /home
root@rufaidahclient:~# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 19G 745M 17G 5% /
udev 10M 0 10M 0% /dev
tmpfs 202M 196K 202M 1% /run
/dev/mapper/www-root 19G 745M 17G 5% /
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 403M 0 403M 0% /run/shm
/dev/vda1 228M 18M 199M 9% /boot
rufaidahServer.server.world:/home 19G 917M 17G 6% /home
# home directory on NFS is mounted
root@rufaidahclient:~# vi /etc/fstab
# add at the last: change home directory this server mounts to the one on NFS
rufaidahServer.server.world:/home /home nfs defaults 0 0
Ok sampai disini mudah mudahan bisa bermanfaat
Subscribe to:
Comments (Atom)
Popular
Tags
Videos