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