Articles

Bash Script Check is Apache is Down

Posted by Cătălin on Wed, 25 Apr 2018

Bash script to check if Apache server is up and running. If server is down, we will do a restart

#!/bin/bash if curl -s --head 'https://your-domain.com/' | grep "200 OK" > /dev/null then echo "Apache server is up!" > /dev/null else echo "Apache server is down!" /etc/init...

Read More...
dental website

Install mod_pagespeed on EasyApache4

Posted by Cătălin on Sat, 14 Apr 2018

How to install google mod_pagespeed on EasyApache4 - WHM/Cpanel

Installation Procedure (CentOS): yum install rpm-build cpio ea-apache24-mod_version wget https://github.com/pagespeed/cpanel/raw/master/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm rpmbuild...

Read More...
dental website

Dental Fonts

Posted by Cătălin on Tue, 13 Feb 2018

SVG with JS dental icons based on Font Awesome framework

<head> <script defer src="//assets.market.dental/fonts/md-dental-fonts/md-dental-fonts-1.0.min.js"></script> </head> <body> <i class="md md-veener...

Read More...
dental website

.htaccess redirect examples

Posted by Cătălin on Fri, 19 Jan 2018

Common .htaccess Redirect Examples

#Redirect a single page: Redirect 301 /pagename.php http://www.domain.com/pagename.html #Redirect an entire site: Redirect 301 / http://www.domain.com/ #Redirect an entire site to a sub...

Read More...
dental website

Percentage Calculator

Posted by Cătălin on Sat, 6 Jan 2018

Percentage Calculator

What is % of = % /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof...

Read More...
dental website

WHM & CSF - Gmail SMTP connect () failed error

Posted by Cătălin on Fri, 5 Jan 2018

Gmail SMTP connect () failed error using smtp.gmail.com and 587 port with TLS in cPanel

I solved the Gmail SMTP connect () failed error adding user(s) to CSF: Go to: CSF Firewall Configuration SMTP Settings Whitelist user(s) in variable "SMTP_ALLOWUSER" SMTP_ALLOWUSER: cpanel,user1,user2 ...

Read More...
dental website