Suphp is not working on freebsd
From CPanelDirect
So you recompiled a FreeBSD server with suphp but its still using mod_php? Not to worry there is an easy solution to this using /usr/local/cpanel/bin/rebuild_phpconf
The syntax is: /usr/local/cpanel/bin/rebuild_phpconf <Default PHP> <PHP4 Handler> <PHP5 Handler> <Suexec>
In the example below the server is running PHP 5. PHP4 is not installed and we want suphp and suexec. The command to run is
/usr/local/cpanel/bin/rebuild_phpconf 5 none suphp 1
Example Run
[root@server1 /usr/local/apache/conf]# /usr/local/cpanel/bin/rebuild_phpconf 5 none suphp 1
php.conf updated to:
# This file was automatically generated by the Cpanel PHP Configuration system
# If you wish to change the way PHP is being handled by Apache on your system,
# use the /usr/local/cpanel/bin/rebuild_phpconf script or the WHM interface.
#
# Manual edits of this file will be lost when Apache is updated.
# SuPHP configuration for PHP5
LoadModule suphp_module modules/mod_suphp.so
suPHP_Engine on
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml
<Directory />
suPHP_AddHandler application/x-httpd-php5
</Directory>
# End of autogenerated PHP configuration.
Updating user configurable PHP settings.
[info] recursion depth is set to: 2
Restarting Apache
php flags!
With suphp you can no longer use php_value or php_admin_flag. Instead look into suPHP_ConfigPath to make a php.ini file for each vhost that might need to use those.