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

MINI, an extremely simple barebone PHP application

For my daily work I often needed to setup super-simple PHP applications, just some more or less static pages plus

php

How to install PHP curl extension (in 5 seconds)

It’s a common wordpress problem: PHP’s curl extension is not installed! No need to mess around in config files etc,

Stressed and unrelaxed while coding ? Try some ultra-deeply-relaxing ASMR audio clips. It will change your life. Seriously.

Do you remember your first professional massage – and that weird, extremely soft and relaxing feeling you had, this strange

steam sale coupon voucher

-30% to -90% on Steam and Origin

Soft off-topic, but as most developers like to play from time to time, this might be your change to grab

html6

Is this the first HTML6 specification?

  I just found this very interesting “project” including an active, but unpopular GitHub repo: http://html6spec.com/ https://github.com/OscarGodson/HTML6 Looks like these

october cms

October CMS, built on top of Laravel, is beautiful, clever and on the way to be the new #1 CMS

Do you remember when you tried to edit one line of code inside TYPO3 or Contao ? And the extreme

shadow dom

Crossbrowser-safe HTML5 video (IE6+) with a few lines of code and just one .mp4 video file

No time to read the full article ? Get the code directly here on GitHub: panique/html5-video. Publishing a video on

Serious hard-to-fix bug in OAuth and OpenID discovered, lots of major sites affected

Just a short notice rather than a real article, full story later (I need to check the facts): Several sources

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

php uk conference

Slides & talks from PHP UK Conference 2014

The slides of most of PHP UK CONFERENCE 2014‘s talks are online, very interesting stuff, have a look. And a

1/4

Categories

Search

All new features of WordPress 3.9 in this 2 minute video
steam sale coupon voucher
-30% to -90% on Steam and Origin
modern-php
Creator of Slim framework and “PHP – The right way” writes book: “Modern PHP”, available 2015
css3-chrome-font
Google rolls out Chrome 37, finally fixes horrible font-rendering
vagrant
Generate Vagrant boxes with Laravel, HipHop, Nginx, WordPress, MySQL, MariaDB, MongoDB, RabbitMQ etc. with one click
cheap cloud server php
DigitalOcean rolls out interesting feature: Transfering server snapshots directly to the client’s account
php
How to install PHP 7.0 on Ubuntu 14.04 LTS
the-php-login-project
How to install php-login-minimal on Ubuntu 12.04 LTS
PHPStorm: 42 Tips and Tricks (47min video talk by Mikhail Vink at Dutch PHP Conference 2015)
hearthbleed-ssl-bug
The SSL Heartbleed bug explained in 30 seconds
php
PHP.net hacked, but most things are fine again
Ghost
[FREE SERVER PROMO] Install GHOST for free on a free SSD server with this coupon
MINI, an extremely simple barebone PHP application
Going node.js at Netflix (Slides by Micah R of Netflix)
php uk conference
PHP Opcache Explained by Julien Pauli (video from PHP UK Conference 2014)

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