{"id":3676,"date":"2016-05-16T22:46:48","date_gmt":"2016-05-17T02:46:48","guid":{"rendered":"https:\/\/underhost.com\/blog\/?p=3676"},"modified":"2025-03-09T15:34:54","modified_gmt":"2025-03-09T19:34:54","slug":"install-gmp-cpanel-centos-servers","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/install-gmp-cpanel-centos-servers\/","title":{"rendered":"How to Install GMP 6 on a cPanel Server"},"content":{"rendered":"\r\n<p>GNU MP (<strong>GMP<\/strong>) is a free, high-speed library for arbitrary precision arithmetic, widely used in cryptography, Internet security, and algebraic computations. It supports signed integers, rational numbers, and floating-point arithmetic with no practical precision limit, except for system memory constraints.<\/p>\r\n\r\n\r\n<p><a href=\"https:\/\/customerpanel.ca\/client\/contact.php\"><strong>Need help? We offer server management and one-time installations \u2013 contact us here!<\/strong><\/a><\/p>\r\n\r\n<h2>Step-by-Step Guide to Installing GMP 6 on cPanel<\/h2>\r\n\r\n<h3>1. Download and Extract GMP<\/h3>\r\n<p>Start by accessing the server and navigating to the source directory:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>cd \/usr\/local\/src<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<p>Download the latest stable version of GMP:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>wget https:\/\/gmplib.org\/download\/gmp\/gmp-6.1.0.tar.bz2.sig<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<p>Extract the downloaded archive:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>tar -xjvf gmp-*<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<p>Move into the extracted directory:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>cd gmp-6.1.0<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<h3>2. Compile and Install GMP<\/h3>\r\n<p>Configure the GMP installation:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>.\/configure<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<p>Build the software:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>make<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<p>Verify the build to ensure everything is working correctly:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>make check<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<p>Install GMP on the server:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>make install<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<h3>3. Configure PHP to Use GMP<\/h3>\r\n\r\n<p>Edit or create a new file for EasyApache configuration:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>vi \/var\/cpanel\/easy\/apache\/rawopts\/all_php5<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<p>Add the following line to enable GMP support in PHP:<\/p>\r\n\r\n<blockquote>\r\n<pre>--with-gmp<\/pre>\r\n<\/blockquote>\r\n\r\n<h3>4. Install GMP Development Package<\/h3>\r\n<p>Install the GMP development package, which is required for PHP integration:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>yum install gmp-devel<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<h3>5. Rebuild Apache<\/h3>\r\n<p>Rebuild Apache using EasyApache to apply the new configuration:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>\/scripts\/easyapache --build<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<h3>6. Verify GMP Installation in PHP<\/h3>\r\n<p>Run the following command to check if GMP is successfully enabled in PHP:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>php -i | grep -i gmp<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<p>If the output includes <code>gmp<\/code>, the installation was successful. Et voil\u00e0!<\/p>\r\n\r\n<h2>Need Assistance?<\/h2>\r\n<p>If you encounter any issues while installing GMP, UnderHost\u2019s expert support team is available 24\/7. Contact us via <a href=\"https:\/\/customerpanel.ca\/client\" target=\"_blank\">@CustomerPanel<\/a> for professional assistance.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Install GNU MP (GMP) on your cPanel server for high-performance arithmetic and cryptographic applications.<\/p>\n","protected":false},"author":1,"featured_media":4853,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,3,38,11,24,25],"tags":[],"class_list":["post-3676","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-controlpanel","category-cpinstall","category-how-to","category-install","category-linux"],"_links":{"self":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/comments?post=3676"}],"version-history":[{"count":4,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3676\/revisions"}],"predecessor-version":[{"id":5130,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3676\/revisions\/5130"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media\/4853"}],"wp:attachment":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media?parent=3676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/categories?post=3676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/tags?post=3676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}