~bohwaz/blog/

Avec de vrais morceaux de 2.0 !

PHP PHAR archives and Debian

If you get blank pages and no error message when trying to access a PHAR archive on a Debian or Ubuntu server, this is probably Suhosin's fault as it doesn't allow execution of code from PHAR archives by default. To allow PHAR archives, just add this line to /etc/php5/conf.d/suhosin.ini:

suhosin.executor.include.whitelist="phar"
Write a comment
(optional)
(optional)
(mandatory)
                                _    __ 
 _ __  _ __ ___  _ __  _ __ ___| |_ /_/ 
| '_ \| '__/ _ \| '_ \| '__/ _ \ __/ _ \
| |_) | | | (_) | |_) | | |  __/ ||  __/
| .__/|_|  \___/| .__/|_|  \___|\__\___|
|_|             |_|                     
(mandatory)

URLs will create links automatically.
Allowed HTML tags: <blockquote> <cite> <pre> <code> <var> <strong> <em> <del> <ins> <kbd> <samp> <abbr>