Jump to:

4938 Posts in 16602 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » mod_rewrite and nginx

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

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

Page: 1
Go to End
Author Topic: 3555 Views
  • Romeo
    Avatar
    Community Member
    67 Posts

    mod_rewrite and nginx Link to this post

    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?

  • yurigoul
    Avatar
    Community Member
    202 Posts

    Re: mod_rewrite and nginx Link to this post

    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

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: mod_rewrite and nginx Link to this post

    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.

  • Romeo
    Avatar
    Community Member
    67 Posts

    Re: mod_rewrite and nginx Link to this post

    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.

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: mod_rewrite and nginx Link to this post

    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

    3555 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.