Change mysql data directory on cPanel| Safely move mysql data directory – Centos Date Posted: 05-05-2018 This post explains on how to move or setup different data directory for mysql application. If there is no database exists, skip the first step. This post deals with moving data directory to /home/mysql… Continue Reading Change mysql data directory on cPanel| Safely move mysql data directory – Centos

Clear Journal logs on Linux host Date Posted: 29-04-2018 We ran out of disk space on our server and /var consumes more disk space. On checking further,  /var/log/journal consumes more disk space. The safest way to remove unnecessary entries via journalctl journalctl –vacuum-size=128M Now, verify journalctl. journalctl –verify Edit SystemMaxuse on /etc/systemd/journald.conf vi /etc/systemd/journald.conf SystemMaxUse=128M  

(13)Permission denied: AH00957: HTTP: attempt to connect to failed Date Posted: 28-04-2018 We setup a redirection using proxypass to different port on apache configuration. It failed with an error which mentioned in title of the post. Resolution: Selinux would be causing the issue. Here is the fix that we need… Continue Reading (13)Permission denied: AH00957: HTTP: attempt to connect to failed

Block wp-login.php based on country through mod_security Date Posted: 17-02-2018 WordPress is popular CMS which receives large number of DDOS login attempts generally. As a system administrator or site owner, if we dont feel that the traffic is not genuine from some other country, we can restrict wp-login.php   only from… Continue Reading Block wp-login.php based on country through mod_security

BCC to all emails in exim cPanel|Copy all outgoing emails on exim Date posted: 14-02-2018 In this post, we will explain how to keep all outgoing Emails to particular mail account. Note that the email box which we will be setup will receive all the mails irrespective of to address.… Continue Reading BCC to all emails in exim cPanel|Copy all outgoing emails on exim

Country based redirection on nginx behind load balancer|Geo Location Based redirection Date Posted: 19-12-2017 There are scenario where we want to setup country based redirection depends on visitor. In this post, we will explain on how to setup country based redirection on nginx which is behind load balancer. Assumption: Nginx… Continue Reading Country based redirection on nginx behind load balancer|Geo Location Based redirection

lfd on hostname High 5 minute load average alert| Increase load average threshold on csf Date posted: 13-11-2017 Consider a scenario where we have multiple cores and by default lfd will send notification incase if the server load goes more than 5. Csf doesn’t detect the number of cores and… Continue Reading lfd on hostname High 5 minute load average alert| Increase load average threshold on csf

L1aravel 5.5 installation on VestaCP domain Date posted: 31-10-2017 Assumptions:- We assume you have the following server setup VestaCP Ubuntu 16.04 Nginx PHP >= 7.0.0 PHP modules OpenSSL, xml, PDO, Tokenizer and mbstring Installing Laravel Install composer apt-get install composer Download the Laravel installer using Composer: composer global require “laravel/installer”… Continue Reading Laravel installation on VestaCP account

PDFlib support for PHP7.0 on Ubuntu 16.04 Date posted: 16-10-2017 Task: Enable PDF for PHP7.0 Based on your server architecture download PDFlib software from PDFlib site. cd /usr/local/src wget https://www.pdflib.com/binaries/PDFlib/911/PDFlib-9.1.1p3-Linux-x86_64-php.tar.gz tar -xvf PDFlib-9.1.1p3-Linux-x86_64-php.tar.gz cd PDFlib-9.1.1p3-Linux-x86_64-php/ Find PHP extension_dir # php -ini | grep extension_dir extension_dir => /usr/lib/php/20151012 => /usr/lib/php/20151012 copy… Continue Reading PDFlib support for PHP7.0 on Ubuntu 16.04

Client denied by server configuration apache 2.4 Date Posted: 12-10-2017 The following error we have seen on the following log after we setup apache server on linux host. Client denied by server configuration apache 2.4 Reason: This error normally occurs if the documentroot is not allowed on virtualhost configuration. Consider,… Continue Reading Client denied by server configuration apache 2.4