If you have a VPS or Linux server running Apache the goold old fashioned way without fancy control panels, you’ll quickly have to learn some Apache tweaks.
One of the main issues we commonly run into is a non-working .htaccess file. Apache doesn’t come with .htaccess support automatically turned on. You’ll have to turn it on in order for .htaccess files to have an effect. Here’s what you do:
There are two ways,
- Edit your httpd.conf manually using a text editor like vim, nano, vi, joe whatever you like.
- Edit your httpd.conf through Webmin
Since the Webmin version is more graphical, we’ll show you how to do it through Webmin. If you’re using a text editor, just skip to the portion with the AllowOveride command.
- Login to your Webmin
- Servers>Apache
- Go to the Global Configuration tab
- Click on EDIT CONFIG FILES

- Search for AllowOveride and .htaccess and remove the # sign in front or type “AllowOveride All”.

This should fix it permanently and allow your .htaccess files to override pretty much and directive needed.
#1 by Rent Brandon on January 30th, 2009
Quote
does this add some security vulnerability that needs to be considered? Is AllowOverride All the only way to get it working?
#2 by Jeff Green on May 8th, 2009
Quote
Nice site! I love the Linux portions. It’s nice to stumble across a personal website owned and operated by the person submitting the content.
Cheers.
#3 by John on November 30th, 2009
Quote
I’ve recently had to configure a production web server, using webmin and a lot of SSH. Getting apache setup was a breeze but getting Postfix and Dovecot running together and working properly was an absolute nightmare.
Still it is certainly something worth doing – it does wonders for your knowledge levels and its good to gain more insight into what’s happening under the hood.
Things like Plesk are great but sometimes they hide too much.
Cheers