Untuk advanced users only dan punya VPS/Dedicated server sebagai root !
Copy code dibawah ini, save di web server root kamu as webserver
chmod 755 webserver
lalu eksekusi ./webserver
#!/bin/bash ############### #Simple Webserver Module Installer by antitrust a.k.a [cgi-error] @ indowebster ver.beta #created @ idws basecamp - 20 oktober 2010 #Dibuat utk mempermudah pekerjaan sys-admin indowebster dalam membangun webserver #Greatz : all IDWS Crew ############### clear stty erase '^?' echo echo "===================================================================" echo "= Webserver Installer With PHP-Module By Sys-Admin Indowebster =" echo "= tested on debian lenny amd64 =" echo "================= Credit antitrust @ Oktober 2010 =================" echo echo -n "Apakah Mbah-Ronggo Keren ? (y/n)" read prosesif [ "$proses" = "y" ]; then echo echo "Option : " echo "1 = nginx, mysql dan php-module" echo "2 = update mirror dan install php5-fpm" echo "3 = configurasi /etc/nginx/nginx.conf" echo "4 = configurasi sites-enabled" echo echo -n "Silahkan tekan 1, 2, 3, atau 4 untuk melanjutkan ! (1/2/3/4)" read webserver if [ "$webserver" = "1" ]; then echo echo "Install Nginx Dan Module Pendukung ..." echo aptitude install gcc g++ autoconf automake gzip zip bzip2 ifstat iftop snmp nginx;/etc/init.d/nginx start echo echo "Installation Packages Dan Starting Nginx ... Done ..." echo echo echo "Install PHP-Module..." echo apt-get install php5 php5-gd php5-mysql php5-idn php5-xmlrpc php5-suhosin php5-dev php5-mcrypt php-auth php-pear php5-cgi php5-cli php5-common php5-curl php5-imagick php5-memcache;apt-get remove libapache2-mod-php5 echo echo "Install Database Mysql ..." echo apt-get install mysql-client mysql-server; apt-get install phpmyadmin echo echo "Instalasi Webserver Selesai ..." echo "Silahkan Ketik Command ./webserver Untuk Pilihan Lainnya" echo exit fi if [ "$webserver" = "2" ]; then echo echo "Create New Repository Linux ..." echo ##### SOURCE LIST REPOSITORY LINUX bisa di tambahkan disini #### echo "#deb http://mirror.unej.ac.id/debian/ lenny main" > /etc/apt/sources.list echo "#deb-src http://mirror.unej.ac.id/debian/ lenny main" >> /etc/apt/sources.list echo " " >> /etc/apt/sources.list echo "deb http://security.debian.org/ lenny/updates main" >> /etc/apt/sources.list echo "deb-src http://security.debian.org/ lenny/updates main" >> /etc/apt/sources.list echo " " >> /etc/apt/sources.list echo "deb http://volatile.debian.org/debian-volatile lenny/volatile main" >> /etc/apt/sources.list echo "deb-src http://volatile.debian.org/debian-volatile lenny/volatile main" >> /etc/apt/sources.list echo " " >> /etc/apt/sources.list ###### END SOURCES LIST REPOSITORY ###### echo echo "Proses Update Dilaksanakan..." echo apt-get update echo echo "Update Repository ... Done..." echo echo "Install Module php5-fpm ..." echo aptitude install php-apc php5-fpm;/etc/init.d/php5-fpm start echo echo "Instalasi dan Running php5-fpm .. Done ..." echo echo "Finished Update Webserver" echo "Silahkan Ketik Command ./webserver Untuk Pilihan Lainnya" echo exit fi if [ "$webserver" = "3" ]; then echo echo "Configurasi /etc/nginx/nginx.conf" echo nano /etc/nginx/nginx.conf echo exit else echo "Configurasi Vhost ..." echo nano /etc/nginx/sites-enabled/default echo echo "Instalasi Webserver Selesai ..." echo "Silahkan Ketik Command ./webserver Untuk Pilihan Lainnya" echo fi else echo echo "Goblok....bego...dicarikan cara yang enak kok malah gak mau !!!" echo exit fi
silahkan tambah repo nya sendiri.. semoga berguna..
biasa kami pakai untuk mempermudah installasi pada server vps...
0 komentar:
Posting Komentar