mod_php5
is actually incompatible with mod_suexec
. As described in this article, you have to use mod_suphp
and php-cgi
instead. The downside is that this decreases performance.
A simple solution that works for Ubuntu is
apt-get install -y suphp-common, libapache2-mod-suphp
a2dismod php5
a2enmod suphp
The linked article describes how to use mod_php5
for some vhosts and mod_suphp
for others.