How to add $PATH variable value to Debian
Posted by Cătălin on Mon, 2 Sep 2019How to place composer's system-wide vendor bin directory in your $PATH, so the laravel executable can be located by your system.
To set the $PATH permanently, set the path in your startup file. This directory exists in different locations based on your operating system; however, here is how you can do it in Debian. Edit the...
Read More...code
Bash Script Check is Apache is Down
Posted by Cătălin on Wed, 25 Apr 2018Bash 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...code
Install mod_pagespeed on EasyApache4
Posted by Cătălin on Sat, 14 Apr 2018How 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...code
Dental Fonts
Posted by Cătălin on Tue, 13 Feb 2018SVG 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...code
.htaccess redirect examples
Posted by Cătălin on Fri, 19 Jan 2018Common .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...code