Logo
  • PHP
    • HipHop / HHVM
    • Modern PHP
    • PHPStorm
    • LAMP
    • Laravel
    • Composer
    • PDO
  • JavaScript
    • node.js
    • AngularJS
  • CSS
    • SASS
    • “CSS4” (CSS level 4)
  • HTML
  • Git
  • LAMP
  • Vagrant
  • UI / UX
  • Architecture of …
  • Off-Topic
With ♥ from Berlin
August 27, 2013
Chris
Linux, Ubuntu
Comments Off on How to enable mod_rewrite in Ubuntu 12.04 LTS

How to enable mod_rewrite in Ubuntu 12.04 LTS

PreviousNext

A little note first: This is the most seen way to enable mod_rewrite in tutorials. However, it’s not the best way. The correct way would be to setup a vhost and change its config, but unless you are a professional and know exactly what you do this thing will do the job perfectly.

Activate the mod_rewrite module with

sudo a2enmod rewrite

and restart the apache

sudo service apache2 restart

To use mod_rewrite from within .htaccess files, edit the default VirtualHost with

sudo nano /etc/apache2/sites-available/default

and change the first two occurrences of

AllowOverride None

to

AllowOverride All

Save and exit the nano editor via CTRL-X, “y” and ENTER.

Restart the server again:

sudo service apache2 restart

Voila! To check if everything is activated correctly, check your phpinfo() output. It should have this in it:

mod-rewrite-in-php-install

 

linuxmod_rewriteUbuntu
Share this

How to hack time (KUNG FURY promo campaign)

:) Finally, KUNG FURY is out! No need for further words, unless you lived in a cave for the last

js javascript

[video] Netflix JavaScript Talks about ECMAScript 7: The Evolution of JavaScript

php uk conference

PHP Opcache Explained by Julien Pauli (video from PHP UK Conference 2014)

The title says it all. A VERY deep explanation on how OpCache works. If you never heard of this excellent

nginx php 5.5

[Link] Set up Nginx with PHP 5.5 easily

As there are surprisingly no good tutorials on how to set up NGINX with PHP 5.5 properly, here’s an excellent

Frontend Ops Conf 2014 – Keynote by Alex Sexton: “Front End Operations”

https://www.youtube.com/watch?v=7HGe8zZ1G6k

php

Why Modern PHP is Awesome And How You Can Use It Today (Slides by Matt Stauffer)

Frontend Ops Conf 2014 – Paul Irish: Delivering The Goods In Under 1000ms (40min video)

https://www.youtube.com/watch?v=E5lZ12Z889k

First look on Gitter, the chat for GitHub

GitHub has definitly become the #1 platform for git-based public repositories on the planet, no question. The site offers excellent

github-logo-octocat

GitHub buys Easel.io, a code-free full website creator worth a look

GitHub has just aquired Easel.io (which is NOT easel.ly who offer something similar for infographics / powerpoint !), a powerful

Compare 250+ cloud server plans with Cloud Cost Calculator

How cool is that ? The Cloud Cost Calculator compares more than 250 cloud server plans of Amazon, Rackspace, DigitalOcean,

1/4

Categories

Search

gamescom 2014 trailers
GAMESCOM 2014: Awesome Next-Gen ingame graphics
php
How to prevent PHP sessions being shared between different apache vhosts / different applications
hack-php
Facebook releases HipHop (HHVM) 3.0, adds mysqli and support for Hack language
A quick history of Comic Sans, the most wrongly used font ever
php
appserver.io – A New Way of Magento Enterprise Infrastructure (26min video talk)
Install MINI in 30 seconds inside Ubuntu 14.04 LTS
Microsoft announces “holographic” 3D interfaces (promo video)
Rare Steve Jobs AND Bill Gates video interview from 2007’s D5 conference (90min)
php
Redesigning the PHP logo – who wants ?
ubuntu-14-04-lts lamp
How to install/setup a basic LAMP stack (Linux, Apache, MySQL, PHP) on Ubuntu 12.04 or Debian 7.0/7.1
MINI2, an extremely simple barebone PHP application on top of Slim
JavaScript ECMAScript6 – A short video introduction (5min)
phpstorm 7.0 php
PHPStorm 7 has been released!
Migrating Wikipedia to HHVM (@Scale Conference 2014)
PHPStorm: 42 Tips and Tricks (47min video talk by Mikhail Vink at Dutch PHP Conference 2015)

Tags

apache bash centos composer conference coupon CSS debian fonts framework git GitHub hack HHVM HipHop HTML HTML5 IDE JavaScript JS LAMP laravel linux mod_rewrite MVC MySQL Nginx optimization PHP PHP 5.5 PHP 5.6 phpmyadmin PHPStorm security server SSD Ubuntu UI UX vagrant video virtual machine voucher VPS wordpress
Side-Project: Wordle-Solver:
www.wordle-helper.info

Pages

  • Privacy Policy