Archive with tar excluding certain files/folders
Posted by Cătălin on Wed, 26 Oct 2016Here is how to run the tar command with the --exclude functionality
Here is how to run the tar command with the --exclude functionality tar -czvf backup.tar.gz /path/site.com --exclude='/path/site.com/uploads'
Read More...code
Find files containing specific text on Linux?
Posted by Cătălin on Mon, 24 Oct 2016How to find all files containing specific text on Linux?
How to find all files containing specific text on Linux? grep -rnw '/path/to/folder/' -e "string"
Read More...code
Linux - How to fix “Read-only file system”?
Posted by Cătălin on Thu, 6 Oct 2016Read the full article by clicking the title
# /etc/init.d/apache2 start Starting web server: apache2(30)Read-only file system: apache2: could not open error log file /var/log/apache2/error.log. Unable to open logs Action 'start' failed. The...
Read More...code
Resolving Finder Problems in OS X 10.9.5 - OS X
Posted by Cătălin on Mon, 29 Aug 2016Resolving Finder Problems in OS X 10.9.5 - OS X
Open terminal and paste this line: rm ~/Library/Preferences/com.apple.finder.plist && killall -HUP Finder
Read More...code
Let's Encrypt plugin for cPanel/WHM
Posted by Cătălin on Wed, 20 Apr 2016Let's Encrypt plugin for cPanel/WHM
This is a cPanel/WHM plugin for the Let's Encrypt client. This plugin uses Perl and the WHM API, and requires a server running cPanel and WHM on it. /usr/local/cpanel/3rdparty/bin/git clone https://github...
Read More...code
Authentication with .htpasswd On Mac OS X
Posted by Cătălin on Mon, 1 Jun 2015Authentication with .htpasswd On Mac OS X
Open Terminal and type: $ htpasswd -c /www/domain.com/.htpasswd yourusername After running the command it will ask for your password. Create a .htaccess file at the directory you want to...
Read More...code