Hi I fixed this by chaning my nginx config
New :
server {
listen myhost: 4000;
server_name actusmedia;
root /var/www/vhosts/postfix/htdocs;
index index.html index.htm index.php;
location ~ \.php$ {
fastcgi_pass unix:/tmp/php.sock;
fastcgi_param SCRIPT_FILENAME /var/www/vhosts/postfix/
htdocs$fastcgi_script_name;
include /opt/local/nginx/conf/fastcgi_params;
}
}
this makes php work, but i cannot get mysql to work, for which i open
a seperate topic cause its to unrelated to this. thanks
On Apr 24, 9:35 pm, Michael Shadle <mike...@gmail.com> wrote:
> Pastebin your php-fpm.conf
>
> It sounds like you're not listening on port 9000... lsof -i tcp:9000
> should show it too
>
> On Apr 24, 2010, at 12:23 PM, rubytastic <voorr...@gmail.com> wrote:
>
>
>
> > I have a hard time getting this to work with Nginx.
> > OS is Centos 5.4
>
> > [root@li146-64 postfix]# ps aux | grep php
> > root 2136 0.0 0.7 24072 2716 ? Ss 19:25 0:00 /usr/
> > local/bin/php-fpm --fpm-config /etc/php-fpm.conf
> > nobody 2138 0.0 0.6 24072 2544 ? S 19:25 0:00 /usr/
> > local/bin/php-fpm --fpm-config /etc/php-fpm.conf
> > nobody 2139 0.0 0.6 24072 2544 ? S 19:25 0:00 /usr/
> > local/bin/php-fpm --fpm-config /etc/php-fpm.conf
> > nobody 2140 0.0 0.6 24072 2544 ? S 19:25 0:00 /usr/
> > local/bin/php-fpm --fpm-config /etc/php-fpm.conf
> > nobody 2141 0.0 0.6 24072 2544 ? S 19:25 0:00 /usr/
> > local/bin/php-fpm --fpm-config /etc/php-fpm.conf
> > root 2588 0.0 0.1 4788 684 pts/1 S+ 20:18 0:00 grep
> > php
>
> > This is my nginx config:
>
> > #user nobody;
> > worker_processes 1;
>
> > #error_log logs/error.log;
> > #error_log logs/error.log notice;
> > #error_log logs/error.log info;
> > #pid logs/nginx.pid;
>
> > events {
> > worker_connections 1024;
> > }
>
> > http {
> > passenger_root /opt/local/ruby-enterprise-1.8.7-2010.01/lib/ruby/
> > gems/1.8/gems/passenger-2.2.11;
> > passenger_ruby /opt/local/ruby-enterprise-1.8.7-2010.01/bin/ruby;
>
> > include mime.types;
> > default_type application/octet-stream;
> > access_log off
> > sendfile on;
> > keepalive_timeout 65;
>
> > #-----------------------------
> > # Postfix Admin
> > #-----------------------------
>
> > server {
> > listen myhost.com:4000;
> > server_name myhost;
> > root /var/www/vhosts/postfix/htdocs;
>
> > location ~ \.php$ {
> > fastcgi_pass 127.0.0.1:9000;
> > fastcgi_param SCRIPT_FILENAME /var/www/vhosts/postfix/
> > htdocs
> > $fastcgi_script_name;
> > fastcgi_index index.php;
> > include /opt/local/nginx/conf/fastcgi_params;
> > }
> > }
>
> > }
>
> > The Nginx error log gives me
>
> > 2010/04/24 20:15:58 [error] 2572#0: *1 connect() failed (111:
> > Connection refused) while connecting to upstream, client:
> > 85.145.116.102, server: actusmedia, request: "GET /index.php HTTP/
> > 1.1", upstream: "fastcgi://127.0.0.1:9000", host: "myhost.com:4000"
> > 2010/04/24 20:16:00 [error] 2572#0: *1 connect() failed (111:
> > Connection refused) while connecting to upstream, client:
> > 85.145.116.102, server: actusmedia, request: "GET /index.php HTTP/
> > 1.1", upstream: "fastcgi://127.0.0.1:9000", host: "myhost.com:4000"
> > 2010/04/24 20:16:01 [error] 2572#0: *1 connect() failed (111:
> > Connection refused) while connecting to upstream, client:
> > 85.145.116.102, server: actusmedia, request: "GET /index.php HTTP/
> > 1.1", upstream: "fastcgi://127.0.0.1:9000", host: "myhost.com:4000"
>
> > Anyone can point me in the right direction?
> > Thank you
>
> > --
> > Subscription settings:http://groups.google.com/group/highload-php-en/subscribe?hl=en