Successfully running CPanel 11 under FreeBSD 7.0-STABLE
We have successfully upgraded from FreeBSD 6.3 to FreeBSD 7.0.
We had some problems with apache rebuilt process under easyapache3. We had to tweak the variable under Easy.pm that get the OS version.
This error was appearing :
!! Could not download '/var/cpanel/perl/easy/Cpanel/Easy/Zendopt.pm.tar.gz.freebsd-7-32' from httpupdate.cpanel.net /cpanelsync/easy/targz//Cpanel/Easy/Zendopt.pm.tar.gz.freebsd-7-32 !!
So we made that change to /var/cpanel/perl/easy/Cpanel/Easy.pm at line 127.
#$self->{'getos_releaseversion'} = [ Cpanel::Sys::getreleaseversion() ]->[0];
$self->{'getos_releaseversion'} = '6';
- Apache would not run until rebuilt.
- Apache required components under /opt is not compatible until rebuilt.
- Easy.pm (easyapache) request a file with the release version, so we had to set the variable under Easy.pm to 6 so the requested file exist.
To solve them, simply move /opt related folders (curl, xslt, xml2, libmcrypt, curlssl, mm) to a backup folder to tell easyapache to rebuild them. Then run the /scripts/easyapache process. Everything should runs fine. If minor compilations problems appears, keep in mind that you have to rebuild many libraries to take advantages of FreeBSD 7.0 performance improvements. We rebuilt MySQL for this reason but it would runs fine without rebuilt.
Please note that this process should only be performed by an experianced system administrator.
Be aware that some alternative shell (bash) require recompilation.