{"id":477,"date":"2010-04-09T16:22:16","date_gmt":"2010-04-09T21:22:16","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=477"},"modified":"2010-04-09T16:22:16","modified_gmt":"2010-04-09T21:22:16","slug":"centos-install-apache","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2010\/04\/centos-install-apache\/","title":{"rendered":"CentOS Install Apache"},"content":{"rendered":"<p>I downloaded the DVD torrent for CentOS 5.4.  It&#8217;s large.  3.72GB large.  It&#8217;s the i386 version.<\/p>\n<p>I needed it for testing as it&#8217;s closer to RHEL than Debian is.  \ud83d\ude42<\/p>\n<p>So I selected install &#8211; generic install &#8211; but ONLY install the server portion.  I don&#8217;t need that crazy GUI.  Or do I?<\/p>\n<p>After installation I ran the usual:<br \/>\n<code>yum update<\/code><br \/>\n<code>yum -y install httpd php mysql mysql-server php-mysql<\/code><br \/>\n<code>\/sbin\/chkconfig httpd on<\/code><br \/>\n<code>\/sbin\/chkconfig --add mysqld<\/code><br \/>\n<code>\/sbin\/chkconfig mysqld on<\/code><\/p>\n<p>Then I started the services:<br \/>\n<code>\/sbin\/service httpd start<\/code><br \/>\n<code>\/sbin\/service mysqld start<\/code><\/p>\n<p>Opened up my browser to the IP of the new server.  Page not found.  Damn.<\/p>\n<p>OK, let&#8217;s see if the server can access itself:<br \/>\n<code>lynx http:\/\/127.0.0.1<\/code><br \/>\n<code>Command not found<\/code><\/p>\n<p>Damn.  Install lynx:<br \/>\n<code>yum install lynx<\/code><br \/>\n<code>lynx http:\/\/127.0.0.1<\/code><br \/>\n<code>Default CentOS page!  Yay!<\/code><\/p>\n<p>Well, by default, CentOS installs SELinux.  I don&#8217;t care for MAC security as this is a pure test dev machine, so I&#8217;ll remove that:<br \/>\n<code>nano \/etc\/selinux\/config<\/code><br \/>\n<code>SELINUX = disabled<\/code><br \/>\n<code>Save, Reboot.<\/code><\/p>\n<p>Page not found.  Argh, must be the default firewall crap that is on by default.  I shall remove that as well:<br \/>\n<code>\/sbin\/service iptables save<\/code><br \/>\n<code>\/sbin\/service iptables stop<\/code><br \/>\n<code>\/sbin\/chkconfig iptables off<\/code><br \/>\n<code>I rebooted once again by accident as I hit the power button on the wrong virtual machine.  Oh well.<\/code><\/p>\n<p>Default CentOS Page!  Yay!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I downloaded the DVD torrent for CentOS 5.4. It&#8217;s large. 3.72GB large. It&#8217;s the i386 version. I needed it for testing as it&#8217;s closer to RHEL than Debian is. \ud83d\ude42 So I selected install &#8211; generic install &#8211; but ONLY install the server portion. I don&#8217;t need that crazy GUI. Or do I? After installation &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2010\/04\/centos-install-apache\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">CentOS Install Apache<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-477","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=477"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/477\/revisions"}],"predecessor-version":[{"id":478,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/477\/revisions\/478"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}