Thursday, June 14, 2012
Apache ngadat nggak mau parsing php script
Jika suatu saat apache anda ngadat, dan nggak mau parsing script php. Coba cara perikut....
Since it's a conffile, it's possible that it's not installed with the upgrade. To fix that purge it and then install it again:
sudo apt-get purge libapache2-mod-php5
sudo apt-get install libapache2-mod-php5
To enable PHP, you have to run:
sudo a2enmod php5
Restart the webserver after:
sudo /etc/init.d/apache2 restart
source: http://askubuntu.com/questions/59272/php-not-working-in-apache2-after-system-upgrade
Friday, April 20, 2012
Cara melakukan instalasi iftop di Ubuntu 11.10
iftop adalah salah satu tools andalan saya untuk melakukan monitoring pada nic (network interface card, mulai nic1 hingga nic3. Monitoring ini dilakukan jika saya ingin mengetahui data atau packet apa saja yang lewat pada nic yang akan saya monitor. Selain mampu memonitor nic yang biasanya menggunakan kabel network RJ45, iftop juga mampu memonitor interface lain seperti wifi yang biasanya desebut dengan wlan0 dan seterusnya.
Baiklah sekarang kita mulai. Pada distro Ubuntu sangat mudah sekali untuk melakukan instalasi. Cukup dengan sebaris line perintah, makan instalasi sudah bisa dilakukan.
Pertama-tama pastikan paket-paket yang tersedia sudah menggunakan update terbaru dengan mejalan perintah:
#apt-get update
Selanjutnya proses instalasi dengan menggunakan:
#apt-get install iftop
Seperti pada gambar berikut
Setelah perintah dijalankan, maka proses instalasi akan berjalan seperti gambar berikut ini.
Setelah instalasi selesai, saatnya kita mencoba, jalankan perintah berikut di terminal:
#iftop eth0
Kira-kira penampakannya seperti berikut ini.
Selamat mencoba.....
Baiklah sekarang kita mulai. Pada distro Ubuntu sangat mudah sekali untuk melakukan instalasi. Cukup dengan sebaris line perintah, makan instalasi sudah bisa dilakukan.
Pertama-tama pastikan paket-paket yang tersedia sudah menggunakan update terbaru dengan mejalan perintah:
#apt-get update
Selanjutnya proses instalasi dengan menggunakan:
#apt-get install iftop
Seperti pada gambar berikut
Setelah perintah dijalankan, maka proses instalasi akan berjalan seperti gambar berikut ini.
Setelah instalasi selesai, saatnya kita mencoba, jalankan perintah berikut di terminal:
#iftop eth0
Kira-kira penampakannya seperti berikut ini.
Selamat mencoba.....
Sunday, January 8, 2012
How to install Ruby on Rails in Ubuntu 11.10
Make sure you already install Ubuntu (The latest stable version : 11.10(Oneiric Ocelot) and you have an internet connection before you do in this tutorial.
follow this step...
http://blog.sudobits.com/2011/10/27/how-to-install-ruby-on-rails-in-ubuntu-11-10/
follow this step...
http://blog.sudobits.com/2011/10/27/how-to-install-ruby-on-rails-in-ubuntu-11-10/
Thursday, December 8, 2011
restore your grub after install wiundows
http://www.unixmen.com/linux-tutorials/documentations-a-howto/1724-restore-grub-2-after-reinstalling-windows-xpvistawin7
Thursday, November 24, 2011
listing iptables
If we want to listing all rules of our iptableswith othe information, here is the command:
iptables -L INPUT -n --line-numbers
iptables -L OUTPUT -n --line-numbers
iptables -L OUTPUT -n --line-numbers | less
iptables -L spamips -n -v --line-numbers
iptables -L spamips -n -v --line-numbers | grep 202.54.1.2
here is the example:
internal:/home/fatur # iptables -L OUTPUT -n --line-numbers
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
1 PORT12_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:143
2 PORT11_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:53
3 PORT10_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:3128
4 PORT09_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:4559
5 PORT08_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:3306
6 PORT07_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:139
7 PORT06_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:110
8 PORT05_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:23
9 PORT04_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:221
10 PORT03_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:81
11 PORT02_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:21
12 PORT01_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:25
13 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 STRING match "mediafire.com" ALGO name kmp TO 65535
14 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 STRING match "microsoft.com" ALGO name kmp TO 65535
Now we want to delete the rules:
internal:/home/fatur # iptables -D OUTPUT 16
iptables -L INPUT -n --line-numbers
iptables -L OUTPUT -n --line-numbers
iptables -L OUTPUT -n --line-numbers | less
iptables -L spamips -n -v --line-numbers
iptables -L spamips -n -v --line-numbers | grep 202.54.1.2
here is the example:
internal:/home/fatur # iptables -L OUTPUT -n --line-numbers
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
1 PORT12_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:143
2 PORT11_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:53
3 PORT10_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:3128
4 PORT09_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:4559
5 PORT08_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:3306
6 PORT07_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:139
7 PORT06_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:110
8 PORT05_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:23
9 PORT04_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:221
10 PORT03_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:81
11 PORT02_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:21
12 PORT01_OUT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:25
13 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 STRING match "mediafire.com" ALGO name kmp TO 65535
14 DROP tcp -- 0.0.0.0/0 0.0.0.0/0 STRING match "microsoft.com" ALGO name kmp TO 65535
Now we want to delete the rules:
internal:/home/fatur # iptables -D OUTPUT 16
Wednesday, November 16, 2011
block website url with iptables on GNU/Linux machine
This summary is not available. Please
click here to view the post.
Wednesday, November 2, 2011
saving you iptables
this tutorial work on OpenSUSE 11.04, if you want to save the configuration of tour iptables, do this command on root level:
iptables-save > /etc/sysconfig/iptables-net
if you want this config always load after restart/ reboot your machine,
Edit with pico, mcedit or vi:/etc/init.d/network
# mcedit /etc/init.d/network
insert this command
iptables-restore < /etc/sysconfig/iptables-net
Done.....
iptables-save > /etc/sysconfig/iptables-net
if you want this config always load after restart/ reboot your machine,
Edit with pico, mcedit or vi:/etc/init.d/network
# mcedit /etc/init.d/network
insert this command
iptables-restore < /etc/sysconfig/iptables-net
Done.....
Subscribe to:
Posts (Atom)