Hi,
I'm new to Nginx and I'm trying to setup Nginx, FASTCGI and Drupal.
I'm
using OpenVZ environment running Archlinux template and compiled Nginx
from source using the latest stable release with default options. (Nginx
0.7.62)
Next I compiled spawn-cgi from source with the default options using the latest release. (spawn-fcgi v1.6.2 (ipv6) )
I installed PHP from the Arch extra repository. (5.2http://forum.nginx.org/read.php?11,7965,8008.10-3) I checked the PKGBUILD and it has FASTCGI support.
Downloaded
the latest release of Drupal 6 and extracted to the target document
root directory ( /var/www) and gave write permission to settings.php as
described in the Drupal offical tutorial.
I spawn the fastcgi like this:
/usr/local/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u http -g http -f /usr/bin/php-cgi -P /var/run/fastcgi-php.pid
Spawn-fcgi spawns it successfully: spawn-fcgi: child spawned successfully: PID: 23465
Privileges:
--------------
drwxrwxr-x 9 http http 4096 2009-09-20 17:39 www
-rw-r--r-- 1 http http 43058 2009-09-16 21:34 CHANGELOG.txt
-rw-r--r-- 1 http http 988 2009-09-14 14:50 COPYRIGHT.txt
-rw-r--r-- 1 http http 1308 2007-11-19 20:53 INSTALL.mysql.txt
-rw-r--r-- 1 http http 1075 2007-11-26 17:36 INSTALL.pgsql.txt
-rw-r--r-- 1 http http 15646 2008-07-09 21:15 INSTALL.txt
-rw-r--r-- 1 http http 18048 2009-01-06 18:27 LICENSE.txt
-rw-r--r-- 1 http http 1924 2009-04-29 19:15 MAINTAINERS.txt
-rw-r--r-- 1 http http 5002 2008-01-04 17:15 UPGRADE.txt
-rw-r--r-- 1 http http 262 2006-08-09 09:42 cron.php
drwxr-xr-x 2 http http 4096 2009-09-16 21:40 includes
-rw-r--r-- 1 http http 980 2007-12-26 09:46 index.php
-rw-r--r-- 1 http http 46926 2009-04-27 12:50 install.php
drwxr-xr-x 3 http http 4096 2009-09-16 21:40 misc
drwxr-xr-x 35 http http 4096 2009-09-16 21:40 modules
drwxr-xr-x 3 http http 4096 2009-09-16 21:40 profiles
-rw-r--r-- 1 http http 1590 2008-12-10 21:12 robots.txt
drwxr-xr-x 2 http http 4096 2009-09-16 21:40 scripts
drwxr-xr-x 4 http http 4096 2009-09-16 21:40 sites
drwxr-xr-x 7 http http 4096 2009-09-16 21:40 themes
-rw-r--r-- 1 http http 896 2009-09-20 17:39 todolist.html
-rw-r--r-- 1 http http 25457 2009-03-30 13:15 update.php
-rw-r--r-- 1 http http 352 2005-12-10 20:26 xmlrpc.php
Ps aux:
root 23482 0.0 0.0 4008 540 ? S<s 19:27 0:00 nginx: master process nginx
http 23483 0.0 0.1 4176 1176 ? S< 19:27 0:00 nginx: worker process
http 23465 0.0 0.4 14268 3780 ? S<s 19:23 0:00 /usr/bin/php-cgi
I attached the necessary configuration files and logs. Any idea regarding the above problem is appreciated.
Greeting