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.


Dota 2 now opens to all, Queuing system removed

Just yesterday, Valve finally removed the queuing system for Dota 2, giving all interested players to play the sequel to the legendary mod for Blizzard’s Warcraft III, Defense of the Ancients. Since its release on Microsoft Windows last July 9, 2013 and OS X and Linux on July 18, 2013,  the game has gathered around 6.5 millions active monthly users which from then on keep new users from registering to maintain stability to the game’s servers through queuing.