Cara mengaktifkan mod_rewrite pada apache2.2 (debian / ubuntu)

Here i am going to describe how to enable mod_rewrite in apache2.2 -specaily for debian.


In default installion of apache2.2 on debian never enable mod_rewrite default. So you may need to enable .


First install the apache2.2 with this command :

debian user please use “su” before start this process

ubuntu user please use “sudo su” before start this process


apt-get install apache2 (it will install apache 2.2)


now use locate to find if the is availble on your server





it will found in “/usr/lib/apache2/modules”


new apache follow some folders to enable and desuable mods.

so now do this:


cd /etc/apache2/mods-enabled

touch rewrite.load

gedit rewrite.load (you may use any editor to edit this file)


now paste this following line


LoadModule rewrite_module /usr/lib/apache2/modules/

Then edit /etc/apache2/sites-available/000-default


Find the following


Options Indexes FollowSymLinks MultiViews

AllowOverride None

Order allow,deny

allow from all


and change it to


Options Indexes FollowSymLinks MultiViews

AllowOverride all

Order allow,deny

allow from all


and finally restart Apache


/etc/init.d/apache2 restart

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Install PvPGN di server Debian

Sebelum proses instalasi di lakukan pastikan modul GCC sudah terinstal pada server debian anda....

Cara Instalasi DDoS Deflate

(D)DoS Deflate adalah sebuah shell script bash ringan yang dirancang untuk membantu dalam proses...

Alert: file_exists_not_owned di Kloxo

Buat rekan-rekan pengguna Kloxo yang selalu dapat Alert: file_exists_not_owned tiap edit file...

Install Webuzo di CentOS

Requirements Newly installed CentOS 5.x / 6.x or Red Hat Enterprise Linux 5.x / 6.x or...

Cara Install Clamav di Centos

Anda dapat melakukan instalasi antivirus clamav dengan perintah ini. Untuk Centos 64bit x86_64...