DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th December 2015
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default non-chroot nginx/php-fpm

OpenBSD 5.8 release. I am having little trouble getting PHP working with nginx in non-chroot a.k.a. unsecure mode
Code:
nginx -u
Namely from little that I read I figured out that commenting out chroot line using ; in /etc/php-fpm.conf and restarting php_fpm would be enough to get PHP working in insecure mode

Code:
; Default Value: not set
; chroot = /var/www
However that seems not to be the case even though html code works fine in insecure mode. Any clues?
I also tried to edit nginx.conf with

replacing

Code:
fastcgi_pass        unix:run/php-fpm.sock;
with

Code:
fastcgi_pass        unix:var/www/run/php-fpm.sock;
or with

Code:
fastcgi_pass        unix:/var/www/run/php-fpm.sock;

Last edited by Oko; 25th December 2015 at 06:21 AM.
Reply With Quote
  #2   (View Single Post)  
Old 25th December 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

I don't run nginx outside of a chroot environment, so don't have direct experience to relate. However, *if* the problem is the socket file location, you can circumvent it with a loopback TCP connection instead.
Reply With Quote
Reply


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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd.conf chroot morophla OpenBSD General 4 19th April 2015 02:07 PM
Chroot Noip client kallistoteles Guides 0 8th August 2010 03:12 PM
ftp jailing ftp-chroot pico OpenBSD Security 4 30th March 2010 06:44 AM
Chroot web-browsing Oko OpenBSD Security 1 29th December 2008 01:37 PM
scponly not working with chroot hamba FreeBSD Security 3 15th May 2008 05:18 PM


All times are GMT. The time now is 07:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick