February 26, 201412 yr First let's install the pre-req's INSTALL APACHE yum install httpd -y service httpd start chkconfig httpd on NOTE: If you get an error like [root@srvr01 ~]# service httpd start Starting httpd: httpd: apr_sockaddr_info_get() failed for srvr01.thezah.com httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName The fix is to add your IPAddress and hostname to /etc/hosts Allow port 80 through the builtin firewall (iptables) vi /etc/sysconfig/iptables Add the following line -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT Restart the builtin firewall service iptables restart Test that Apache is working by opening a browser and navigating to http://localhost/ or http://server-ip-address/ INSTALL MySQL yum install mysql mysql-server -y Start MySQL Service service mysqld start Turn mysql service each time your server reboots chkconfig mysqld on Set the mysql root password mysql_secure_installation INSTALL PHP yum install php -y Create a test php file vi /var/www/html/testphp.php Add the following <?phpphpinfo();?> Restart Apache service httpd restart See if your PHP is working by loading that testphp.php file you created http://server-ip-address/testphp.php Install mysql plugin for php yum install php-mysql -y INSTALL phpMyAdmin PreReq is to add distribution that holds the phpmyadmin package to yum repository wget http://epel.mirror.net.in/epel/6/i386/epel-release-6-8.noarch.rpmrpm -Uvh epel-release-6-8.noarch.rpmyum repolist installing phpmyadmin yum install phpmyadmin -y cp /usr/share/phpMyAdmin/config.sample.inc.php /usr/share/phpMyAdmin/config.inc.php vi /usr/share/phpMyAdmin/config.inc.php change cookie to http /* Authentication type */ $cfg['Servers'][$i]['auth_type'] = 'http'; edit config to allow access vi /etc/httpd/conf.d/phpMyAdmin.conf Comment out entire # # # # Apache 2.4 # Require local # # # # Apache 2.2 # Order Deny,Allow # Deny from All # Allow from 127.0.0.1 # Allow from ::1 # # Restart Apache service httpd restart Test phpMyAdmin by navigating to http://server-ip-address/phpmyadmin/ INSTALL NAGIOS cd /tmp wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz tar xzf xi-latest.tar.gz cd /tmp/nagiosxi ./fullinstall
Create an account or sign in to comment