cd /usr/ports/lang/php5-extensions
make config
make PREFIX=/usr/local/php5 install
Собираем suphp:
cd /usr/src && wget http://www.suphp.org/download/suphp-0.6.2.tar.gz && tar xzf suphp-0.6.2.tar.gz && cd suphp-0.6.2
Открываем src/apache/mod_suphp.c на строчке 252 и заменяем
"ACCESS_CONF" на "RSRC_CONF|ACCESS_CONF":
/* Command table */
static const command_rec suphp_cmds[] = {
{"suPHP_Engine", suphp_handle_cmd_engine, NULL, RSRC_CONF|ACCESS_CONF,
FLAG, "Whether suPHP is on or off, default is off"},
{"suPHP_ConfigPath", suphp_handle_cmd_config, NULL, OR_OPTIONS, TAKE1,
"Where the php.ini resides, default is the PHP default"},
#ifdef SUPHP_USE_USERGROUP
{"suPHP_UserGroup", suphp_handle_cmd_user_group, NULL,
RSRC_CONF|ACCESS_CONF, TAKE2, "User and group scripts shall be run as"},
#endif
{"suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, RSRC_CONF|ACCESS_CONF,
ITERATE, "Tells mod_suphp to handle these MIME-types"},
{"suphp_RemoveHandler", suphp_handle_cmd_remove_handler, NULL, RSRC_CONF|ACCESS_CONF,
ITERATE, "Tells mod_suphp not to handle these MIME-types"},
{NULL}
};