Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Installing Mod_rewrite on ubunto


4 Posts   909 Views


26 April 2012 at 4:59pm Community Member, 233 Posts

Hi there,

I'm just installing SS on a clients server, they seem to have a pretty bare set up, without much installed - no control panels etc. I managed to set up the database using SSH, but it seems the host server hasn't got mod_rewrite installed.

I have never installed a module on a server before - so I need a wee bit of help

is it easy - can I do it through SSH?
is is risky - I can't afford to screw up their server as their others sites are still live
do I have to restart apache - will this take long (again, never done this myself) will it take their existing sites off line?

In the meantime, I'll keep going with build the site - it just look a bit rubbish with the index.php/home/ etc in the link....

cheers folks


8 May 2012 at 5:19pm (Last edited: 8 May 2012 5:20pm), Forum Moderator, 921 Posts

"sudo a2enmod rewrite" should get the rewrite module enabled for Apache on Ubuntu.

You will need to get "AllowOverride All" setup in the Apache configuration as well to enable rewriting.


12 May 2012 at 2:46pm (Last edited: 12 May 2012 2:46pm), Community Member, 70 Posts

You may also have to enable the module, do sudo a2enmod rewrite if this is the case


12 May 2012 at 6:25pm Community Member, 233 Posts

Hi Folks,

I got this working, as suggested, I had "sudo a2enmod rewrite" to enable the module, then restart apache.

Still nothing worked - then I realized .htaccess wasn't working, so had to enable that too

all now works...