SMEOnffLine: Instalasi dan Konfigurasi Server Standard
Revision as of 11:44, 18 November 2009 by Onnowpurbo (talk | contribs)
su - cp /etc/resolv.conf /etc/resolv.conf.nawala apt-get install dhcp3-server postfix apache2 mysql-server libmysqlclient15-dev libphp-adodb \ libgd2-xpm libgd2-xpm-dev php5-mysql php5-gd php5-curl php-pear unzip php5-xmlrpc vsftpd \ libnet-ssleay-perl openssh-server catdoc dnsutils bind9 ntp tinyproxy dansguardian smbfs \ samba vsftpd ubiquity ubiquity-frontend-gtk ubiquity-ubuntu-artwork ubiquity-casper \ dovecot-common dovecot-imapd dovecot-pop3d postfix squirrelmail squirrelmail-decode \ postgresql postgresql-client libdbd-pg-perl libdbi-perl libwww-perl
MySQL Root: <123456> <123456> Internet with Smarthost smtp.telkom.net
pear install Auth_SASL Net_Sieve HTTP_WebDAV_Server HTTP_WebDAV_Server-1.0.0RC4 pear install --alldeps Log pear install --alldeps Net_IMAP
cp /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf cp /etc/resolv.conf /etc/resolv.conf.nawala
mkdir /var/data mkdir /var/data/public mkdir /var/data/repo mkdir /var/www/ubuntu mkdir /var/www/library chown -Rf nobody.nogroup /var/data chmod -Rf 777 /var/data chown -Rf www-data.www-data /var/www/library chown -Rf www-data.www-data /var/www/ubuntu chown -Rf www-data.www-data /var/www/ chmod -Rf 777 /var/www/library chmod -Rf 777 /var/www/ubuntu chmod -Rf 777 /var/www/ rm /var/www/index.*
mkdir /home/ftp chown -Rf root.root /home/ftp /etc/init.d/vsftpd restart mkdir /home/ftp/pub mkdir /home/ftp/pub/repo chown -Rf ftp.nogroup /home/ftp/pub
cd /usr/local/src/ tar zxvf webmin-1.490.tar.gz
/usr/sbin/squirrelmail-configure 2 -> 1 -> ukm.co.id -> S -> Q
vi /etc/dhcp3/dhcpd.conf
ddns-update-style none; option domain-name "ukm.co.id" option domain-name-servers 192.168.0.254, 203.34.118.10, 203.34.118.12, 208.67.222.222, 208.67.220.220; default-lease-time 86400; # 24 jam max-lease-time 172800; # 48 jam authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.30 192.168.0.70; option routers 192.168.0.1; }
vi /etc/postfix/main.cf
myhostname = ukm.co.id mydestination = ukm.co.id, ukm, localhost.localdomain, localhost relayhost = smtp.telkom.net # relayhost = mail.fast.net.id mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/16 inet_interfaces = all
vi /etc/ntp.conf
server ntp.ubuntu.com server pool.ntp.org restrict 192.168.0.0 mask 255.255.255.0 trust broadcast 192.168.0.255
vi /etc/tinyproxy/tinyproxy.conf
# User nobody # Group nogroup User root Group root
# Port 8888 Port 3128
Allow 127.0.0.1 Allow 192.168.0.0/16 Allow 172.16.0.0/12 Allow 10.0.0.0/8
vi /etc/dansguardian/dansguardian.conf
# UNCONFIGURED - Please remove this line after configuration
# accessdeniedaddress = 'http://YOURSERVER.YOURDOMAIN/cgi-bin/dansguardian.pl' accessdeniedaddress = 'http://192.168.0.254/cgi-bin/dansguardian.pl'
vi /etc/samba/smb.conf
workgroup = UKMNET netbios name = SERVER security = share
[public] path = /var/data/public available = yes browsable = yes public = yes writable = yes
[library] path = /var/data available = yes browsable = yes public = yes writable = no
vi /etc/apache2/conf.d/squirrelmail.conf
Alias /webmail /usr/share/squirrelmail
vi /etc/php5/apache2/php.ini
mbstring.func_overload = 0 memory_limit = 24M upload_max_filesize = 8M
vi /etc/apache2/sites-enabled/mahara-httpd.conf <VirtualHost *:80> ServerName mahara.ukm.co.id DocumentRoot /var/www/mahara/htdocs ErrorLog /var/log/apache2/mahara.error.log CustomLog /var/log/apache2/mahara.access.log combined <Directory /var/www/mahara/htdocs> AllowOverride All </Directory> </VirtualHost>
vi /etc/apache2/sites-enabled/sql-ledger-httpd.conf
Alias /sql-ledger /usr/local/sql-ledger/ <Directory /usr/local/sql-ledger> AllowOverride All AddHandler cgi-script .pl Options ExecCGI Includes FollowSymlinks Order Allow,Deny Allow from All </Directory> <Directory /usr/local/sql-ledger/users> Order Deny,Allow Deny from All </Directory>
Restart Apache Web Server
# /etc/init.d/apache2 restart