How to merge home and root partitions on Centos 7

Sometimes while provisioning server from an image causes home partition gets assigned with  some partition which you don't want & yoiu want to merge root & home altogether.

Here is how you can do it:
[root@navicosoft-854 ~]# lsblk NAME                                             MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT sda                                                8:0    0 465.8G  0 disk ├─sda1                                             8:1    0     1G  0 part /boot └─sda2                                             8:2    0 464.8G  0 part   ├─centos_navicosoft--user-root                        253:0    0    50G  0 lvm  /   ├─centos_navicosoft--user-swap                        253:1    0  31.4G  0 lvm  [SWAP]   └─centos_navicosoft--user-home                        253:2    0 383.3G  0 lvm  /home sdb                                                8:16   0 931.5G  0 disk sdc                                                8:32   0 465.8G  0 disk ├─vg2-vsv1003--d7ukx3rejw5mmq8i--q6ltara…

[SOLVED ]Magento 2.x Apache htaccess IfVersion perhaps misspelled - Internal Server error


I encountered the following error with apache 2.4 & cloudlinux running along with CPanel while installing Magento 2.x

[Tue Mar 27 15:14:41.469355 2018] [core:alert] [pid 87038:tid 140477005281024] [client] /home/xxxxxx/public_html/.htaccess: Invalid command '<IfVersion', perhaps misspelled or defined by a module not included in the server configuration, referer:

Actual error was internal server error on the server which was fixed using the following solution:
Internal server error was occurring due to a missing Apache module_version so I let it be installed using the following command:

yum install ea-apache24-mod_version

And the issue got fixed.

[SOLVED] 2Checkout INS problem with WHMCS - Call back notification not Working

We had an issue with 2Checkout notifications with WHMCS, really tried to fix it but in vain. When we contacted WHMCS, they responded as below:

Hello, Thank you for coming back to me here. This is most strange. I have checked and confirm the callback URL is accessing and returns a 200 response: [root@alex ~]# curl -X HEAD -i callback/tco.php HTTP/1.1 200 OK Date: Tue, 27 Feb 2018 12:58:31 GMT Server: Apache X-Powered-By: PHP/5.6.33 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Set-Cookie: WHMCSMMsXNw2HK4x5=eaun73461hucpn27cu5soec3f7; path=/; secure; HttpOn …

Redirection error Nginx + Varnish Solution - Solved

I recently enabled HTTPS on this site and wanted to use a 301 redirect in order to correctly re-route guests from HTTP to HTTPS (HTTP to SSL/TLS). I originally performed all of my rewrites in Apache which acts as my backend. While Apache handled the typical non-www to www redirects with ease, it created a redirect loop when attempting to redirect users from HTTP to HTTPS. I decided to let Varnish Cache 4 rather than the Apache backend handle the redirect. The documentation on the on the Varnish site is for Varnish 3 which is not compatible for Varnish 4 as of this writing: subvcl_recv{if(("^(?i)"||"^(?i)")&&req.http.X-Forwarded-Proto!~"(?i)https"){setreq.http.x-Redir-Url=""+req.url;error750req.http.x-Redir-Url;}}subvcl_error{if(obj.status==750){setobj.http.Location=obj.response;setobj.status=302;return(deliver);} After some research, I found a redirect exampl…

Reduce TTFB to less than a second with NGINX + FAST-CGI

Speed up website response times with nginx The why, when, and how of using nginx to cache a CMS's output. Prior to worrying about nginx... Nginx can't do much to help make a slow design and inefficient front-end code feel fast. A lot of what makes a web page fast or slow is down to design considerations and front end techniques. To that end I've so far implemented the following with my new website: Used a performance conscious design.Kept the core CSS relatively lean (32Kb before gzip).Minified the JS and CSS.Used Gzip to compress all appropriate files over the wire.Set appropriate cache headers for all content types.Used SPDY3 instead of HTTP1.Created image assets optimised via ImageAlpha and ImageOptim.Ensured that JS, CSS, and fonts are loaded asynchronously. The goal is to minimise the amount of 'stuff' needed on a page, and to stop any of that stuff from blocking page render. I do have a couple of things that are not quite optimal: I load three font files, whic…