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