{"id":318,"date":"2017-07-25T02:37:34","date_gmt":"2017-07-25T02:37:34","guid":{"rendered":"http:\/\/hyderabadwebhosting.in\/blog\/?p=318"},"modified":"2018-10-21T21:07:10","modified_gmt":"2018-10-21T21:07:10","slug":"install-apache-php-centos-7","status":"publish","type":"post","link":"https:\/\/hyderabadwebhosting.in\/blog\/install-apache-php-centos-7\/","title":{"rendered":"How to install apache and php on centos 7"},"content":{"rendered":"<p><span style=\"font-size: large;\">Apache web server is free and open-source cross-platform web server software.It is fast,reliable and secure.It runs on 67% of all webservers in the world.<\/span><\/p>\n<p><span style=\"font-size: large;\"><strong>Install Apache<\/strong><\/span><\/p>\n<p><span style=\"font-size: large;\">To install Apache by using the below command<\/span><\/p>\n<p><span style=\"font-size: large;\">yum install httpd<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/1-6-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-319 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/1-6-1.png\" alt=\"\" width=\"643\" height=\"335\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/1-6-1.png 643w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/1-6-1-300x156.png 300w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\"><strong>Install PHP<\/strong><\/span><\/p>\n<p><span style=\"font-size: large;\">To install PHP by using the below command<\/span><\/p>\n<p><span style=\"font-size: large;\">yum install php<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/2-3-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-320 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/2-3-1.png\" alt=\"\" width=\"642\" height=\"362\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/2-3-1.png 642w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/2-3-1-300x169.png 300w\" sizes=\"auto, (max-width: 642px) 100vw, 642px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\"><strong>Install PHP modules<\/strong><\/span><\/p>\n<p><span style=\"font-size: large;\">search the available PHP modules by using the below command<\/span><\/p>\n<p><span style=\"font-size: large;\">yum search php-<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/4-2-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-322 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/4-2-1.png\" alt=\"\" width=\"640\" height=\"371\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/4-2-1.png 640w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/4-2-1-300x174.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">To know the short information of the module by using the below command<\/span><\/p>\n<p><span style=\"font-size: large;\">yum info module-name<\/span><\/p>\n<p><span style=\"font-size: large;\">For example,I have to know mysql module information using below command<\/span><\/p>\n<p><span style=\"font-size: large;\">yum info php-mysql<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/5-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-324 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/5-5.png\" alt=\"\" width=\"634\" height=\"372\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/5-5.png 634w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/5-5-300x176.png 300w\" sizes=\"auto, (max-width: 634px) 100vw, 634px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">To install mutliple php module by using below command<\/span><\/p>\n<p><span style=\"font-size: large;\">yum install php-modulename<\/span><\/p>\n<p><span style=\"font-size: large;\">For example,I have to install few module using below command<\/span><\/p>\n<p><span style=\"font-size: large;\">yum install php-mysql.x86_64 php-cli.x86_64 php-bcmath.x86_64<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/6-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-327 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/6-3.png\" alt=\"\" width=\"637\" height=\"350\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/6-3.png 637w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/6-3-300x165.png 300w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">Finally restart the apache web server by using the below command<\/span><\/p>\n<p><span style=\"font-size: large;\">service httpd restart<\/span><\/p>\n<p><span style=\"font-size: large;\">check the apache configuration fileis configured with the server name.<\/span><\/p>\n<p><span style=\"font-size: large;\">Using below command to check the configuration file<\/span><\/p>\n<p><span style=\"font-size: large;\">nano \/etc\/httpd\/conf\/httpd.conf<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/7-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-328 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/7-3.png\" alt=\"\" width=\"640\" height=\"315\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/7-3.png 640w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/7-3-300x148.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">You can check it by accessing your server in browser by your IP address<\/span><\/p>\n<p><a href=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/8-1-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-329 size-full\" src=\"http:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/8-1-1.png\" alt=\"\" width=\"1336\" height=\"722\" srcset=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/8-1-1.png 1336w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/8-1-1-300x162.png 300w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/8-1-1-768x415.png 768w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/8-1-1-1024x553.png 1024w, https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/8-1-1-660x357.png 660w\" sizes=\"auto, (max-width: 1336px) 100vw, 1336px\" \/><\/a><\/p>\n<div class=\"pdf24Plugin-cp\"> \t<form name=\"pdf24Form0\" method=\"post\" action=\"https:\/\/doc2pdf.pdf24.org\/wordpress.php\" target=\"pdf24PopWin\" onsubmit=\"var pdf24Win = window.open('about:blank', 'pdf24PopWin', 'resizable=yes,scrollbars=yes,width=600,height=250,left='+(screen.width\/2-300)+',top='+(screen.height\/3-125)+''); pdf24Win.focus(); if(typeof pdf24OnCreatePDF === 'function'){void(pdf24OnCreatePDF(this,pdf24Win));}\"> \t\t<input type=\"hidden\" name=\"blogCharset\" value=\"Cw1x07UAAA==\" \/><input type=\"hidden\" name=\"blogPosts\" value=\"MwQA\" \/><input type=\"hidden\" name=\"blogUrl\" value=\"yygpKSi20tfPqExJLUpMSkwpT03KyC8uycxL18vM00\/KyU8HAA==\" \/><input type=\"hidden\" name=\"blogName\" value=\"86hMSS1KTEpMUQhPTVLwyC8uycxLBwA=\" \/><input type=\"hidden\" name=\"blogValueEncoding\" value=\"gzdeflate base64\" \/><input type=\"hidden\" name=\"postId_0\" value=\"Mza0AAA=\" \/><input type=\"hidden\" name=\"postTitle_0\" value=\"88gvVyjJV8jMKy5JzMlRSCxITM5IVUjMS1EoyChQyM9TSE7NK8kvVjAHAA==\" \/><input type=\"hidden\" name=\"postLink_0\" value=\"BcHBCcAwCADAiazPQrcxiURBVKJQun3vpDvrQZRv8aFB6+UhUa2+L3UcFhvVq8kMKGkKQ0rCZO8ouPEH\" \/><input type=\"hidden\" name=\"postAuthor_0\" value=\"c\/QLDVAICHJ08XD0AwA=\" \/><input type=\"hidden\" name=\"postDateTime_0\" value=\"MzIwNNc1MNc1MlUwMLIyMLcyNgEA\" \/><input type=\"hidden\" name=\"postContent_0\" value=\"vZhNj+o2FIb3\/RVHkSq10oR8QcKdAlI3V53dLHoXXVUmcYh1HTu1nQHur+9xzEe4qO0wmO7imLzntXlefMiiWy10RwRos+d0GdRSmFCzb\/QZOFEb+kuw+rUjZUNhS9egqXqjCpiGWlEKRFQgOypCLXtVUiiV1DrsODG1VO34CS1rsyWKTl7M8DTR5klRzsiaOxlNy95Nq15okALy4keQNRDOrZDT0cAEGGtGKl5NFpG1vlpE3eqHxX8vZKGNkmKzehHaWFm3MBRxt29U+12imbEQrPfQayY2g8M15XILpWxbXN6N0vu+PWk3xnRXzxNoFK2XgZ18jqJmX1FF1qTCjWqkNuhhwkS05nITbbuwxApUmKjvuCSVjtI4KaK4iJIwD5NJJza4NazdgJ3FR5cBJ9\/2AVS0lG5M9F6UAZScaI0jzjaiREH8XlGdtWRDwyz5BHYRYd1zHoBWpT93yIBZBgFsWWWaZZBPswAayjYN3s2y2VBNU+MKag8VAUtsn8CHXJjF8S6Z5YMsXm+DYZvsNvZGPsFPLdmFw8KebdVu9zMkcfyG1YdRABF+6+TDiL\/+9uqBb1R5DNxd0z0G7TTM\/KGdxp7RPru7QjsdoZ2n3tA+VUSs0vvRHuQc2vmn96GdXqCdekEbWln1nOqPIq4pUWUzEE3eCOPDaTTS9Qv9oRoyHz4G+mmYeoQ+9Qz92d0V9PEI+iLxBv2pIgIX3w\/9IOegL6bvgz6+gD6+HXr8Ef4qkDrLn26kwu5J2N6KGIYtErZHdsLR6vsXupYH4VCQlt4o8VkqoDvSdpw+vUBD3iiYw1Lavf6LHz2PV+PMezFuMzbUeUzQZuHMW8ymnmN29PZ9yLLpOGT+TpZDPcAC90cMxQ4Be1\/DlE3HAbOjDwTs2Iy0veEMgbX0XGXKY8cTOm1vqTpK13R7tP0AzzZNk908\/zOfDjdKzsbDdYkpbg53HpO6PMy8pa7wnLqjt6vUFaPUzWJvqTvUQ+aL+1OHYodebva+1BUXqStuT91nJhCsPSiKhOGhNnRgV68ZvB1oVo+V1P2XPha9UQO9lV\/HRnE3a7bplTu8asYp06ebtEIEjGstD6uxeb\/1jcWX6xzbxJ+9XJu4sYIgQkJETRkNmxNZQXc5sZePSXLhMclzz0ku\/iHJF01q4u+lQ3FMso8WtTgmeTr\/nxrUP2QPJX7CIcmMDS0pS6oHcveyV6eXhgLWSm61C\/Yw8\/IKpKowj\/oxnM2xX\/\/oHyIhBR1z5vv11tnbd6QlWZafUStSf63aqSTYGvfTNugdTo70xJsn2SKf76aJO5Dw2pdsEqfT3WzmMmcHvoTzPN5ls8JlOf\/X2NndH+XODS+C9zc=\" \/> \t\t<a href=\"https:\/\/www.pdf24.org\" target=\"_blank\" title=\"www.pdf24.org\"><img src=\"https:\/\/hyderabadwebhosting.in\/blog\/wp-content\/plugins\/pdf24-post-to-pdf\/img\/sheep_32x32.png\" alt=\"www.pdf24.org\" border=\"0\" height=\"32\" \/><\/a> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<span class=\"pdf24Plugin-cp-text\">Send article as PDF<\/span> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<input class=\"pdf24Plugin-cp-input\" style=\"margin: 0px;\" type=\"text\" name=\"sendEmailTo\" placeholder=\"Enter email address\" \/> \t\t<input class=\"pdf24Plugin-cp-submit\" style=\"margin: 0px;\" type=\"submit\" value=\"Send\" \/> \t<\/form> <\/div>","protected":false},"excerpt":{"rendered":"<p>Apache web server is free and open-source cross-platform web server software.It is fast,reliable and secure.It runs on 67% of all webservers in the world. Install Apache To install Apache by using the below command yum install httpd Install PHP To install PHP by using the below command yum install php Install PHP modules search the\u2026 <span class=\"read-more\"><a href=\"https:\/\/hyderabadwebhosting.in\/blog\/install-apache-php-centos-7\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":334,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-318","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps"],"_links":{"self":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=318"}],"version-history":[{"count":3,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/318\/revisions"}],"predecessor-version":[{"id":331,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/318\/revisions\/331"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/media\/334"}],"wp:attachment":[{"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hyderabadwebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}