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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

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

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

mod_rewrite and nginx


Go to End


5 Posts   4819 Views

Avatar
Romeo

Community Member, 67 Posts

14 November 2009 at 8:56am

I'm trying to get Silverstripe 2.3.3 working under nginx on Ubuntu. Installation has gone pretty smoothly, but I've run into an area of uncertainty with mod_rewrite. I get a message at the bottom of the install page saying "I can't tell whether mod_rewrite is running. You may need to configure a rewriting rule yourself". I've added the rewrite rule mentioned here: http://doc.silverstripe.org/doku.php?id=installation-on-nginx, so rewrites should be working OK.

Is this a problem? Is it just that it can't tell whether it will work? Or will it actually not work?

Avatar
yurigoul

Community Member, 203 Posts

14 November 2009 at 10:09pm

I am not sure about this, but if you install it and it redirects to your silvestripe install you can be pretty sure it works :-)

Avatar
Double-A-Ron

Community Member, 607 Posts

14 November 2009 at 10:40pm

I've seen the same message under Apache (on older versions of SS) but it still works fine. Give it a try. If your URLs are rewriting after installation, you're all good.

Avatar
Romeo

Community Member, 67 Posts

14 November 2009 at 11:51pm

Yes, I pushed on with it and all seems to work OK. I'm hoping no serious problems come up with it, because it would be great to be able to use nginx instead of Apache for my SilverStripe sites. Nginx is incredibly fast and uses negligible hardware resources by comparison with Apache, and has proved absolutely rock solid in my experiences with it so far (and I've been hammering it pretty hard).

For anyone interested, I used the technique here http://tomasz.sterna.tv/2009/04/php-fastcgi-with-nginx-on-ubuntu/ to get PHP working with nginx on Ubuntu. There are other how-to's around, but this one is the most straightforward I've come across and so far seems to work fine. After that, once I'd installed the php5-gd and php5-mysql packages and restarted php-fastcgi, SilverStripe allowed me to proceed with the installation.

Avatar
Double-A-Ron

Community Member, 607 Posts

15 November 2009 at 1:34pm

I hear that. I've been interested in nginx since seeing some performance tests (http://www.joeandmotorboat.com/2008/02/28/apache-vs-nginx-web-server-performance-deathmatch/)

Aaron