Composer: Installation Errors and Warnings

If you are using PHP 5.4, and tried to install Composer.

In the command line, you enter:

php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"

and you get:

Failed loading /usr/lib64/php/ioncube/ioncube_loader_lin_5.2.so: /usr/lib64/php/ioncube/ioncube_loader_lin_5.2.so: undefined symbol: php_body_write
PHP Fatal error: Directive 'safe_mode' is no longer available in PHP in Unknown on line 0

These errors can be fixed by uploading the latest ioncube loaders and using ioncube_loader_lin_5.4.so instead of ioncube_loader_lin_5.4.so.

;zend_extension=/usr/lib64/php/ioncube/ioncube_loader_lin_5.2.so
zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.4.so

The "PHP Fatal error: Directive 'safe_mode' is no longer available in PHP in Unknown on line 0" can be fixed by commenting the safe_mode directive, as such:

; Safe Mode
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode
;
safe_mode = On

The safe mode directive has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.