Category Archives: Ubuntu

How to enable use of .htaccess

First Step
Open file as
sudo vim /etc/apache2/apache2.conf

Second Step
remove comment sign (#) if you find it before this line ( line number 187 approx.)
AccessFileName .htaccess

Third Step
Then find the line where there is

<Directory /var/www/>
Options Indexes FollowSymLinks
Require all granted

replace “None” with “All”
AllowOverride All

sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart


Rujukan : –

Apabila error ini pada server :  PHP Fatal error:  Call to undefined function mcrypt_decrypt() 

Cara instalasi :-

Ubuntu 14.04:
$sudo apt-get install php5-mcrypt
$sudo php5enmod mcrypt

debian/ubuntu php5 (>= 5.4.0~rc6-1) has introduced two new commands:
php5enmod and php5dismod

# install the extension
sudo apt-get install php5-mcrypt
# you can see that it’s installed by the presence of the .ini file
cat /etc/php5/mods-available/mcrypt.ini
# enable it
sudo php5enmod mcrypt
# reload Apache to make use of the extension
sudo service apache2 reload


Rujukan : –