From owner-freebsd-questions@freebsd.org Wed Apr 27 13:12:35 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7DFF7B1E589 for ; Wed, 27 Apr 2016 13:12:35 +0000 (UTC) (envelope-from wodfer@gmail.com) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2C9A01A3D for ; Wed, 27 Apr 2016 13:12:35 +0000 (UTC) (envelope-from wodfer@gmail.com) Received: by mail-wm0-x22b.google.com with SMTP id e201so38280844wme.0 for ; Wed, 27 Apr 2016 06:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=gQU9U6YrXqwrhRvJ/u1bYrCmUQEZCzz2rUhIBIbo2bw=; b=ImW8Vfv6F3WWNKol2Ap7a0SxHUf1qlTxWwGQIO5Mrjb/oe0IXp/PYM2Doz2H9m5vFy HPmsskGXJZ8t7DShMyalfhJusbq9oAsi6Faq6TU2N2zs0xSDlgs9poYlwooov5W0DpX8 GpyOV0jjjC0rMyqQakFAj9h009V1B95KhLjc71IU+tqf1Y7DUAFZjkHeU8E0NEZ3qAxy rNJu9xSkawGh2t040P+bRsO4pNsesOzHJ5IxubdtrthGXAe8WYr941bwt/R2vlZfAMtu T142lhF8B/B6AePD5LzetiD1nqluNUQjrLTn9DkKaPVPlKUTTrpPC91k9xiGq45jeitv ROHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=gQU9U6YrXqwrhRvJ/u1bYrCmUQEZCzz2rUhIBIbo2bw=; b=T+AE+qCsjhmWYqsYIbF1BVY1kWsIoud1JSIolATb3XAekxhEg40b1mQzqn4yd0pQ67 PFeJrI49JxNYJSRtIA67vwEpvvG4FjiTC+ktFHs6HRbS1zZBKq79d7vrWo/QL20hfs+y DyqrW5qV5Cx4p7Z4gHMQSSaaxu0m6WaATyqn57Fx9I6PXxUZWEgCiqsH8kYcefEbPv/9 Vvv+CXDxN9XW2OgPn0IEEglVvIC4Ukh/XYIUDTDEO5C5JZOuQQaSOkJ9zqE0xw6dCrzj NdZ+j7dqn4emEeLBgRJho+9vDia82gJRWBq/HgyV/BT9nixTSG5vWj3e+58KsrISK+Oy QmHw== X-Gm-Message-State: AOPr4FWlp9MYoRTMKeEFCfCZr82YRmzjkW/QTUKst/i5fm8nZdKa8qHKAdkj9SbZg1kJZzpTqm8irEv1ef6zMw== MIME-Version: 1.0 X-Received: by 10.194.248.135 with SMTP id ym7mr9208138wjc.174.1461762753753; Wed, 27 Apr 2016 06:12:33 -0700 (PDT) Received: by 10.28.226.11 with HTTP; Wed, 27 Apr 2016 06:12:33 -0700 (PDT) Date: Wed, 27 Apr 2016 15:12:33 +0200 Message-ID: Subject: php-fpm _and_ open_basedir = Necessary? From: Andy Wodfer To: freebsd-questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2016 13:12:35 -0000 I've spent a fair amount of hours the past few days setting up a FreeBSD 10.3 server and getting into php-fpm (with tcp pools). It works great, however I used to have open_basedir in my virtualhost setup to strengthen security / jailing for joomla/wordpress sites which I host a few of. However I have big problems uploading images and media via the built in php webuploaders in Joomla/Wordpress when open_basedir is enabled in this php-fpm enviroment - so I disabled it and it all works good. Now I wonder - Is open_basedir even necessary when I run php with php-fpm pools with their own users. From what I understand php-fpm does just this (jail) the daemon/process to its specified virtualhost/user homedir (hope this came out correctly). ? Thanks and best regards, Andy