{"id":163,"date":"2015-04-27T13:17:19","date_gmt":"2015-04-27T13:17:19","guid":{"rendered":"http:\/\/betakb.veeble.org\/?p=163"},"modified":"2025-04-22T15:13:10","modified_gmt":"2025-04-22T09:43:10","slug":"nginx","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/nginx\/","title":{"rendered":"Install Nginx on cPanel with NGinx\u00a0Admin Plugin"},"content":{"rendered":"\n<p><b>Nginx<\/b> (pronounced engine-x) is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP\/POP3 proxy server. It now hosts nearly 12.18% (22.2M) of active sites across all domains.<\/p>\n\n\n\n<p>This server is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption. Unlike traditional servers, this server doesn&#8217;t rely on threads to handle requests. Instead, it uses a much more scalable event-driven (asynchronous) architecture. This architecture uses small, but more importantly, predictable amounts of memory under load.<\/p>\n\n\n\n<p>Even if you don&#8217;t expect to handle thousands of simultaneous requests, you can still benefit from Nginx&#8217;s high performance and small memory footprint. Nginx scales in all directions: from the smallest VPS all the way up to clusters of servers.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"steps-for-installation\"><span id=\"Steps_to_install_Nginx\" class=\"mw-headline\">Steps for instal<\/span>lation<\/h2>\n\n\n<p>Follow the below steps to install nginx on the (cPanel) server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/usr\/local\/src\nwget <a class=\"external free\" href=\"http:\/\/nginxcp.com\/latest\/nginxadmin.tar\" rel=\"nofollow noopener\" target=\"_blank\">http:\/\/nginxcp.com\/latest\/nginxadmin.tar<\/a>\ntar xf nginxadmin.tar\ncd publicnginx\n.\/nginxinstaller install\n<\/pre>\n\n\n\n<p>Now Installation of Nginx on the server takes place, along with a cPanel plugin &#8220;NGinx Admin&#8221;<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"probable-errors\"><span id=\"Probable_Errors\" class=\"mw-headline\">Probable Errors<\/span><\/h2>\n\n\n<p>1. If you get the following error during the installation,<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Please upgrade cPanel to version 11.25 or above\n<\/pre>\n\n\n\n<p>It is because the Nginx installation script &#8220;Nginx installer&#8221; was set up. This is to check if the cpanel version is 11.25 or not. It will produce the above-specified error if the cpanel version is not 11.25.<\/p>\n\n\n\n<p>To resolve this, open the &#8220;Nginx installer&#8221; script in the vi editor. Then change the cpanel version specified in the script to the corresponding one in the server. Save this and try again.<\/p>\n\n\n\n<p>2. It may produce another error related to the Python version:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">File \"\/usr\/lib\/python2.4\/site-packages\/PyYAML-3.10-py2.4-linux-\n<\/pre>\n\n\n\n<p>i686.egg\/yaml\/__init__.py&#8221;, line 26<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause\n<\/pre>\n\n\n\n<p>Check the latest Python package available with the OS repo. If it is version 2.4, then do not update it manually, which may cause conflicts with many other applications.<\/p>\n\n\n\n<p>Instead, you can install Python 2.5 or later versions in any other location like \/usr\/local. Make sure that you have given the prefix while installing the new version as given below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wget <a class=\"external free\" href=\"http:\/\/www.python.org\/ftp\/python\/2.6\/Python-2.6.tgz\" rel=\"nofollow noopener\" target=\"_blank\">http:\/\/www.python.org\/ftp\/python\/2.6\/Python-2.6.tgz<\/a>                                                \ntar -zxf Python-2.6.tgz                                                                                                                                                                                    \ncd Python-2.6\/                                                                                                                                                                                            \n.\/configure --prefix=\/usr\/local                                                                                                                                                                   \nmake                                                                                                    \nmake install \n<\/pre>\n\n\n\n<p>Then copy \/bin\/env to \/usr\/local\/bin\/env to properly parse Python scripts:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cp \/bin\/env \/usr\/local\/bin\/env\n<\/pre>\n\n\n\n<p>Now, you can continue with the Nginx installation:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">.\/nginxinstaller install\n<\/pre>\n\n\n\n<p><a class=\"external text\" href=\"mailto:kb@veeble.org\" rel=\"nofollow\">Let us know<\/a> if you face any problems.<\/p>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-6932bf87 wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Why Settle for Less? Offer the Best<\/h3><p class=\"uagb-cta__desc\">Top-tier servers, LiteSpeed caching, and free SSLs ensure your clients get premium performance\u2014no compromises.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/reseller-hosting\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Explore Plans<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Nginx (pronounced engine-x) is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP\/POP3 proxy server. It now hosts nearly [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":8652,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[3],"tags":[],"class_list":["post-163","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-installation"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Install-Nginx-on-cPanel-with-NGinx-Admin-Plugin.jpg",1366,768,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Install-Nginx-on-cPanel-with-NGinx-Admin-Plugin-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Install-Nginx-on-cPanel-with-NGinx-Admin-Plugin-300x169.jpg",300,169,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Install-Nginx-on-cPanel-with-NGinx-Admin-Plugin-768x432.jpg",768,432,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Install-Nginx-on-cPanel-with-NGinx-Admin-Plugin-1024x576.jpg",1024,576,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Install-Nginx-on-cPanel-with-NGinx-Admin-Plugin.jpg",1366,768,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Install-Nginx-on-cPanel-with-NGinx-Admin-Plugin.jpg",1366,768,false]},"uagb_author_info":{"display_name":"Vipin Raj","author_link":"https:\/\/www.veeble.com\/kb\/author\/vipin\/"},"uagb_comment_info":0,"uagb_excerpt":"Nginx (pronounced engine-x) is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP\/POP3 proxy server. It now hosts nearly [&hellip;]","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=163"}],"version-history":[{"count":4,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/163\/revisions"}],"predecessor-version":[{"id":8678,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/163\/revisions\/8678"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/8652"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}