MEMBUAT
WEB SERVER SERVER DEBIAN
1.
Install Web servernya (apache2) :
#apt-get
install apache2
2.
Install PHP yg support dg apache2 (PHP5)
#apt-get
install libapache2-mod-php5 php5-cli php5-common php5-cgi
Kemudian file2 utk web ditaruh di /var/www
KONFIGURASI FTP
root@tkjswat:/#apt-get
install vsftpd
Setelah terinstall baru
kita lakukan konfigurasi. File konfigurasi vsftpd di debian/ubuntu ada di
/etc/vsftpd.conf, silahkan buka dengan editor teks favorit anda. Nah, disini
saya copy-paste (salin-tempel) saja konfigurasi vsftpd saya yang memungkinkan
user anonymous dan non-anonymous bisa login bersamaan.
# Run standalone? vsftpd
can run either from an inetd or as a standalone
# daemon started from an
initscript.
listen=YES
# Allow anonymous FTP?
(Beware – allowed by default if you comment this out).
anonymous_enable=YES
# Uncomment this to allow
local users to log in.
local_enable=YES
# Uncomment this to
enable any form of FTP write command.
write_enable=YES
# Default umask for local
users is 077. You may wish to change this to 022,
# if your users expect
that (022 is used by most other ftpd’s)
local_umask=022
# Activate directory
messages – messages given to remote users when they
# go into a certain
directory.
dirmessage_enable=YES
# Activate logging of
uploads/downloads.
xferlog_enable=YES
# Make sure PORT transfer
connections originate from port 20 (ftp-data).
connect_from_port_20=YES
anon_root=/media/ftp
Kurang lebih seperti itu
file konfigurasi vsftpd saya. Opsi anon_root untuk mendeklarasikan folder
chroot untuk user anonymous. Selebihnya silahkan disesuaikan.
mailserver
# apt-cdrom
add
# apt-get
update
apt-get
install postfix dovecot-common dovecot-imapd dovecot-pop3d squirrelmail
nano
/etc/dovecot/dovecot.conf
squirrelmail-configure
Kemudian
tuliskan dovecot dan tekan enter :
echo
"Include /etc/squirrelmail/apache.conf" >>
/etc/apache2/apache2.conf
#
/etc/init.d/postfix restart
#
/etc/init.d/dovecot restart
#
/etc/init.d/apache2 restart
adduser situstkj
dpkg-reconfigure postfix
general type : internet site
system mail name : gigih-tkj.com
root and postmaster :[kosongkan]
other destination : pada baris terakhir tambahkan
0.0.0.0/0
Force synchronous : no
Local network : 0.0.0.0/0
Use procmail : No
Mailbox size : 0
Local address : +
Internet protocols : ipv4
root@tkjswat:/#nano
/etc/postfix/main.cf
Pada baris terakhir tambahkan:
home_mailbox = Maildir/
root@tkjswat:/#/etc/init.d/postfix
restart
root@tkjswat:/#/etc/init.d/courier-imap
restart
root@tkjswat:/#/etc/init.d/courier-pop restart
0 komentar:
Posting Komentar