Jump to content


VlexoFree Notice

Interviews will be open every Friday starting at 12am PDT and lasting for 24 hours.

- - - - -

Suhosin blocks .phar archive


  • Please log in to reply
2 replies to this topic

#1 nkorth

nkorth

    Member

  • Members
  • 11 posts

Posted 29 January 2012 - 11:45 AM

Account: Personal 300
cPanel username: nkorth
Browser: (irrelevant) Chrome/Linux
Nature of Problem: PHP
Domain: sproutsocial.net
Error: Class 'Silex\Application' not found

I am using the Silex PHP library, which has a known issue on servers with Suhosin installed -- it blocks loading of the .phar archive the library is packaged in. The fix, as documented here, is a change to php.ini:

suhosin.executor.include.whitelist = phar

Is this a reasonable change? My app kinda depends on it...

Ad Bot


      #2 Eli L

      Eli L

        VlexoFree Owner

      • Owner
      • 6,950 posts
      • LocationWashington, USA

      Posted 29 January 2012 - 05:44 PM

      How does it work now?

      Posted Image


      Please do not PM me for support (unless its a private matter). Instead, post in the appropriate forum and help will be provided accordingly.
      Helpful links: Terms of Service | Privacy Policy | Wiki - Tutorials & Help | VlexoFree Support |


      #3 nkorth

      nkorth

        Member

      • Members
      • 11 posts

      Posted 29 January 2012 - 06:32 PM

      Thanks for the help, but it's still not working... which is odd. I figured it would definitely be Suhosin because all I had to do on my local PHP install was uncomment phar in the modules.

      Looking at phpinfo, it seems like setting phar.readonly=false might fix it.

      Edit: Actually, I might have found a way to not need a .phar; I'll try it tomorrow.

      Edited by nkorth, 29 January 2012 - 06:38 PM.





      1 user(s) are reading this topic

      0 members, 1 guests, 0 anonymous users