{"id":1502,"date":"2014-12-31T02:04:30","date_gmt":"2014-12-31T02:04:30","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=1502"},"modified":"2014-12-31T02:04:30","modified_gmt":"2014-12-31T02:04:30","slug":"install-pear-perar-mail-centos","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/12\/31\/install-pear-perar-mail-centos\/","title":{"rendered":"Install pear and pear mail on CentOS"},"content":{"rendered":"<p>PEAR \u2013 PHP Extension and Application Repository, PEAR is a framework and distribution system for reusable PHP components.<br \/>\nThe mail() function is using for sending emails from a php script. This is the most simplest way to send emails from a server and also its not secure process.<\/p>\n<p>The mail sending scripts will shows some errors\/warning while sending emails due to the absence of mail function[mail()].<\/p>\n<p>Solution:<br \/>\nStep 1: Check PhPear is already installed or not<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# rpm -qa|grep php-pear\n#\n\n<\/pre>\n<p>If it is not installed on the server, please install it by executing the foillowing command from the command line;<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# yum install php-pear\n# rpm -qa|grep php-pear\nphp-pear-1.4.9-8.el5\n\n<\/pre>\n<p>Step 2: Install Php-mail extension by executing the following command;<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# pear install Mail\n\n<\/pre>\n<p>Step 3: Restart webserver<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# service httpd restart\n\n<\/pre>\n<p>Check<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PEAR \u2013 PHP Extension and Application Repository, PEAR is a framework and distribution system for reusable PHP components. The mail() function is using for sending emails from a php script. This is the most simplest way to send emails from a server and also its not secure process. The mail sending scripts will shows some &#8230; <a title=\"Install pear and pear mail on CentOS\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/12\/31\/install-pear-perar-mail-centos\/\" aria-label=\"Read more about Install pear and pear mail on CentOS\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[84],"tags":[],"class_list":["post-1502","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=1502"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1502\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=1502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=1502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=1502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}