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 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

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

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

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

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

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: