garrettp

Well-Known Member
PartnerNOC
Jun 18, 2004
312
1
166
cPanel Access Level
DataCenter Provider
I'm not aware of any such bug or flaw in proc_open/popen in PHP4 that would warrant it being disabled in that version but not in PHP5.

Ultimately you have to weigh needs vs security in deciding whether to disable these functions (and others like exec(), system(), etc.).
 

vlee

Well-Known Member
Oct 13, 2005
373
26
178
Spokane, Washington
cPanel Access Level
Root Administrator
I'm not aware of any such bug or flaw in proc_open/popen in PHP4 that would warrant it being disabled in that version but not in PHP5.

Ultimately you have to weigh needs vs security in deciding whether to disable these functions (and others like exec(), system(), etc.).
Very cool.

I have disabled only these show_source, system, passthru in PHP5

Current Configuration

Option Configured Value
Default PHP Version (.php files) 5
PHP 5 Handler suphp
PHP 4 Handler cgi
Apache suEXEC on
 

golden_eyes

Well-Known Member
Aug 9, 2010
88
1
58
in order to be able to disable function
Code:
pico /usr/local/lib/php.ini
search to disable_functions and add your functions then restart your apache
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
I wanted to note that it is better to use vi over pico or nano for editing files. vi will let you know if another user on the system has the same file opened. Also, pico or nano can corrupt long lines, which will not happen with vi

Finally, please ensure to copy any file before editing it to ensure you have a backup of the original file:

Code:
cp /usr/local/lib/php.ini /usr/local/lib/php.ini.bak110414