note 69160 added to function.shell-exec

From: Date: Fri, 25 Aug 2006 03:31:39 +0000
Subject: note 69160 added to function.shell-exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-116299@lists.php.net to get a copy of this message
When following Kenneth's method for executing root scripts via the nanoweb server mentioned on this page you would most likely need to be able to run a text-mode browser like lynx and pass the php script to it (works great). After struggling for a while (lynx kept asking me to download the file instead of executing it), I realised that I had to install php-cgi additionally and modify the nanoweb config file to use that php interpreter instead of /usr/bin/php. (On Debian this is the CLI version). On Ubuntu 6.06: apt-get install php5-cgi After editing /etc/nanoweb/nanoweb.conf and a quick restart of the web server, lynx and links will execute your PHP scripts properly. Hope this helps somebody else out there :) Ruan Fourie ---- Server IP: 66.163.161.117 Probable Submitter: 196.7.36.166 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.shell-exec.php Edit -- https://master.php.net/note/edit/69160 Del: integrated -- https://master.php.net/note/delete/69160/integrated Del: useless -- https://master.php.net/note/delete/69160/useless Del: bad code -- https://master.php.net/note/delete/69160/bad+code Del: spam -- https://master.php.net/note/delete/69160/spam Del: non-english -- https://master.php.net/note/delete/69160/non-english Del: in docs -- https://master.php.net/note/delete/69160/in+docs Del: other reasons-- https://master.php.net/note/delete/69160 Reject -- https://master.php.net/note/reject/69160 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116299) next »