From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from plane.gmane.org ([80.91.229.3]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UpbjH-0006su-UX for ptxdist@pengutronix.de; Thu, 20 Jun 2013 12:04:36 +0200 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UpbjF-0007p0-F7 for ptxdist@pengutronix.de; Thu, 20 Jun 2013 12:04:34 +0200 Received: from 121-74-249-47.telstraclear.net ([121.74.249.47]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Jun 2013 12:04:33 +0200 Received: from dave_festing by 121-74-249-47.telstraclear.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Jun 2013 12:04:33 +0200 From: Dave Festing Date: Thu, 20 Jun 2013 10:04:12 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Subject: Re: [ptxdist] PTXdist PHP5 CLI mail() Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Just for anyone who ends up here, the solution was to change the thttpd start script to -u /the/directory/where/the/webpages/actually/are/located Seems some things worked OK, just not system(), exec() and mail() when -u didn't point to the webpage directory. Even though safe-mode was off it seems like there was still a restriction on the exec family of functions. http://www.php.net/manual/en/features.safe-mode.php http://www.php.net/manual/en/features.safe-mode.functions.php -- ptxdist mailing list ptxdist@pengutronix.de