[wp-trac] [WordPress Trac] #20069: Wordpress upgrade process removed executable bits on .php files and so broke Wordpress
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 20 12:27:53 UTC 2012
#20069: Wordpress upgrade process removed executable bits on .php files and so
broke Wordpress
-------------------------------------+------------------------------
Reporter: gerv | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 3.3.1
Severity: major | Resolution:
Keywords: close reporter-feedback |
-------------------------------------+------------------------------
Comment (by Toby Goodwin):
apache-2.2.21/support/suexec.c:
{{{
580 * Error out if the program is not executable for the user.
581 * Otherwise, she won't find any error in the logs except for
582 * "[error] Premature end of script headers: ..."
583 */
584 if (!(prg_info.st_mode & S_IXUSR)) {
585 log_err("file has no execute permission: (%s/%s)\n", cwd,
cmd);
586 exit(121);
587 }
}}}
In combination with `binfmt` (which may be little known, but is supported
by all the major Linux distros), `mod_suexec` provides a way for an
apache-based hosting service to run php scripts under the uid of the
website owner.
#t
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20069#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list