Upgrade Apache, PHP, MySQL, dsb di Server Linux
Daripada setiap kali butuh upgrade / re-install harus ubek” internet lagi, mending aku posting di sini aja :) Udah di-test di CentOS dan FreeBSD, dengan control panel DirectAdmin.
Upgrade Apache from v1.3.x to v2.0.x
cd /usr/local/directadmin/customapache
rm -fr build
wget http://files.directadmin.com/services/customapache/build
chmod 755 build
./build update
./build update_data_ap2
./build convert
./build clean
./build apache_2
./build php_ap2 y
./build mod_frontpage_ap2
./build mod_perl_ap2
./build zend
/sbin/service httpd restart
Upgrade PHP from v4.x to v5.x
cd /usr/local/directadmin/customapache
rm -fr build
wget http://files.directadmin.com/services/customapache/build
chmod 755 build
./build update
./build clean
wget http://www.php.net/get/php-5.1.4.tar.gz/from/this/mirror
perl -pi -e 's/PHP_VER=4.4.2/PHP_VER=5.1.4/' build
./build php_ap2
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.safe.copy
perl -pi -e 's/LoadModule php4_module /usr/lib/apache/libphp4.so/#LoadModule php4_module /usr/lib/apache/libphp4.so/' /etc/httpd/conf/httpd.conf
perl -pi -e 's/AddType application/x-httpd-php .inc .php .php4 .php3 .phtml/AddType application/x-httpd-php .inc .php .php5 .php4 .php3 .phtml/' /etc/httpd/conf/httpd.conf
/sbin/service httpd restart
Upgrade MySQL
wget http://www.web4host.net/tools/upgrade-mysql-32.sh
chmod 755 upgrade-mysql-32.sh
./upgrade-mysql-32.sh
rebuild PHP
cd /usr/local/directadmin/customapache
./build php_ap2 y
./build mod_frontpage_ap2
./build mod_perl_ap2
./build zend
/sbin/service httpd restart
Upgrade PHPMyAdmin
wget http://www.web4host.net/tools/upgrade-phpMyAdmin.sh
chmod 755 upgrade-phpMyAdmin.sh
./upgrade-phpMyAdmin.sh
Upgrade eAccelerator
wget http://www.web4host.net/tools/eaccelerator.sh
chmod 755 eaccelerator.sh
./eaccelerator.sh
edit /usr/local/lib/php.ini. Tambahkan kode berikut di bawah bagian Windows Extension.
zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so"
eaccelerator.shm_size="32"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
restart Apache
/sbin/service httpd restart
PPS: CAN membuka lowongan gelombang kedua untuk posisi content writer (fulltime). Baca detilnya di sini.







ternyata posting di blog sendiri banyak gunanya juga, aku juga gitu kok, kalau sedang punya sesuatu informasi yang menarik minimal aku bookmark, kalau ada waktu aku paste ke blog sendiri, yang penting kasih sourcenya aja :)
he3x lumayan juga manfaatin blog sendiri sebagai social bookmarking….. plus banyak yg bisa memanfaatkan isinya.
kayaknya ini posting yang commentnya paling dikit deh…
wah emang dari dulu manfaatin blog itu banyak gunanya
tapi klo isi yang banyak donk biar yang baca samp’ capek
klo gak capet kan kasihan uadah pergi ke dunia orang gak capk lagi