Welcome! Log In Create A New Profile

Advanced

migrate config file 0.8.53 to 1.0.4

Posted by wesley 
migrate config file 0.8.53 to 1.0.4
January 03, 2012 06:19AM
Hi,
i used OpenBSD 4.9 (Nginx-0.8.53). All works fine.
Now i'm on OpenBSD 5.0, Nginx is now at 1.0.4 on OpenBSD

The old config file make an error when i want to use our roundcube webmail : 502 Bad Gateway
In the log file /var/log/httpd.err, i have the following error message :

2012/01/03 15:15:55 [crit] 2564#0: *1 connect() to unix:/tmp/php.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.0.92, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/php.sock:", host: "192.168.0.236"

The file /tmp/php.sock doesn't exist. I already tried "touch /tmp/php.sock" ... same error.

Here the config file :
...
location ~ .php$ {
fastcgi_pass unix:/tmp/php.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param HTTPS on;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
...

Thank you very much for your help, replies.

Wesley
www.mouedine.net
Re: migrate config file 0.8.53 to 1.0.4
January 03, 2012 07:07AM
I fixed it replacing :
fastcgi_pass unix:/tmp/php.sock;
to
fastcgi_pass 127.0.0.1:9000;

And run php-fastcgi -b 127.0.0.1:9000

Now it works ! ;-)

Cheers,

Wesley MOUEDINE ASSABY
www.mouedine.net
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 317
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready