FIXED: Webmail, Horde and Squirrelmail on FreeBSD
That didn't work for us (CPanel 9.9.8 on FreeBSD 5.2).
We tried touch /var/cpanel/usecpphp etc. but finally found we needed to recompile the Cpanel-PHP version.
/scripts/makecpphp did't worked either.
The following we found to be the error :
type "ls -l /usr/bin/mysql"
If /usr/bin/mysql is a symbolic link to /usr/local/bin/mysql do the following:
type "pico /scripts/makecpphp"
Replace this:
Code:
$MYSQL='--with-mysql';
if (-e "/usr/local/bin/mysql") {
$MYSQL='--with-mysql=/usr/local';
}
if (-e "/usr/bin/mysql") {
$MYSQL='--with-mysql=/usr';
}
by this:
Code:
$MYSQL='--with-mysql';
if (-e "/usr/local/bin/mysql") {
$MYSQL='--with-mysql=/usr/local';
}
if (-e "/usr/bin/mysql") {
$MYSQL='--with-mysql=/usr/local';
}
And run /scripts/makecpphp again. This time it will compile and webmail (horde and squirrelmail) runs again.
NB: This is NOT an elegant fix, but as /usr/bin/mysql is just a link (in our case) the script needs to know where it can find the mysql-header files, and that is in /usr/local ..
Perhaps CPanel-support can update makecpphp (with a something more elegant solution)?