Changeset 1338 for trunk/server


Ignore:
Timestamp:
Oct 13, 2009, 1:19:11 AM (15 years ago)
Author:
geofft
Message:
execsys: Have binfmt_misc detect executable PHP scripts via magic, not extension.

For PHP scripts run over the web, suexec runs php explicitly (and
regardless of the .php file's executable bit), so this change isn't
relevant. A recent kernel change reordered the binfmt_script and
binfmt_misc priority; this allows executable PHP scripts that begin with
<?php to continue being run via binfmt_misc, but those that begin with
#! to use the interpreter they specify.

PHP scripts that don't begin with <?php are assumed to be web pages, not
scripts you'd explicitly exec. This is a slightly smaller hammer than
removing the binfmt_misc line for PHP entirely, but really, you should
be using a #! line if you intend to be able to exec your PHP script.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.