note 9191 deleted from Security by jimw
| From: | jimw@php.net | Date: | Thu, 11 Jan 2001 02:31:11 +0000 |
| Subject: | note 9191 deleted from Security by jimw | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9582@lists.php.net to get a copy of this message | ||
binfmt_misc only works on linux system.
another clean solution is to hack suexec.c of apache
and force all .php scripts to be executed with php compiled
in cgi mode.
in place
********************
execv(cmd, &argv[3]);
********************
just
********************
if (strpbrk(".php", cwd) != NULL) {
execl("/usr/local/bin/php", "php", cmd, NULL);
}
else {
execv(cmd, &argv[3]);
}
********************