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
Comments
Try this
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
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
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
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;
}
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;
}
}
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
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