Flipkart

Showing posts with label HTTPD. Show all posts
Showing posts with label HTTPD. Show all posts

Saturday, February 29, 2020

How To Install Zabbix 4.4 Server On CentOS 7

Zabbix is an open source network monitoring software designed to monitor and track the status of various network devices, servers, and virtual machines
Update the system using below command
# yum update
Install required packages
# yum install  mariadb-server  httpd -y                          
# yum install php php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml php-bcmath  



# systemctl start httpd
Install Repository with MySQL database
# mysql_secure_installation


Install yum repository to install Zabbix
CentOS/RHEL 7: 
After adding Zabbix apt repository in your system use following command to install Zabbix server.
 # yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-java-gateway

Create initial database schema
# mysql -u root -p
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'Password';
FLUSH PRIVILEGES;
mysql> quit;


Import initial schema and data. You will be prompted to enter your newly created password.
 # zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql –u zabbix -p zabbix

Configure the database for Zabbix server
Edit file /etc/zabbix/zabbix_server.conf
Update the following database configurations. This will be used by Zabbix server to connect to the database.
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=password

Configure PHP for Zabbix frontend
Edit file /etc/httpd/conf.d/zabbix.conf, uncomment and set the right timezone for you.
# php_value date.timezone Asia/Kolkata


Start Zabbix server and agent processes and make it start at system boot:
# systemctl start zabbix-server zabbix-agent httpd mariadb
# systemctl enable zabbix-server zabbix-agent httpd mariadb

Now your Zabbix server is up and running!
Configure Zabbix frontend
Connect to your newly installed Zabbix frontend: http://server_ip_or_name/zabbix
Follow steps described in Zabbix documentation: Installing frontend
 Start using Zabbix

Check for pre-requisites
Check if you meet all the system requirements. If not configure your php.ini.
Configure DB Connection
Fill your DB details which you created and click on Next Step 
Zabbix server details
This is the host and port of running Zabbix server. As your Zabbix server is running on the same host, so keep the values unchanged. You can give a name for your instance.

 Pre-Installation Summary
This will give you a summary of your configuration. Click on Next Step

Install Zabbix
Click on Finish button to install Zabbix server

Install Zabbix
You will see a successful installation message on this page. This will also show you a message for the created configuration file.

Login to Zabbix
Login to Zabbix with following credentials
UserName          : Admin
Password    : Zabbix

You will see your Zabbix home screen now
Congratulation! Your Zabbix setup has been completed.



Monday, October 8, 2018

How to Install Apache HTTPD on Linux 6

To Install using YUM package:-

# yum install httpd -y

or

# up2date httpd

Install Apache From Source :-

Download URL : http://www-us.apache.org/dist//httpd/httpd-2.4.29.tar.gz

https://httpd.apache.org/download.cgi#apache24

1. Extract the gz file using tar command

# tar -xvzf httpd-2.2.31.tar.gz

# cd httpd-2.2.31

2. Configure the files

#./configure --prefix=PREFIX

3. Compile

# make

Compile the package using make command

4. Install

# make install

finally install using make install command

Start the Apache:-

To Start the httpd server we can use both the following ways

# /etc/init.d/httpd start

or

#apachetl -k start

clip_image001

To Stop :-

Similarly for stopping the apache server, we can use the stop command

# /etc/init.d/httpd stop

or

#apachetl -k stop

Permanent chkconfig Configuration:-

# chkconfig httpd on

To check whether Apache is running or not:-

Below command will check for the port 80 which is the default configured port for Apache HTTPD.

# netstat -tulpn | grep :80

If apache is running we will see the response like below

tcp 0 0 :::80 ::* LISTEN 0 2710371 7760/httpd