note 113899 added to security.cgi-bin.shell

From: Date: Sun, 15 Dec 2013 10:02:13 +0000
Subject: note 113899 added to security.cgi-bin.shell
Groups: php.notes 
Request: Send a blank email to php-notes+get-197936@lists.php.net to get a copy of this message
You can use binfmt-misc to avoid the need for the #! line, by registering your php5-cgi binary as an interpreter for *.php files. E.g. with Debian binfmt-misc installed: update-binfmts --install php5 /usr/bin/php5-cgi --extension php cat /proc/sys/fs/binfmt_misc/php5 However, you still need chmod +x on the .php file. And Apache will give a rather sad "500 Internal Server Error" if you are missing the +x permissions :( You can improve the error message using mod_rewrite (but not obliviate the need for +x).. ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/security.cgi-bin.shell.php Edit -- https://master.php.net/note/edit/113899 Del: integrated -- https://master.php.net/note/delete/113899/integrated Del: useless -- https://master.php.net/note/delete/113899/useless Del: bad code -- https://master.php.net/note/delete/113899/bad+code Del: spam -- https://master.php.net/note/delete/113899/spam Del: non-english -- https://master.php.net/note/delete/113899/non-english Del: in docs -- https://master.php.net/note/delete/113899/in+docs Del: other reasons-- https://master.php.net/note/delete/113899 Reject -- https://master.php.net/note/reject/113899 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#197936) next »