Building Imagick PHP extension for CentOS/RHEL 7 fails with error `C preprocessor “/lib/cpp” fails sanity check` and how to fix it

So I recently stumbled upon a problem with building Imagick PHP extension on CentOS/RHEL 7 and it drove me a little bit mad co’z I can’t seem to find the fix only to realize that the solution was actually so easy.





Installing PHP XSL extension on CentOS 7



So you just finished installing php and then tried deploying your app, but then you are greeted with something like:

. . . the requested PHP extension xsl is missing from your system. . .

. . . requires PHP XSLT extension. Please enable it first then. . .

Don’t despair because installing and enabling this extension on CentOS 7 is a piece of cake!


GHOST Vulnerability: CVE-2015-0235



Background Information:

Last January 27, 2015, cloud security provider Qualys announced a vulnerability in all versions of the GNU C library (glibc).



According to RedHat’s CVE Database:

A heap-based buffer overflow was found in glibc's __nss_hostname_digits_dots() function, which is used by the gethostbyname() and gethostbyname2() glibc function calls. A remote attacker able to make an application call either of these functions could use this flaw to execute arbitrary code with the permissions of the user running the application.


Warning! Daemon Tools Lite (Free Version)

daemonThis might sadden some of you guys who are a solid fan of Daemon Tools Lite.
Most specially the free version.

Recent installations reported that the free version installs a spyware called bi_dowbloader.exe.
What it does is hijack browsers toward ad pages and phone home your data. More