~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>