{"id":629,"date":"2013-04-19T22:18:38","date_gmt":"2013-04-19T20:18:38","guid":{"rendered":"https:\/\/www.hostking.host\/blog\/?p=629"},"modified":"2013-04-19T22:18:38","modified_gmt":"2013-04-19T20:18:38","slug":"problem-using-pear-ping-command","status":"publish","type":"post","link":"https:\/\/www.hostking.host\/blog\/problem-using-pear-ping-command\/","title":{"rendered":"Problem using PEAR ping command"},"content":{"rendered":"<p><a href=\"https:\/\/www.hostking.host\/blog\/wp-content\/uploads\/2013\/04\/download.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hostking.host\/blog\/wp-content\/uploads\/2013\/04\/download.png\" alt=\"php disabled functions\" width=\"1184\" height=\"623\" class=\"aligncenter size-full wp-image-1256\" title=\"\"><\/a><\/p>\n<h3 id=\"post-93\"><a title=\"Permanent Link to Problem using PEAR ping command\" href=\"http:\/\/kb.softescu.ro\/server-administration\/cpanel\/problem-using-pear-ping-command\/\" rel=\"bookmark nofollow noopener\" target=\"_blank\">Problem using PEAR ping command<\/a><\/h3>\n<div>\n<p>If you use cPanel and you get the following error when calling PING from PEAR:<\/p>\n<p><code><br \/>\n<strong>Warning: popen() has been disabled for security reasons in \/usr\/lib\/php\/OS\/Guess.php on line 242<\/strong><br \/>\n<\/code><br \/>\n<strong><code><br \/>\nWarning: fgets(): supplied argument is not a valid stream resource in \/usr\/lib\/php\/OS\/Guess.php on line 243<br \/>\n<\/code><\/strong><br \/>\n<code><br \/>\n<strong>Warning: pclose(): supplied argument is not a valid stream resource in \/usr\/lib\/php\/OS\/Guess.php on line 252<\/strong><br \/>\n<\/code><br \/>\n<code><br \/>\n<strong>Warning: exec() has been disabled for security reasons in \/home\/dev7sof\/php\/Net\/Ping.php on line 243 unable to locate the ping binary<\/strong><br \/>\n<\/code><\/p>\n<p>then in WHM -&gt; PHP Configuration -&gt; Switch to Advanced Mode -&gt; remove from&nbsp;<b>disable_functions<\/b>&nbsp;the functions&nbsp;<b>exec<\/b>&nbsp;and<b>popen<\/b><\/p>\n<p>and save the new configuration.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>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&hellip;<\/p>\n","protected":false},"author":2,"featured_media":1256,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[55,56],"class_list":["post-629","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website-and-web-hosting","tag-pear","tag-ping","entry"],"_links":{"self":[{"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/posts\/629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/comments?post=629"}],"version-history":[{"count":0,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/posts\/629\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/media\/1256"}],"wp:attachment":[{"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/media?parent=629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/categories?post=629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/tags?post=629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}