Any body installed drupal7 on nginx ?

Events happening in the community are now at Drupal community events on www.drupal.org.
josejayesh's picture

Any body installed drupal7 on nginx ?

Comments

Try this

girishmuraly's picture

My company is running Drupal 7 on nginx. These links might be of help http://insready.com/blog/build-nginx-php-fpm-apc-memcache-drupal-7-bare-... and this group http://groups.drupal.org/nginx.

Nginx+Drupal7 + ubuntu

gauravvdeshpande's picture

Yes I did it , its running well , just need to to do some tweaks for running clean urls.

http://www.howtoforge.com/installing-nginx-with-php5-and-mysql-support-o...

http://drupal.org/node/110224

http://groups.drupal.org/node/124514

These are useful links

Gaurav Deshpande

Everything Opensource way
Profile: https://www.linkedin.com/in/gauravvdeshpande

Successfully installed Drupal 7 on Ngix

josejayesh's picture

Guys,
I installed drupal 7 on nginx . Initially i installed php 5.4.0 version . But when i installed drupal 7 , i got some warning and notices . Again i compiled it with php 5.3.10, warnings and notices are disappear (raised a bug for this http://drupal.org/node/1483986).

Following steps are performed (CentOS)
1) Yum install nginx
2) download the php 5.3.10 source code
3)'./configure' '--prefix=/webserver/php' '--enable-sockets' '--enable-libxml' '--with-layout=GNU' '--enable-fpm' '--with-config-file-path=/webserver/php' '--with-mysql--with-lib-dir=/usr/lib64/mysql' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl' '--with-gd' '--with-curl-dir=' '--with-zlib' '--enable-ftp' '--enable-soap' '--enable-mbstring' '--enable-pcntl' '--with-kerberos' '--with-libevent' '--with-jpeg' '--with-png' '--with-pdo-mysql'
4)Alter the nginx.conf file as follows

#log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
#                  '$status $body_bytes_sent "$http_referer" '
#                  '"$http_user_agent" "$http_x_forwarded_for"';

access_log  logs/access.log ;

sendfile        on;
#tcp_nopush     on;

#keepalive_timeout  0;
keepalive_timeout  65;

gzip  on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_buffers 16 8k;
gzip_comp_level 1;
gzip_http_version 1.1;
gzip_min_length 10;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon application/vnd.ms-fontobject font/opentype application/x-font-ttf;
gzip_vary on;
gzip_proxied any; # Compression for all requests.
gzip_disable "msie6";

server {
    listen       80;
    server_name  localhost;
    root        /webserver/nginx/html;
    #charset koi8-r;

    access_log  logs/host.access.log ;
    if (!-e $request_filename) {
            rewrite ^/(.*)$ /index.php?q=$1 last;
    }

location ~.(.htaccess|engine|inc|info|install|module|profile|po|sh|.sql|theme|tpl(.php)?|xtmpl)$ {
deny all;
}
location / {
root html;
index index.html index.htm index.php;
}

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }
    location @rewrite {
       rewrite ^/([^/]*)/(.*)(/?)$ /$1/index.php?q=$2&$args;
    }
    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    #location ~ \.php$ {
    #    proxy_pass   http://127.0.0.1;
    #}

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000

rewrite ^/([^/])/(.)(/?)$ /$1/index.php?q=$2&$args;
location ~ .php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    location ~ /\.ht {
        deny  all;
    }
}

}

Currently i am facing one issue (Clean Url is not working fine , even though in the admin interface it is showing checkbox)

Thanks
~jayesh

I am using both Pressflow

Konstantin Boyandin's picture

I am using both Pressflow 6.25 and Prssflow 7.12 on Nginx (using both spawn-fastcgi and php-fpm).

I use PHP 5.2.17 (getting rid of that) and PHP 5.3.10; PHP 5.4.0 is kind of raw to me, I'll wait until it gets more mature.

If you need any pieces of advice from experience with setting up the above, I'll be glad to share.

Konstantin Boyandin
System administrator & Web programmer
Email: konstantin at boyandin dot com

India

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week