While a setting up MariaDB slave I ran in the following issue:
180118 14:14:11 [ERROR] Failed to open the relay log './-relay-bin'
(relay_log_pos 7654336)
071118 16:44:10 [ERROR] Could not find target log during relay log initialization
071118 16:44:10 [ERROR] Failed to initialize the master info structure
Jan 23 2018
Could not find target log during relay log initialization
Jan 19 2018
How to Install PHP 7 in CentOS 7
The CentOS 7 official software repositories have PHP 5.4 that is reached end of life and no longer actively maintained by the developers.
Thus you need a newer PHP 7 on your CentOS server.
The commands below will help you install PHP 7 on CentOS. All of them are executed as root account or with sudo
Continue reading
Jan 18 2018
Unable to set php_value soap.wsdl_cache_dir
I php-fpm access.log
we can see the following:
[18-Jan-2018 15:03:38] WARNING: [pool www] child 2148 said into stderr: “ERROR: Unable to set php_value ‘soap.wsdl_cache_dir'”
By default this parameter looks like the following:
php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache
Continue reading
Dec 27 2017
Apache HTTPOnly and Secure Cookie
Having HTTPOnly and Secure in HTTP response header can help to protect your web applications from cross-site scripting and session manipulation attacks. Here is how to configure HTTPOnly Secure Cookie Attribute in Apache. Continue reading
Dec 27 2017
Nginx HTTPOnly and Secure Cookie
Having HTTPOnly and Secure in HTTP response header can help to protect your web applications from cross-site scripting and session manipulation attacks. There are two ways to configure HTTPOnly Secure Cookie Attribute in Nginx. Continue reading
Dec 05 2017
The target principal name is incorrect. Cannot generate SSPI context.
It is a good practice to use a domain or service account to run the SQL service.
However, once you do the right thing and change the SQL Service account, you may start getting the following error message when attempting to connect to the sql server:
“The target principal name is incorrect. Cannot generate SSPI context.” Continue reading
Nov 28 2017
Apache SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
For Apache error message is:
[Tue Jan 23 12:51:37 2017] [error] Unable to configure RSA server private key
[Tue Jan 23 12:51:37 2017] [error] SSL Library Error: 185073780 error:0B080074:
x509 certificate routines:X509_check_private_key:key values mismatch
Nov 28 2017
nginx SSL error key values mismatch
The error
nginx SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
can happen for a chain of certificates merged in one .crt file. The reason is that nginx tries to apply a private key to the first certificate in a crt file. nginx needs that the first certificate in a .crt file would be a server certificate. Thus the correct order in a .crt file will be the following: Continue reading
Nov 15 2017
Fail2ban installation and configuration on CentOS
In this article I’ll describe how to protect Asterisk from hacking attempts with Fail2ban in CentOS Linux. Fail2Ban is a standard Linux tool used to scan log files and then block IP’s found in those log files using iptables. Fail2ban depends completely on the application (in this case Asterisk) to detect any intrusion/failure and log the user data, upon which fail2ban can then act. Fail2ban does not provide any type of intrusion detection, hack detection, etc., it depends completely on Asterisk to do that.
Nov 11 2017
How to generate a FAX compatible multi-page TIFF from a PDF
This is an excellent question, as a reliable answer is amazingly hard to find on the Internet. Most advice works for some PDF files, but not for others. The following commands appear to work OK for any PDF file. If you can find PDF files for which these commands fail, please report this.
Ghostscript is the key tool for converting PDF files to FAX compatible TIFF files. You may see other programs being used for this job, but behind the scenes they usually use Ghostscript to do the hard work. Continue reading