News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Vance Lucas' Blog:
Nginx + PHP-FPM Blank Pages with Phar Packages
March 08, 2012 @ 12:18:02

Vance Lucas has a new post sharing some of his experience in setting up nginx+PHP-FPM with phar packages that he recently had with setting up a new server instance for a company. The problem showed itself as blank pages, apparently due to a feature in the Suhosin security package.

Ran into this issue when setting up a new VPS for AutoRidge. This happens when using Nginx and PHP-FPM with PHP 5.3+ and the Suhosin patch when trying to run a PHP script using a PHAR package. From what I can gather, the Suhosin patch basically blocks PHP include/require functions from executing files ending with .phar, which results in a PHP segfault that leaves no trace of any error at all.

His solution is a pretty simple one - edit the "suhosin.ini" file to allow for the opening of includes in phar files (suhosin.executor.include.whitelist). You can find out more about the Suhosin security tool on the project's website.

0 comments voice your opinion now!
nginx phpfpm problem phar package suhosin


blog comments powered by Disqus

Similar Posts

Mike Willbanks' Blog: Getting Started with Nginx and PHP-FPM

Kevin van Zonneveld's Blog: 7 Steps to better PEAR documentation

Stoyan Stefanov's Blog: Image_Text 0.6 beta is out

Stefan Esser's Blog: Suhosin Updates - Improved Randomness & LAZY Symbol Loading

PHP-Tools Blog: Analyzing aide (advanced intrusion detection environment) output with PHP


Community Events





Don't see your event here?
Let us know!


project application api library introduction laravel code list developer configure framework bugfix interview podcast community release language series threedevsandamaybe wordpress

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework