SugarCRM error on module loader on shared hosting

coen1234 picture coen1234 · Oct 15, 2012 · Viewed 7.4k times · Source

I’ve a shared hosting account and installed SugarCRM. Everything is fine except the message i get for the module loader. Here i get the message to add suhosin.executor.include.whitelist = “upload://” to the php.ini file.

The message is:

Upload stream is blocked by Suhosin, please add "upload" to suhosin.executor.include.whitelist (See sugarcrm.log for more information)

Because i have a shared hosting account i don’t have access to my etc map and therefore also not to my php.ini file.

I want to use the .htaccess file for this but don't know exact code. Can anyone help me?

Answer

Carlos Quijano picture Carlos Quijano · Nov 20, 2012

You Can Try Add this to your .htaccess file as suggested in http://forums.sugarcrm.com/f6/upload-stream-blocked-suhosin-82116/

<IfModule mod_php.c>  
    php_value suhosin.executor.include.whitelist upload://
</IfModule>

In my case I'm using php-fpm so I modified the php.ini locater in /etc/php5/fpm/conf.d/suhosin.ini and I have no more warnings from SugarCRM

; configuration for php suhosin module
extension=suhosin.so
suhosin.executor.include.whitelist="phar"
suhosin.executor.include.whitelist="upload"