Sentora Support Forums
Add "phar" to suhosin.executor.include.whitelist in php.ini*. - Printable Version

+- Sentora Support Forums (https://senforums.mach-hosting.com)
+-- Forum: General Forums - (Non-Sentora Support) (https://senforums.mach-hosting.com/forumdisplay.php?fid=1)
+--- Forum: Sentora Development (https://senforums.mach-hosting.com/forumdisplay.php?fid=54)
+--- Thread: Add "phar" to suhosin.executor.include.whitelist in php.ini*. (/showthread.php?tid=4142)



Add "phar" to suhosin.executor.include.whitelist in php.ini*. - koolwal - 10-21-2017

Hello,

please help me how I can Add "phar" to suhosin.executor.include.whitelist in php.ini*. for installation Prestashop.

if any other information need please inform me

thanks


RE: Add "phar" to suhosin.executor.include.whitelist in php.ini*. - TGates - 10-22-2017

'phar' is not in the blacklist. Maybe @[Me.B] has an idea Wink

Maybe add it as a custom vhost entry for that domain:

Code:
php_admin_value suhosin.executor.func.whitelist "phar"



RE: Add "phar" to suhosin.executor.include.whitelist in php.ini*. - Me.B - 10-22-2017

phar is outside openbase_dir as it's a binaries and won't execute that way unless you add it.

M B


RE: Add "phar" to suhosin.executor.include.whitelist in php.ini*. - TGates - 10-22-2017

(10-22-2017, 04:58 AM)Me.B Wrote: phar is outside openbase_dir as it's a binaries and won't execute that way unless you add it.

M B

Ahh, ok. So it is openbase_dir restricted and not suhosin?

For testing only, you can disable openbase_dir for that domain and once you have it set up you can add a custom vhost entry for that domain to allow access to phar.
Something like:

Code:
php_admin_value open_basedir "/path/to/phar/"
If that does not work, you will have to add it to the end of the database entry for openbase_dir in the x_settings table.
Although all sites will be able to access phar doing that.