{"id":891,"date":"2016-12-07T23:21:59","date_gmt":"2016-12-07T16:21:59","guid":{"rendered":"https:\/\/www.whplus.com\/blog\/?p=891"},"modified":"2016-12-07T23:21:59","modified_gmt":"2016-12-07T16:21:59","slug":"install-apachephp-on-centos-server","status":"publish","type":"post","link":"https:\/\/www.whplus.com\/blog\/2016\/12\/07\/install-apachephp-on-centos-server.html","title":{"rendered":"Install Apache+PHP on CentOS server"},"content":{"rendered":"<p><strong>Step 1<\/strong> \u2013 Login to your server<\/p>\n<p><strong>Step 2<\/strong> \u2013 <strong>Install Apache web server on CentOS<\/strong>. Issue following command:<br \/>\n<code>yum install httpd<\/code><\/p>\n<p><strong>Step 3<\/strong> \u2013 <strong>Install PHP5 and common PHP module.<\/strong> The most basic command to install latest PHP version is following:<br \/>\n<code>yum install php<\/code><\/p>\n<p>That\u2019s it. Now you have Apache and PHP5 installed. But wait, talking about PHP module, there are several most common modules available you may wish to install as well. Use the following command<br \/>\n<code><br \/>\nyum install php-mysql php-common php-cli php-devel php-fpm php-gd php-imap php-intl php-mysql php-process php-xml php-xmlrpc php-zts<\/code><\/p>\n<p><strong>Step 4<\/strong> \u2013 Finally restart the Apache web server so it can reload appropriately:<\/p>\n<p><code>service httpd restart<\/code><\/p>\n<p><strong>Step 5<\/strong> \u2013 This very last step is not a must but recommended: adding Apache to start up list. Each time you reboot your server PHP will start automatically but not with Apache. Issue command below to make it start each time whenever the server reboots:<\/p>\n<p><code>chkconfig httpd on<\/code><\/p>\n<p>Congratulation. What\u2019s next? You can give it a test by accessing your server in your browser via its IP address<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 1 \u2013 Login to your server Step 2 \u2013 Install Apache web server on CentOS. Issue following command: yum install httpd Step 3 \u2013 Install PHP5 and common PHP module. The most basic command to install latest PHP version is following: yum install php That\u2019s it. Now you have Apache and PHP5 installed. But\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.whplus.com\/blog\/2016\/12\/07\/install-apachephp-on-centos-server.html\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-891","post","type-post","status-publish","format-standard","hentry","category-tutorial"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/comments?post=891"}],"version-history":[{"count":1,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/891\/revisions"}],"predecessor-version":[{"id":893,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/891\/revisions\/893"}],"wp:attachment":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/media?parent=891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/categories?post=891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/tags?post=891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}