fbpx

April 19

0 comments

Problem using PEAR ping command

php disabled functions

Problem using PEAR ping command

If you use cPanel and you get the following error when calling PING from PEAR:


Warning: popen() has been disabled for security reasons in /usr/lib/php/OS/Guess.php on line 242


Warning: fgets(): supplied argument is not a valid stream resource in /usr/lib/php/OS/Guess.php on line 243


Warning: pclose(): supplied argument is not a valid stream resource in /usr/lib/php/OS/Guess.php on line 252


Warning: exec() has been disabled for security reasons in /home/dev7sof/php/Net/Ping.php on line 243 unable to locate the ping binary

then in WHM -> PHP Configuration -> Switch to Advanced Mode -> remove from disable_functions the functions exec andpopen

and save the new configuration.


Tags

pear, ping


You may also like

Leave a Reply
{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}