Search Articles

Select a Category

Stock Quotes

INDU0.00  chartN/A
NASDAQ2905.66  chart+45.98
S&P 5001344.90  chart+19.36
^TNX1.949  chart+0.124
JNK39.49  chart+0.10
TIP118.29  chart-1.00
000001.SS2330.405  chart+17.849
PPLT160.01  chart-0.77
GLD167.64  chart-3.41
SLV32.69  chart-0.67
GOOG596.33  chart+11.22
VDSI9.04  chart-0.02
PEP66.66  chart+0.26
DIS40.00  chart+1.09
WAG33.65  chart+0.12
VE12.46  chart+0.34
OVTI15.77  chart+0.47
CPB31.90  chart+0.06
ADBE31.85  chart+0.565
ADSK37.85  chart+1.03
FDX94.54  chart+1.75
SYY30.90  chart+0.27
SI99.89  chart+2.05
MMM87.73  chart+0.30
WM35.37  chart+0.38
FLIR26.56  chart+0.78
BSX6.03  chart+0.19
STP3.44  chart+0.03
SAFM49.16  chart-0.065
PETS12.62  chart-0.10
HIG19.37  chart+0.85
MSFT30.24  chart+0.29
MRK38.37  chart-0.07
DWA18.74  chart+0.90
LLY39.51  chart-0.09
ITRI39.79  chart+1.40
NVDA15.82  chart+0.335
CLWR1.81  chart-0.01
WDC38.58  chart+1.01
XLF14.735  chart+0.385
FHCO5.36  chart+0.09
LFC45.95  chart+0.57
1970-01-01 00:00

The Daily Dilbert

How to Enable Mod_Rewrite in Ubuntu

Introduction:

There are several packages I used require Apache2 module mod_rewrite. I had problem to enable it for a long time. I could not find a clean answer on how to do it. Finally, I figured it out. Here are the steps. Here is a screen shot of the phpinfo.php

PHPInfo without mod_write Module

Enable Mod_Rewrite Steps:

1. Edit /etc/apache2/sites-available/default. Changed “AllowOverride None” to “AllowOverride All” in the two places below.

NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
# AllowOverride None    #Original Line
# New Line
AllowOverride All
</Directory>

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
# AllowOverride None    #Original Line
# New Line
AllowOverride ALL
Order allow,deny
allow from all
</Directory>
….
2. Edit /etc/apache2/sites-enabled/000-default. Changed “AllowOverride None” to “AllowOverride All” in the two places shown above as well.
3. Enable mod_rewrite with the following command: a2enmode rewrite

4. Force reload the apache2 server with:  sudo /etc/init.d/apache2 force-reload

Now if you load the phpinfo.php, you can see that mod_rewrite is enabled.

PHPInfo shows mod_write Module

VN:F [1.9.6_1107]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.6_1107]
Rating: 0 (from 0 votes)
Share

Comments are closed.