Configure Munin Node

To install munin node on Ubuntu/Debian, run

To configure, edit file

Find

Below this line, you need to add IP of your Munin Master. You need to convert IP to regular expression format before adding. For example, if your IP is 88.212.32.35, you need to add

If you want to allow from any IP, add

Now restart Munin node

Add Node to Munin Master

You need to tell your Munin master about the new node you have installed. To do this, edit file

In this file, add

Now you need to wait like 5 minutes for Munin master to fetch the data. Munin master run the command /usr/bin/munin-cron to fetch data from every configured nodes.

If you have any problem with updating data, check the log files for more info.

/var/log/munin/munin-update.log => is the log file for munin master.

/var/log/munin/munin-node.log => is the log file for munin node.

Make sure you can connect to port 4949 of node server from master. If any firewall blocking, you need to open the port for munin to fetch the data.

netdata

To install netdata, run

Once installed, you will be able to see servers stats at

http://your-ip:19999

Stop/start/restart netdata

sed

sed can be used to replace text in a file.

g = Global, replace everything in a file.
s = substitute text
-i = update the file.

Delete lines matching string

To delete lines having a string and print result.

To update the file, use -i option

VestaCP Free Hosting Control Panel

Reset VestaCP admin password

VestaCP Free Hosting Control Panel

You can login to VestaCP at

phpMyAdmin available at

http://YOUR-IP-ADDR/phpmyadmin/

You can see phpMyAdmin Nginx config at /etc/nginx/conf.d/phpmyadmin.inc

Web Site DocumentRoot

Web sites are stored in folder

Log Files

/var/log/nginx/domains/ => stores Nginx Access and error logs for hosted web sites.

Configuration Files

php-fpm configurations for each web sites are stored in /etc/php-fpm.d/DOMAIN.conf, each web sites runs php-fpm in its own pool. Here is sample config

Apache/Nginx configuration in folder : /home/admin/conf/web (admin is user, if you have other users, check folder for the user)

VestaCP Installer Compromised

See Hosting Control Panel

Install PHP 7.1 php-fpm from source

Lets install the requirements.

On CentOS, run

Before you can install, you need to check MySQL socket location. To do this, run following command in MySQL command prompt.

Find MySQL socket

Download and install PHP 7.1 from source

Copy the configuration files

Now you will be able to start php-fpm by running

By default php-fpm will run using tcp port 9000, it is better to change it to use unix socket, for this

Find

Replace with

php-fpm user

You need to configure the user account used to run php-fpm, if you don’t use proper account, you may get permission errors.

The account you use vary depending on OS, Web server. For example, nginx use account nginx. Apache on Ubuntu/Debian use www-data. Apache on CentOS use nobody.

Here is what i have on a server running Nginx web server

Systemd Service

To easily manage php-fpm, lets create a php-fpm.service file.

Before we do this, edit

Find

Add below

Find

Add below

Save and exit.

Now lets create file /usr/lib/systemd/system/php-fpm.service

Add following content

Enable php-fpm with

Now you will be able to use systemctl to start/stop/restart php-fpm

systemctl status php-fpm