{"id":7854,"date":"2021-08-24T11:32:08","date_gmt":"2021-08-24T06:02:08","guid":{"rendered":"https:\/\/www.skynats.com\/?p=7405"},"modified":"2021-11-11T18:04:01","modified_gmt":"2021-11-11T12:34:01","slug":"install-mongodb-on-cpanel","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/install-mongodb-on-cpanel\/","title":{"rendered":"How to Install MongoDB on cPanel?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Before Installation process starts, you will have to create the database of mongo from shell (shh\/putty) and administer them from there (cloud or VPS). Interestingly, installing MongoDB is a short and easy process.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Follow the steps below to start the installation process:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>MongoDB repo Installation  <\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">cd\/etc\/yum.repos.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Create the file MongDB.repo<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Nano &#8211; w mangodb.repo<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Paste the code below inside<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[mangodb]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">name=MangoDB Repo<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Base Url=http:\/\/ downloads-distro.mongodb.orgo\/repo\/redhat<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/os\/x86_64\/<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">gpgchech=0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">enabled=1<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. MongoDB Installation using yum<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">yum install mongo-10gen mongo-10gen-server<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(By this point, you should have MongoDB Installed on your centos + cPanel box)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. MongoDB configuration to automatically start after reboot:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Chkconfig mongod on<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">6. Start MongoDB:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Service mongod start<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7. Use PECL command to Install MongOD PHP extention<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">pecl Install mongo<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">8. Restart Apche and that helps apply changes:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">service httpd restart<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">9. Varify the Installation with the command shown below <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Php -I | grep mongo -i<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(Once you see the MongoDB extention in the output, you are successfully done with the Installation)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you need any assistance, consult our <a href=\"https:\/\/www.skynats.com\/contact-us\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#0173a4\" class=\"has-inline-color\">technical team support<\/span><\/a>. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before Installation process starts, you will have to create the database of mongo from shell (shh\/putty) and administer them from there (cloud or VPS). Interestingly, installing MongoDB is a short and easy process. Follow the steps below to start the installation process: MongoDB repo Installation cd\/etc\/yum.repos. 2. Create the file MongDB.repo Nano &#8211; w mangodb.repo [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,103],"tags":[581],"class_list":["post-7854","post","type-post","status-publish","format-standard","hentry","category-blog","category-cpanel-server-support","tag-mongodb-on-cpanel"],"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/7854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=7854"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/7854\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=7854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=7854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=7854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}