ImageMagick and PHP 5.4

When building the PHP imagick module for ImageMagick on a server running PHP 5.4 (a cPanel/WHM box in this case), you receive the following error: /root/tmp/pear/imagick/imagick_class.c: In function ‘zim_imagick_setfont’: /root/tmp/pear/imagick/imagick_class.c:1442: error: ‘struct _php_core_globals’ has no member named ‘safe_mode’ /root/tmp/pear/imagick/imagick_class.c:1442: error: ‘CHECKUID_CHECK_FILE_AND_DIR’ undeclared (first use in this function) /root/tmp/pear/imagick/imagick_class.c:1442: error: (Each undeclared identifier is reported only once /root/tmp/pear/imagick/imagick_class.c:1442: error: for each...

Building httpd 2.4.6

When trying to build an RPM from the Apache source tarball, rpmbuild bails with: RPM build errors: Installed (but unpackaged) file(s) found: /usr/lib64/httpd/modules/mod_proxy_wstunnel.so The problem is that the mod_proxy_wstunnel.so file has been omitted from the httpd.spec file used to build the RPM. Extract the tarball, open up httpd.spec in your favourite text editor and scroll down until you find a...

Not able to unsuspend a domain in Parallels Plesk

If you are seeing the following unhelpful message when trying to unsuspend a domain in Parallels Plesk running on Windows Server: Warning: The domain is still suspended for the following reason: This user account and user’s domain were suspended Then you will need to use the command line domain.exe tool to manually unsuspend the domain: “C:\Program Files (x86)\Parallels\Plesk\admin\bin\domain.exe” –on I’ve...

Blank login page with Parallels Plesk

A recent micro-update from Parallels seems to have broken the login page on some Parallels Plesk servers. In my case, it was a Plesk 9.5.4 server running on Linux. If you look in the Plesk web server (“sw-cp-server”) error log at “/var/log/sw-cp-server/error_log” then you should see entries such as: (mod_fastcgi.c.2582) FastCGI-stderr: PHP Fatal error: Call to undefined function get_failure_redirect_url() in...