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


Reply


4 Posts   959 Views

Avatar
Futureweb

Community Member, 233 Posts

26 April 2012 at 4:59pm

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

Avatar
Sean

Forum Moderator, 922 Posts

8 May 2012 at 5:19pm

Edited: 08/05/2012 5:20pm

"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.

Avatar
elgordo

Community Member, 70 Posts

12 May 2012 at 2:46pm

Edited: 12/05/2012 2:46pm

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

Avatar
Futureweb

Community Member, 233 Posts

12 May 2012 at 6:25pm

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...