ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Installation of Zabbix in Centos 7

    IT Discussion
    linux zabbix centos 7 centos
    6
    126
    57.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LakshmanaL
      Lakshmana
      last edited by

      In order to update the time zone go to the file given below
      Edit file /etc/httpd/conf.d/zabbix:

      vi /etc/httpd/conf.d/zabbix.conf

      scottalanmillerS 1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller @Lakshmana
        last edited by

        @Lakshmana said:

        In order to update the time zone go to the file given below
        Edit file /etc/httpd/conf.d/zabbix:

        vi /etc/httpd/conf.d/zabbix.conf

        Why are you changing the timezone? Is that part of a normal installation?

        1 Reply Last reply Reply Quote 0
        • LakshmanaL
          Lakshmana
          last edited by

          No,If needed means we can change

          1 Reply Last reply Reply Quote 0
          • LakshmanaL
            Lakshmana
            last edited by

            After the update of the time zone needs to update it by the following command

            Restart the httpd

            systemctl restart httpd
            After the MySQL needs to configured here.If needed we need to install in the server

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              Don't forget a space after all punctuation.

              1 Reply Last reply Reply Quote 0
              • LakshmanaL
                Lakshmana
                last edited by

                Ok.The mysql and LAMP can be installed by the following link provided below

                http://www.unixmen.com/install-lamp-server-apache-mariadb-php-centosrhelscientific-linux-7/

                1 Reply Last reply Reply Quote 0
                • LakshmanaL
                  Lakshmana
                  last edited by

                  Maria DB installation issue, I am facing in this is given below
                  [lakshmana@dny-lnx-zabbix ~]$ mysql_secure_installation
                  /usr/bin/mysql_secure_installation: line 379: find_mysql_client: command not found

                  NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
                  SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

                  In order to log into MariaDB to secure it, we'll need the current
                  password for the root user. If you've just installed MariaDB, and
                  you haven't set the root password yet, the password will be blank,
                  so you should just press enter here.

                  Enter current password for root (enter for none):
                  ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
                  Enter current password for root (enter for none):
                  ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
                  Enter current password for root (enter for none):

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    I think that you forgot the step to start the server.

                    1 Reply Last reply Reply Quote 0
                    • LakshmanaL
                      Lakshmana
                      last edited by

                      Yes, I have started the MariaDB by the following command given below

                      sudo systemctl start mariadb
                      sudo systemctl enable mariadb

                      1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller
                        last edited by

                        Use ps to see if it is running.

                        1 Reply Last reply Reply Quote 0
                        • LakshmanaL
                          Lakshmana
                          last edited by

                          Yes,the MySQL is working

                          [lakshmana@dny-lnx-zabbix ~]$ ps -ef | grep mysql
                          root 27635 27481 0 13:14 pts/4 00:00:00 sudo mysql_secure_installation
                          root 27636 27635 0 13:14 pts/4 00:00:00 /bin/sh /bin/mysql_secure_installation
                          mysql 27770 1 0 13:23 ? 00:00:00 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
                          mysql 27928 27770 0 13:23 ? 00:00:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-file=/var/run/mariadb/mariadb.pid --socket=/var/lib/mysql/mysql.sock
                          lakshma+ 28085 27663 0 13:28 pts/5 00:00:00 grep --color=auto mysql

                          1 Reply Last reply Reply Quote 0
                          • LakshmanaL
                            Lakshmana
                            last edited by

                            Then I have Set MySQL root password

                            By default, MySQL root password is empty. So, to prevent unauthorized access to MySQL, let us set root user password. Enter the following command to setup mysql root user password:

                            mysql_secure_installation
                            /usr/bin/mysql_secure_installation: line 379: find_mysql_client: command not found

                            NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
                            SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

                            In order to log into MariaDB to secure it, we'll need the current
                            password for the root user. If you've just installed MariaDB, and
                            you haven't set the root password yet, the password will be blank,
                            so you should just press enter here.

                            Enter current password for root (enter for none):
                            OK, successfully used password, moving on...

                            Setting the root password ensures that nobody can log into the MariaDB
                            root user without the proper authorisation.

                            Set root password? [Y/n] y ## Enter Y and press Enter
                            New password: ## Enter new password
                            Re-enter new password: ## Enter password again
                            Password updated successfully!
                            Reloading privilege tables..
                            ... Success!

                            By default, a MariaDB installation has an anonymous user, allowing anyone
                            to log into MariaDB without having to have a user account created for
                            them. This is intended only for testing, and to make the installation
                            go a bit smoother. You should remove them before moving into a
                            production environment.

                            Remove anonymous users? [Y/n] y ## Enter Y and press Enter
                            ... Success!

                            Normally, root should only be allowed to connect from 'localhost'. This
                            ensures that someone cannot guess at the root password from the network.

                            Disallow root login remotely? [Y/n] y ## Enter Y and press Enter
                            ... Success!

                            By default, MariaDB comes with a database named 'test' that anyone can
                            access. This is also intended only for testing, and should be removed
                            before moving into a production environment.

                            Remove test database and access to it? [Y/n] y ## Enter Y and press Enter

                            • Dropping test database...
                              ... Success!
                            • Removing privileges on test database...
                              ... Success!

                            Reloading the privilege tables will ensure that all changes made so far
                            will take effect immediately.

                            Reload privilege tables now? [Y/n] y ## Enter Y and press Enter
                            ... Success!

                            Cleaning up...

                            All done! If you've completed all of the above steps, your MariaDB
                            installation should now be secure.

                            Thanks for using MariaDB!

                            1 Reply Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller
                              last edited by

                              Looks like you are all set then. What is the issue?

                              1 Reply Last reply Reply Quote 0
                              • LakshmanaL
                                Lakshmana
                                last edited by

                                There is no issue. The installation is going on now

                                1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller
                                  last edited by

                                  Oh okay.

                                  1 Reply Last reply Reply Quote 0
                                  • LakshmanaL
                                    Lakshmana
                                    last edited by

                                    PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely used open-source general purpose scripting language that is especially suited for web development and can be embedded into HTML.

                                    Install PHP with following command:

                                    sudo yum install php php-mysql php-gd php-pear -y

                                    1 Reply Last reply Reply Quote 0
                                    • scottalanmillerS
                                      scottalanmiller
                                      last edited by

                                      PHP actually standards of Personal Home Page which makes little sense, bit it was what PHP was created as. The acronym you mention is something new that people have tried to change it to, but PHP was created as Personal Home Page. As a true acronym they can't exactly change it later 😉

                                      1 Reply Last reply Reply Quote 0
                                      • LakshmanaL
                                        Lakshmana
                                        last edited by

                                        The PHP installed by the following command

                                        sudo yum install php php-mysql php-gd php-pear -y

                                        Test PHP:
                                        Create a sample “testphp.php” file in Apache document root folder and append the lines as shown below:

                                        vi /var/www/html/testphp.php
                                        Add the following lines.

                                        <?php
                                        phpinfo();
                                        ?>
                                        Restart httpd service:

                                        systemctl restart httpd

                                        1 Reply Last reply Reply Quote 0
                                        • LakshmanaL
                                          Lakshmana
                                          last edited by

                                          Navigate to http://server-ip-address/testphp.php. It will display all the details about php such as version, build date and commands etc.

                                          phpinfo() - Mozilla Firefox_002

                                          If you want to install all php modules, enter the command yum install php* -y and restart the httpd service. To verify for the modules, open web browser and navigate to http://server-ip-address/testphp.php. You will then see all php modules.

                                          1 Reply Last reply Reply Quote 0
                                          • LakshmanaL
                                            Lakshmana
                                            last edited by

                                            phpMyAdmin is a free open-source web interface tool used to manage your MySQL databases. By default phpMyAdmin will not be not found in CentOS/RHEL/Scientific Linux official repositories. So let us install it from EPEL repository.

                                            To add EPEL repository, just follow the link.

                                            Install EPEL Repository on RHEL/CentOS/Scientific Linux 7
                                            Now, install phpMyAdmin:

                                            sudo yum install phpmyadmin -y
                                            Configure phpMyAdmin
                                            By default, phpMyAdmin can only be accessed from the localhost itself. To make it to accessible globally, do the following steps.

                                            Edit the phpmyadmin.conf file:

                                            vi /etc/httpd/conf.d/phpMyAdmin.conf

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 2 / 7
                                            • First post
                                              Last post