![]()
![]() Pi 1 / zero / zero W) - you would need to compile the source yourself. sudo nano /etc/nginx/sites-enabled/default. Open the default site configuration file. Sudo apt get install php update#Now you need to update fastcgipass configuration to point new version file. I do not believe v8.x will run on early ARMv6 chip sets (e.g. If you are using MySQL, make sure to re-add the updated PHP MySQL bindings: sudo apt-get install php7.2-mysql.Update-alternatives -config php to switch between them. I have not tried both versions together, nor have I tried sudo.You should remove earlier versions of PHP first using sudo apt purge '^php7.x.*' where 'x' is the sub-version of 7 installed (often 7.3 on Zeros and 7.4 on 2+ boards) The above does not replace earlier versions and may cause your scripts to fail if they are version dependant.for cURL and zip: sudo apt install -y php8.0-curl php8.0-zipįor Apache use one / both of: sudo apt install -y libapache2-mod-php8.0 Then install the required modules: sudo apt install -y php8.0-extension_nameĮ.g. Then install the base and cli: sudo apt install -y php8.0-common php8.0-cli To install php 8.0 add the repository: sudo wget -O /etc/apt//php.gpg Įcho "deb $(lsb_release -sc) main" | sudo tee /etc/apt//php.list Sudo apt get install php code#If you have followed all the steps correctly, you Nagios web interface will show up.Version 8 has moved json into core code and it is no longer a separate module.įull details can be seen on PHP Watch hereĪs for getting PiHole running fully, you may find their forum more help as it's not a Pi specific program / issue as PHP 8 is not shipped by default yet. The login screen of Nagios is as shown in the screenshot given below − Sudo apt get install php download#This command will download the given version of PHP from the repository and will install on the local Ubuntu machine. The next and final step is to install PHP, Run the following command in your terminal. Sudo apt get install php password#Step 19 − Now go to your browser and open url → Now login to Nagios with username nagiosadmin and use the password which you had set earlier. Run the apt-get update command to download the latest package information. Step 18 − Make the Nagios file executable and start Nagios. PIDFILE = /usr/local/nagios/var/$NAME.lock Sudo cp /etc/init.d/skeleton /etc/init.d/NagiosĭAEMON_ARGS = "-d /usr/local/nagios/etc/nagios.cfg" Step 16 − Now, restart Apache and Nagios. Sudo ln -s /etc/apache2/sites-available/nf /etc/apache2/sites-enabled/ Sudo htpasswd -c /usr/local/nagios/etc/ers nagiosadmin Step 15 − Now enable the Apache modules and configure a user nagiosadmin. Sudo gedit /usr/local/nagios/etc/objects/contacts.cfg Step 14 − Edit contacts configuration file. Sudo mkdir -p /usr/local/nagios/etc/servers Step 13 − Now, create a server directory. ![]() ![]() Sudo gedit /usr/local/nagios/etc/nagios.cfg Step 12 − Now edit the Nagios configuration file and uncomment line number 51 → cfg_dir=/usr/local/nagios/etc/servers configure -with-nagios-user=nagios -with-nagios-group=nagios -with-openssl sudo apt-get install php-xmlrpc Restart Apache web server sudo service apache2 restart As a sanity check, create a PHP file (e.g. Step 11 − Install Nagios plugins using the below command. So off to Google I go and, find a few answers, have a couple of mis-starts, then finally get it working. Step 10 − Download and extract Nagios plugins. Sudo chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers Sudo cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/ Step 9 − Now copy the event handler directory to Nagios directory. Sudo /usr/bin/install -c -m 644 sample-config/nf /etc/apache2/sitesavailable/ Step 8 − Run the following commands to install init and external command configuration files. Step 7 − Run the command shown below to install all the Nagios files. Step 6 − Run the following command to build Nagios files. configure -with-nagios-group=nagios -with-command-group=nagcmd Step 5 − Run the following command to compile Nagios from source. Step 3 − Download the latest Nagios package. Sudo usermod -a -G nagios,nagcmd www-data Step 2 − Next, create user and group for Nagios and add them to Apache www-data user. Sudo apt-get install wget build-essential apache2 php apache2-mod-php7.0 php-gd Step 1 − Run the following command to install pre-required packages − In this chapter, the steps to setup Nagios on Ubuntu are discussed in detail.īefore you install Nagios, some packages such as Apache, PHP, building packages etc., are required to be present on your Ubuntu system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |