Re: PHP and CGI on UserDir

2015-12-02 Thread Smart Goldman
Hi Francis, 2015-12-02 5:50 GMT+09:00 Francis Daly : > On Wed, Dec 02, 2015 at 01:52:06AM +0900, Smart Goldman wrote: >> 2015-11-29 20:10 GMT+09:00 Francis Daly : >> > On Sun, Nov 29, 2015 at 05:04:50PM +0900, Smart Goldman wrote: > > Hi there, > >> location ~ ^/~(.+?)(/.*)?\.(php)$ { >>

Re: PHP and CGI on UserDir

2015-12-01 Thread Francis Daly
On Wed, Dec 02, 2015 at 01:52:06AM +0900, Smart Goldman wrote: > 2015-11-29 20:10 GMT+09:00 Francis Daly : > > On Sun, Nov 29, 2015 at 05:04:50PM +0900, Smart Goldman wrote: Hi there, > location ~ ^/~(.+?)(/.*)?\.(php)$ { > alias /home/$1/public_html$2.$3; > fastcgi_pass 127

Re: PHP and CGI on UserDir

2015-12-01 Thread Smart Goldman
Hi Francis Daly and Aleksandar Lazic, I am sorry I am late. 2015-11-29 20:10 GMT+09:00 Francis Daly : > On Sun, Nov 29, 2015 at 05:04:50PM +0900, Smart Goldman wrote: > > Hi there, > >> I try to enable PHP and CGI(Perl) on UserDir (/home/user/public_html) with >> nginx. >> But on my Chrome, PHP sc

Re: PHP and CGI on UserDir

2015-11-30 Thread Aleksandar Lazic
Hi. Am 29-11-2015 12:02, schrieb Smart Goldman: Hi, thank you for great help, Aleksandar Lazic. I tried it. How looks now your config? PHP script shows me "File not found." and outputs the following log: 2015/11/29 05:50:15 [error] 5048#0: *6 FastCGI sent in stderr: "Primary script unknown"

Re: PHP and CGI on UserDir

2015-11-29 Thread Francis Daly
On Sun, Nov 29, 2015 at 05:04:50PM +0900, Smart Goldman wrote: Hi there, > I try to enable PHP and CGI(Perl) on UserDir (/home/user/public_html) with > nginx. > But on my Chrome, PHP script is downloaded and CGI script shows me "404 Not > Found" page. In nginx, one requests is handled in one loc

Re: PHP and CGI on UserDir

2015-11-29 Thread Smart Goldman
Hi, thank you for great help, Aleksandar Lazic. I tried it. PHP script shows me "File not found." and outputs the following log: 2015/11/29 05:50:15 [error] 5048#0: *6 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 119.105.136.26, server: loca

Re: PHP and CGI on UserDir

2015-11-29 Thread Aleksandar Lazic
Hi Smart Goldman. Am 29-11-2015 09:04, schrieb Smart Goldman: Hello. I am new here. I try to enable PHP and CGI(Perl) on UserDir (/home/user/public_html) with nginx. But on my Chrome, PHP script is downloaded and CGI script shows me "404 Not Found" page. Here's my configurations. What is wrong

Re: PHP and CGI on UserDir

2015-11-29 Thread Smart Goldman
Sorry I forgot error log. CGI outputs 2015/11/29 04:01:07 [error] 2618#0: *6 open() "/home/user/public_html/index.cgi" failed (2: No such file or directory), client: 119.105.136.26, server: localhost, request: "GET /~user/index.cgi HTTP/1.1", host: "host.domain.com" PHP outputs nothing to error.l

Re: PHP and CGI on UserDir

2015-11-29 Thread Anoop Alias
What does the nginx error log ( /var/log/nginx/error.log) say when you access a php page? ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

PHP and CGI on UserDir

2015-11-29 Thread Smart Goldman
Hello. I am new here. I try to enable PHP and CGI(Perl) on UserDir (/home/user/public_html) with nginx. But on my Chrome, PHP script is downloaded and CGI script shows me "404 Not Found" page. Here's my configurations. What is wrong with my configurations? OS: Linux 3.10.0 / CentOS 7 64bit nginx