Saturday, October 9, 2010
Backup with exclude multiple directories
tar -cvpzf backup2010-10-09.tar.gz --exclude="/home/females/public_html/cache" --exclude="/home/females/public_html/catalog" --exclude="/home/females/public_html/modules/order/admin" --exclude="/home/females/public_html/iplog" /home/females/public_html/
Thursday, November 12, 2009
Easy Install Litespeed on CPANEL
I've just found much easier way to install litespeed on cpanel.
No need to compile php via ssh etc,
we just need to install the WHM plugin, and the rest we just need to click next and go :)
read the complete description here:
http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:apache:ezcpanel&s=switch%20back
No need to compile php via ssh etc,
we just need to install the WHM plugin, and the rest we just need to click next and go :)
read the complete description here:
http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:apache:ezcpanel&s=switch%20back
Wednesday, October 22, 2008
installing litespeed
petunjuk dari: http://www.litespeedtech.com/docs/webserver/install/
http://creativeflux.co.uk/entry/replacing-apache-with-litespeed/
[root@pingit oggix]# mkdir litespeed
[root@pingit oggix]# cd litespeed/
cari download file src disini: http://www.litespeedtech.com/products/webserver/download/
cari tau CPU nya apa:
[root@pingit ~]# uname -a
Linux pingit.idwebhost.com 2.6.18-8.el5 #1 SMP Thu Mar 15 19:57:35 EDT 2007 i686 i686 i386 GNU/Linux
i386 artinya bukan 64bit
[root@pingit litespeed]# wget http://www.litespeedtech.com/packages/3.0/lsws-3.3.20-ent-i386-linux.tar.gz
daftar trial.key
[root@pingit litespeed]# wget http://backlinkcamp.com/oggix4/trial.key
[root@pingit litespeed]# tar -xzf lsws-3.3.20-ent-i386-linux.tar.gz
[root@pingit litespeed]# mv lsws-3.3.20 lsws
[root@pingit litespeed]# cd lsws
[root@pingit lsws]# mv ../trial.key ./
[root@pingit ~]# cd /usr/local/
[root@pingit local]# mkdir lsws
[root@pingit local]# chown nobody:nobody lsws
[root@pingit local]# ls -alh
cd /home/oggix/lsws/
[root@pingit lsws]# ./install.sh
To change configurations of the interface, login and click
"Interface Configuration" button on the main page.
The administration interface is located at http://localhost:/
or http://:/
[root@pingit local]# cd /home/oggix/litespeed
[root@pingit litespeed]# wget http://us.php.net/distributions/php-4.4.9.tar.gz
[root@pingit litespeed]# tar -xzf php-4.4.9.tar.gz
[root@pingit litespeed]# mv php-4.4.9 php
[root@pingit php]# cd php/sapi/
download sapi perah nya :D
http://www.litespeedtech.com/products/lsapi/download/
[root@pingit sapi]# wget http://www.litespeedtech.com/packages/lsapi/php-litespeed-4.8.tgz
[root@pingit sapi]# tar -xzf php-litespeed-4.8.tgz
php info asli kayak gini
'./configure' '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-sockets' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-expat-dir=/usr' '--with-freetype-dir=/usr' '--with-gd' '--with-iconv' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-png-dir=/usr' '--with-ttf' '--with-xmlrpc' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr'
[root@pingit sapi]# cd ..
[root@pingit php]# touch ac*
[root@pingit php]# ./buildconf --force
[root@pingit php]# ./configure '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-sockets' '--prefix=/usr/local' '--with-curl=/opt/curlssl/' '--with-expat-dir=/usr' '--with-freetype-dir=/usr' '--with-gd' '--with-iconv' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-png-dir=/usr' '--with-ttf' '--with-xmlrpc' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr' '--with-litespeed'
[root@pingit php]# make
[root@pingit php]# make install
[root@pingit php]# cd /usr/local/lsws/fcgi-bin/
[root@pingit fcgi-bin]# mv lsphp lsphp.old
[root@pingit fcgi-bin]# cp /home/oggix/litespeed/php/sapi/litespeed/php lsphp
[root@pingit php]# cp /usr/local/lib/php.ini ./
[root@pingit lsws]# /usr/local/lsws/bin/lswsctrl restart
http://creativeflux.co.uk/entry/replacing-apache-with-litespeed/
[root@pingit oggix]# mkdir litespeed
[root@pingit oggix]# cd litespeed/
cari download file src disini: http://www.litespeedtech.com/products/webserver/download/
cari tau CPU nya apa:
[root@pingit ~]# uname -a
Linux pingit.idwebhost.com 2.6.18-8.el5 #1 SMP Thu Mar 15 19:57:35 EDT 2007 i686 i686 i386 GNU/Linux
i386 artinya bukan 64bit
[root@pingit litespeed]# wget http://www.litespeedtech.com/packages/3.0/lsws-3.3.20-ent-i386-linux.tar.gz
daftar trial.key
[root@pingit litespeed]# wget http://backlinkcamp.com/oggix4/trial.key
[root@pingit litespeed]# tar -xzf lsws-3.3.20-ent-i386-linux.tar.gz
[root@pingit litespeed]# mv lsws-3.3.20 lsws
[root@pingit litespeed]# cd lsws
[root@pingit lsws]# mv ../trial.key ./
[root@pingit ~]# cd /usr/local/
[root@pingit local]# mkdir lsws
[root@pingit local]# chown nobody:nobody lsws
[root@pingit local]# ls -alh
cd /home/oggix/lsws/
[root@pingit lsws]# ./install.sh
To change configurations of the interface, login and click
"Interface Configuration" button on the main page.
The administration interface is located at http://localhost:
or http://
[root@pingit local]# cd /home/oggix/litespeed
[root@pingit litespeed]# wget http://us.php.net/distributions/php-4.4.9.tar.gz
[root@pingit litespeed]# tar -xzf php-4.4.9.tar.gz
[root@pingit litespeed]# mv php-4.4.9 php
[root@pingit php]# cd php/sapi/
download sapi perah nya :D
http://www.litespeedtech.com/products/lsapi/download/
[root@pingit sapi]# wget http://www.litespeedtech.com/packages/lsapi/php-litespeed-4.8.tgz
[root@pingit sapi]# tar -xzf php-litespeed-4.8.tgz
php info asli kayak gini
'./configure' '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-sockets' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-expat-dir=/usr' '--with-freetype-dir=/usr' '--with-gd' '--with-iconv' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-png-dir=/usr' '--with-ttf' '--with-xmlrpc' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr'
[root@pingit sapi]# cd ..
[root@pingit php]# touch ac*
[root@pingit php]# ./buildconf --force
[root@pingit php]# ./configure '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-sockets' '--prefix=/usr/local' '--with-curl=/opt/curlssl/' '--with-expat-dir=/usr' '--with-freetype-dir=/usr' '--with-gd' '--with-iconv' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-png-dir=/usr' '--with-ttf' '--with-xmlrpc' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr' '--with-litespeed'
[root@pingit php]# make
[root@pingit php]# make install
[root@pingit php]# cd /usr/local/lsws/fcgi-bin/
[root@pingit fcgi-bin]# mv lsphp lsphp.old
[root@pingit fcgi-bin]# cp /home/oggix/litespeed/php/sapi/litespeed/php lsphp
[root@pingit php]# cp /usr/local/lib/php.ini ./
[root@pingit lsws]# /usr/local/lsws/bin/lswsctrl restart
This site has been suspended. (again)
Setelah beberapa bulan (mungkin 1 tahun an) http://server3.oggix.biz/ sebagai server utama oggix.com berjalan mulus dan lancar-lancar jaya, akhirnya jam 9 malem tadi disuspend juga oleh empunya one.com .
Stress dateng tiba-tiba dech :(
Harus kularikan kemana lagi nih load oggix.com yang udah bikin mabuk semua server ....
currently i still try downloading the server3.oggix.biz content,i'm sure it will need many days to be completed.
Stress dateng tiba-tiba dech :(
Harus kularikan kemana lagi nih load oggix.com yang udah bikin mabuk semua server ....
currently i still try downloading the server3.oggix.biz content,i'm sure it will need many days to be completed.
Tuesday, June 3, 2008
cara hitung jumlah pendaftar setiap harinya
cara hitung jumlah pendaftar setiap harinya,
SELECT count(*), DATE_FORMAT(`account_approved_date`, '%Y-%m-%d') tgl FROM `account` GROUP BY tgl ORDER BY tgl DESC
hasilnya akan semacam ini, gile bener deh pokoknya:
SELECT count(*), DATE_FORMAT(`account_approved_date`, '%Y-%m-%d') tgl FROM `account` GROUP BY tgl ORDER BY tgl DESC
hasilnya akan semacam ini, gile bener deh pokoknya:
| 134 | 2008-May-31 |
| 141 | 2008-May-30 |
| 158 | 2008-May-29 |
| 119 | 2008-May-28 |
| 135 | 2008-May-27 |
| 125 | 2008-May-26 |
| 89 | 2008-May-25 |
| 109 | 2008-May-24 |
| 118 | 2008-May-23 |
| 114 | 2008-May-22 |
| 108 | 2008-May-21 |
| 105 | 2008-May-20 |
| 97 | 2008-May-19 |
| 87 | 2008-May-18 |
| 104 | 2008-May-17 |
| 133 | 2008-May-16 |
| 125 | 2008-May-15 |
| 170 | 2008-May-14 |
| 138 | 2008-May-13 |
| 123 | 2008-May-12 |
| 85 | 2008-May-11 |
| 111 | 2008-May-10 |
| 125 | 2008-May-09 |
| 130 | 2008-May-08 |
| 89 | 2008-May-07 |
| 111 | 2008-May-06 |
| 71 | 2008-May-05 |
| 99 | 2008-May-04 |
| 112 | 2008-May-03 |
| 117 | 2008-May-02 |
Wednesday, April 30, 2008
todo for NOW
Mencoba mengingat-ingat, apa aja yang dulu dah dikerjakan, dan apa yang perlu dilakukan hingga ini bisa di live kan.
1. cek sinkronisasi avatar
- setiap daftar baru, upload avatar atau update avatar
upload file avatar bersangkutan ke avatar server, dan bikin log di avatar server
di server bersangkutan, cuman bikin file flag aja.
jadi nama filenya tetep, tapi content di dalamnya kosong, untuk mengirit tempat.
- setiap delete avatar,
delete avatar di server tsb, dan juga delete avatar di server avatar.
trus masukkan ke log
- di main server, buat cron
untuk cek di avatar server, apakah ada log upload baru. Update baru di abaikan aja, ga berguna.
jika ada upload baru, maka disetiap server shoutbox, di upload i file avatar kosongan sebagai flag aja.
kemudian di cek juga, apakah ada log delete baru.
Jika ada, kemudian disetiap server shoutbox, file flag avatarnya jg didelete.
2. cek penampilan avatar di links
3. cek distributed login, registrasi, dan avatar, serta cek apakah fitur di website lama masih jalan, yang di server3.oggix.biz
karena server3.oggix.biz nantinya kan akan diganti dengan script yang sekarang juga,
aku khawatir tentang beberapa perubahan/pembenaran debug yang kemaren langsung dilakukan di server.oggix.biz, ada kemungkinan terjadi kekacauan.
4. cek akhir/finishing
coba registrasi, login, install, set shoutbox, layout dsb
cek hasilnya atau outputnya dah jalan belum.
5. upload and done
cek sinkronsisasi account, cek sinkronisasi avatar, cek fitur di server3.oggix.biz apakah masih jalan dengan normal.
6. DONE
1. cek sinkronisasi avatar
- setiap daftar baru, upload avatar atau update avatar
upload file avatar bersangkutan ke avatar server, dan bikin log di avatar server
di server bersangkutan, cuman bikin file flag aja.
jadi nama filenya tetep, tapi content di dalamnya kosong, untuk mengirit tempat.
- setiap delete avatar,
delete avatar di server tsb, dan juga delete avatar di server avatar.
trus masukkan ke log
- di main server, buat cron
untuk cek di avatar server, apakah ada log upload baru. Update baru di abaikan aja, ga berguna.
jika ada upload baru, maka disetiap server shoutbox, di upload i file avatar kosongan sebagai flag aja.
kemudian di cek juga, apakah ada log delete baru.
Jika ada, kemudian disetiap server shoutbox, file flag avatarnya jg didelete.
2. cek penampilan avatar di links
3. cek distributed login, registrasi, dan avatar, serta cek apakah fitur di website lama masih jalan, yang di server3.oggix.biz
karena server3.oggix.biz nantinya kan akan diganti dengan script yang sekarang juga,
aku khawatir tentang beberapa perubahan/pembenaran debug yang kemaren langsung dilakukan di server.oggix.biz, ada kemungkinan terjadi kekacauan.
4. cek akhir/finishing
coba registrasi, login, install, set shoutbox, layout dsb
cek hasilnya atau outputnya dah jalan belum.
5. upload and done
cek sinkronsisasi account, cek sinkronisasi avatar, cek fitur di server3.oggix.biz apakah masih jalan dengan normal.
6. DONE
oggix.com programming progress log 1 mei 2008
masih bingung, agak ragu apakah file yang diedit ini adalah file yang terakhir dulu di otak atik.
Karena, perasaan ada dulu bbrp bagian yang pernah dikerjakan, tapi kok di file yang sekarang blm ada.
yang sekarang di folder
ogi apel > DATA/www/oggix.com/
Yang dikerjakan:
1. kerjakan proses regitrasi
- saat daftar, insert account di mainserver
- setelah daftar, otomatis di loginkan
2. check proses install shoutbox => OK
3. check manage shoutbox layout => OK
catatan:
di server3.oggix.biz, itu masih error kl clear shoutbox. belum dibenerin.
ROADMAP Checklist:
dibuat iframe semua
- supaya bisa di install di semua blog
==> done
- supaya mudah pengendalian dari sisi scripting dan pengembangan
misalnya, untuk aktif dan nonaktifkan smilies, tinggal centang, ga perlu install lagi.
==> done
- lebar frame juga di perkecil, supaya bisa fit di semua blog
==> done
shout type:
- sementara satu tipe dulu aja
desain
==> done
malahan, dah bisa form shoutnya dibawah dan diatas
- yang penting ada 10 desain, seperti standar yang udah ada
smilies
==> done
- 3 tipe: no smilis, smilis simple, dan smilis full (sama seperti yang udah ada juga)
==> done
perubahan member area:
- install => saat instalasi, dipermudah, dan diperlihatkan preview nya.
==> done
install cuman kopi paste kodenya aja
- menu settings shoutbox, dan account information di update ke xml jg, dan dijadiin satu
==> belum dicek
registrasi
- saat registrasi, account di insert ke server utama dulu, baru setelah itu di insert ke server yang bersangkutan.
==> done
login
- login di web utama yang harus di ubah, di cek dulu itu user di server mana, baru di arahkan sesuai server bersangkutan
==> done
core:
file settings dijadiin satu
==> keliatannya udah, belum di cek ulang
pembaca&perubah file settings hanya satu file, sehingga kalau ada perubahan gampang, ga perlu coba satu persatu
==> keliatannya udah, belum di cek ulang
Karena, perasaan ada dulu bbrp bagian yang pernah dikerjakan, tapi kok di file yang sekarang blm ada.
yang sekarang di folder
ogi apel > DATA/www/oggix.com/
Yang dikerjakan:
1. kerjakan proses regitrasi
- saat daftar, insert account di mainserver
- setelah daftar, otomatis di loginkan
2. check proses install shoutbox => OK
3. check manage shoutbox layout => OK
catatan:
di server3.oggix.biz, itu masih error kl clear shoutbox. belum dibenerin.
ROADMAP Checklist:
dibuat iframe semua
- supaya bisa di install di semua blog
==> done
- supaya mudah pengendalian dari sisi scripting dan pengembangan
misalnya, untuk aktif dan nonaktifkan smilies, tinggal centang, ga perlu install lagi.
==> done
- lebar frame juga di perkecil, supaya bisa fit di semua blog
==> done
shout type:
- sementara satu tipe dulu aja
desain
==> done
malahan, dah bisa form shoutnya dibawah dan diatas
- yang penting ada 10 desain, seperti standar yang udah ada
smilies
==> done
- 3 tipe: no smilis, smilis simple, dan smilis full (sama seperti yang udah ada juga)
==> done
perubahan member area:
- install => saat instalasi, dipermudah, dan diperlihatkan preview nya.
==> done
install cuman kopi paste kodenya aja
- menu settings shoutbox, dan account information di update ke xml jg, dan dijadiin satu
==> belum dicek
registrasi
- saat registrasi, account di insert ke server utama dulu, baru setelah itu di insert ke server yang bersangkutan.
==> done
login
- login di web utama yang harus di ubah, di cek dulu itu user di server mana, baru di arahkan sesuai server bersangkutan
==> done
core:
file settings dijadiin satu
==> keliatannya udah, belum di cek ulang
pembaca&perubah file settings hanya satu file, sehingga kalau ada perubahan gampang, ga perlu coba satu persatu
==> keliatannya udah, belum di cek ulang
Subscribe to:
Posts (Atom)