CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • civicrm nginx configurations
Pages: [1]

Author Topic: civicrm nginx configurations  (Read 3354 times)

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
civicrm nginx configurations
February 20, 2012, 05:36:37 pm
hey there,

am taking some fun steps into running civicrm on nginx, currently using this config:
https://github.com/michaelmcandrew/scout/blob/master/templates/project.nginx.site.template

which is based on this:
http://wiki.nginx.org/Drupal

which was linked from
http://groups.drupal.org/nginx

all is working OK and reasonably fast on an m1.small AWS instance with pretty default settings in ubuntu 11.10, but I'm getting one problem, which I don't remember seeing when I was using a more vanilla ngnix php config that I found here:
http://www.howtoforge.com/installing-php-5.3-nginx-and-php-fpm-on-ubuntu-debian.

The problem is that on the dashboard, the reports don't display correctly.  See attachment below.  I'd say this is at least in part a caching issue because I am reasonably sure that the words Welcome to nginx no longer appear on my server.

I know that I could just switch back to the more vanilla one, but it seems like a good idea to use the drupal recommendation if poss to start.  And I know i could just go commenting out, but...

Even better would be to have a civicrm tested config to stick into the mix.  Anyone have one that they want to paste below?

And if you wanna get involved with scout, that would also be cool :)

Cheers,
Michael
« Last Edit: February 20, 2012, 06:04:57 pm by michaelmcandrew »
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: civicrm nginx configurations
February 20, 2012, 06:01:50 pm
Hi,

Looks like the ajax isn't properly handled (bad domain name?).
What's the url it hits on the Welcome to nginx? and of the site?

I had it working on nginx a year or two ago, but in the meantime I installed lighttpd and afraid I lost the config.

If I recall, I needed to do it using the domain name and no ip address. (/etc/hosts is your friend)

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: civicrm nginx configurations
February 20, 2012, 06:07:30 pm
dharmatech suggests http://paste2.org/p/1910962 and http://paste2.org/p/1910965 - i'll try those out and report back.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: civicrm nginx configurations
February 21, 2012, 05:36:25 am
ah, might have tracked down the problem - dashboard data is not deleted when you clear the civicrm cache...
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Jens-Erik

  • I post occasionally
  • **
  • Posts: 60
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.4
Re: civicrm nginx configurations
September 02, 2012, 05:24:38 am
Hello,
almost all the relevant links in this thread are outdated now.  Please attach the the files here instead of linking to servers that keep the data just for a short time!

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: civicrm nginx configurations
September 03, 2012, 02:04:09 am
Hey Jens,

Maybe that means they are just outdated! in my experience nginx config is quite fast moving for both drupal and civicrm, and if those links are no longer there, then that means there are better configs to find :)

I am currently finding this repository very useful: https://github.com/perusio/drupal-with-nginx/
 
For github links you can always go back and look at the commit that was around when the post was made. The scout config which you should treat as alpha is available here: https://github.com/michaelmcandrew/scout/blob/master/version-1-archive/templates/project.nginx.site.template
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Sean Madsen

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 5
  • CiviCRM implementer/developer
    • Bikes Not Bombs
  • CiviCRM version: 4.6
  • CMS version: Drupal 7
Re: civicrm nginx configurations
August 05, 2014, 12:54:15 pm
I'm using the perusio/drupal-with-nginx configuration but having some trouble getting it to play nicely with Civi. I started a new thread to discuss it here:

http://forum.civicrm.org/index.php/topic,33760.0.html

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • civicrm nginx configurations

This forum was archived on 2017-11-26.