LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 01-30-2013, 09:40 AM   #1
Laertiades
Member
 
Registered: Jul 2012
Location: Pacific Northwest
Distribution: Arch
Posts: 59

Rep: Reputation: Disabled
fastcgi cannot find php files after I created nginx chroot environment


I have a web server up and running. I decided to make another, the exact same, except using a chroot JAIL for nginx. I followed the Nginx ArchWiki to set up the chroot. I have the html part working but I can't get my php files to work. Right now I am getting the following error:

*10 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client

I assume this is a path related issue. I have tried various configurations for open_basedir in php.ini and root in nginx.conf but I am not exactly sure how they relate.

If anyone could clarify the issue or if anyone has any other ideas I would greatly appreciate them.
 
Old 01-30-2013, 02:03 PM   #2
Laertiades
Member
 
Registered: Jul 2012
Location: Pacific Northwest
Distribution: Arch
Posts: 59

Original Poster
Rep: Reputation: Disabled
Found it. php-fpm.conf has a variable "chroot" which must match the path of the nginx chroot jail.
 
  


Reply

Tags
chroot jail, fastcgi, nginx, php


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Nginx not passing the PHP scripts to FastCGI server listening on 127.0.0.1:9000 dreamcoder Linux - Server 8 08-02-2012 09:46 AM
LXer: How to Installing Nginx with PHP5-FastCGI and MySql Support on Ubuntu Server 12.04 LTS LXer Syndicated Linux News 0 06-15-2012 11:20 AM
NGINX with PHP-FPM vis NGINX with Spawn-FCGI WhisperiN Linux - Server 1 03-15-2011 07:39 PM
LXer: Drupal 6 Hosting With nginx And PHP-FastCGI On Ubuntu 9.10 LXer Syndicated Linux News 0 04-08-2010 03:10 PM
Is there a way to find recently created/edited files without using find? BrianK Linux - General 2 10-15-2007 10:41 PM


All times are GMT -5. The time now is 04:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration