{"id":37,"date":"2014-05-16T14:10:00","date_gmt":"2014-05-16T14:10:00","guid":{"rendered":"http:\/\/383@jodohost.com\/\/blog\/"},"modified":"2023-01-05T16:16:02","modified_gmt":"2023-01-05T16:16:02","slug":"installing-the-mcrypt-extension-to-php-on-plesk-11-x","status":"publish","type":"post","link":"http:\/\/www.jodohost.com\/blog\/index.php\/2014\/05\/16\/installing-the-mcrypt-extension-to-php-on-plesk-11-x\/","title":{"rendered":"Installing the mcrypt extension to PHP on Plesk 11.x"},"content":{"rendered":"<p>We have found that many users need the PHP mcrypt extension for the payment gateway or security reasons, however this doesn&#8217;t come by default on Plesk or on the Linux server (CentOS to be specific).<\/p>\n<p>Installing the mcrypt extension on PHP is a bit risky as it doesn&#8217;t come with the CentOS server base repository and we need to install it with a third party repository such as EPEL.<\/p>\n<p>Step 1: So you need to first check the PHP version installed on the server.<\/p>\n<p>php -V <\/p>\n<p>PHP 5.3.3 (cli) (built: Dec 11 2013 03:29:57)<\/p>\n<p>or <\/p>\n<p>rpm -qa | grep php<\/p>\n<p>php-5.3.3-27.el6_5.x86_64<\/p>\n<p>So, here we know that the server has the PHP 5.3.3 version installed and we must install the exact version of php-mcrypt otherwise an upgrade will happen to the running PHP version which will conflict things and may crash the running Plesk.<\/p>\n<p>Step 2: Now, either first install the EPEL repository or directly download the RPM of php-mcrypt-5.3.3-x on the server and install it. So, here I have the direct link which I can share with you. So follow the steps below:- <\/p>\n<p>cd \/usr\/local\/src\/<br \/>wget http:\/\/epel.mirror.net.in\/epel\/6\/x86_64\/php-mcrypt-5.3.3-3.el6.x86_64.rpm<br \/>yum localinstall php-mcrypt-5.3.3-3.el6.x86_64.rpm<\/p>\n<p>Step 3: Then just restart the httpd service using the link below:- <\/p>\n<p>\/etc\/init.d\/httpd restart <\/p>\n<p>and that&#8217;s it. Check the php-mcrypt extension status using the phpinfo file on the server.<\/p>\n<p>Have fun :).<\/p>\n<p> ]]><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have found that many users need the PHP mcrypt extension for the payment gateway or security reasons, however this doesn&#8217;t come by default on Plesk or on the Linux server (CentOS to be specific). Installing the mcrypt extension on PHP is a bit risky as it doesn&#8217;t come with the CentOS server base repository [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/37"}],"collection":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":1,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":331,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/37\/revisions\/331"}],"wp:attachment":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}