A widespread error: “PHP Parse error: syntax error, unexpected ‘?’ in …” It’s meaning is clear from error text – PHP parser run into syntax error in script. Of course first of all you’ll need to check the script or it’s mentioned part if it really has misspelling – unclosed or excess bracket, period whatever. […]
Extending LVM volume on CentOS 7
I had a lack of free disk space on root LVM volume on one of my test servers. [root@localhost ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 1.7G 1.2G 516M 71% / And as long as I use LVM on the server I decided just to extend existing volume instead of creating […]
FreePBX install on CentOS 7
FreePBX could be installed with pre-built distribution from Sangoma corp., which could be downloaded and installed pretty easy and quickly. But what if you already have installed server or you can’t use 3d-party distribution to install the server. FreePBX site has nice instructions on how to install Asterisk and FreePBX on existing server based on […]
Zabbix graph of LXC container memory usage
Recently I implemented Zabbix monitoring system on Linux servers, some of which are physical machines, and some are LXC containers under those physical machines. In order to get accurate data on the CPU and RAM of the container, I used the wonderful Zabbix template for LXC/LXD containers (here the template: https://github.com/scanterog/zabbix-lxd). I used this template […]
SPF for web-server
Sender Policy Framework is an extension for email sending with SMTP protocol. It was created as a means of struggling with spam. It’s function is to indicate whether the sender of an email from a certain domain is authorized for such sending. If you use email hosting or even free mail services, then you most […]