Hi cPanel mods, please open case regarding this.
The current content of
/opt/cpanel/ea-phpXX/root/usr/bin/pecl
looks similar to this (varies per PHP version):
As you see we already have safe_mode disabled if enabled, we need this for open_basedir and disable_functions too, otherwise, pecl won't work.
I modified the script, as can be seen bellow, I set open_basedir and disable_functions to NULL and my pecl works again. I believe this should be default as there are many people who define those two variables on their servers in order to protect their server
I spent some time figuring out why pecl is not working and it was because of my strict open_basedir and disable_functions values.
This needs to be implemented ASAP.
Thank you
The current content of
/opt/cpanel/ea-phpXX/root/usr/bin/pecl
looks similar to this (varies per PHP version):
Code:
#!/bin/sh
exec /opt/cpanel/ea-phpXX/root/usr/bin/php -C \
-d include_path=/usr/share/pear \
-d date.timezone=UTC \
-d output_buffering=1 \
-d variables_order=EGPCS \
-d safe_mode=0 \
-d register_argc_argv="On" \
/opt/cpanel/ea-phpXX/root/usr/share/pear/peclcmd.php "[email protected]"
As you see we already have safe_mode disabled if enabled, we need this for open_basedir and disable_functions too, otherwise, pecl won't work.
I modified the script, as can be seen bellow, I set open_basedir and disable_functions to NULL and my pecl works again. I believe this should be default as there are many people who define those two variables on their servers in order to protect their server
Code:
#!/bin/sh
exec /opt/cpanel/ea-phpXX/root/usr/bin/php -C \
-d include_path=/usr/share/pear \
-d date.timezone=UTC \
-d output_buffering=1 \
-d variables_order=EGPCS \
-d safe_mode=0 \
-d register_argc_argv="On" \
-d open_basedir=NULL \
-d disable_functions=NULL \
/opt/cpanel/ea-phpXX/root/usr/share/pear/peclcmd.php "[email protected]"
This needs to be implemented ASAP.
Thank you
Last edited: