print this page

LAMP Server configure in Centos 6



  Configure LAMP Server on Centos 6
                           BY
          Faisal Md. Jiaur Rahman


# Install httpd

  178  yum install httpd* -y 
  179  service httpd start
  180  service httpd status
  181  service httpd restart
  184  chkconfig httpd on
  185  firewall-cmd --permanent --add-service=http

# Install mysql database

  189  yum install mysql-server mysql -y


  190  service mysql status
  191  mysql_secure_installation
  192  service mysql restart
  192  chkconfig mysql on

# Install php
  192  yum install php php-mysql php-gd php-pear -y
  193  vim /var/www/html/testphp.php
  194  service httpd restart

# Install phpMyAdmin for browsing through web

  195  yum install epel-release
  196  yum install phpmyadmin -y
  197  vim /etc/httpd/conf.d/phpMyAdmin.conf
  198  vim /etc/phpMyAdmin/config.inc.php
  199  service httpd restart

0 comments

Configure Nagios in centos 6

Configure Nagios in Centos 6
                     By
    Faisal Md. Jiaur Rahman



  269  useradd -m nagios
  270  passwd nagios
  271  groupadd nagiosgroup
  272  usermod -a -G nagiosgroup nagios
  273  usermod -a -G nagiosgroup apache
  274  wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.0.8.tar.gz
  275  wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
  276  ls
  277  tar xzf nagios-4.0.8.tar.gz
  278  ls
  279  cd nagios-4.0.8
  280  ls
  281  ./configure --with-command-group=nagiosgroup
  282  ls
  283  make all
  284  make install
  285  make install-init
  286  make install-config
  287  make install-commandmode
  288  make install-webconf
  289  htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadminit
  290  service httpd restart
  291  tar xzf nagios-plugins-2.0.3.tar.gz
  297  cd nagios-plugins-2.0.3
  299  ./configure --with-nagios-user=nagios --with-nagios-group=nagios
  300  make
  301  make install
  302  vi /usr/local/nagios/etc/objects/contacts.cfg
  303  vim /etc/httpd/conf.d/nagios.conf
  304  service httpd restart
  306  /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
  307  service nagios start
  308  chkconfig nagios on
0 comments

LVM Extend for Centos 7

To Extend LVM in CentOS 7
               BY
 Faisal Md. Jiaur Rahman


follow below stpes-


#  df -h
#  lvdisplay
#  fdisk /dev/sda
#  df -h
#  pvcreate /dev/sda3
#  pvdisplay
#  init 6
#  df -h
#  lvextend /dev/centos/root /dev/sda3
#  pvdisplay
#  vgextend centos /dev/sda3
#  vgdisplay
#  lvdisplay
#  lvresize -l +100%FREE /dev/centos/root
#  xfs_growfs /dev/centos/root
#  df -h
0 comments
 
Copyright © 2014. Faisal Md. Jiaur Rahman - All Rights Reserved