There are a lot of ways to keep files backed up and safe. Today we will explore the option of using dropbox with its API functions. For the purpouse of this tutorial we will asume you already have a dropbox account however, if you do not then sign up here.
To start off we will download the dropbox-uploader created by andreafabrizi to our server.
git clone https://github.com/andreafabrizi/Dropbox-Uploader.git
When you run a website, especially a CMS driven one – there are always opertunistic script kiddies looking to take advantage of known loopholes in your setup. There are a lot of ways to increase the security on your server and today we will discuss how to monitor your web folder for unexpected changes.
First up we are going to execute this command in your terminal:
find /var/www -type f -mtime -1 -print
That should print out all the files that have been modified or created in the last 24 hours in the /var/www/ directory.
Provided that works we will now make this execute daily and send you an email of the summary.
Navigate to your home folder and create a file called checkWebsiteFiles. (more…)
Like any third party plugin, the selenium package maintainers require some time before the code is readily workable with the latest version of Firefox. As a result it is good practice to install an older, standalone version of Firefox in Ubunutu for Selenium’s use. It doesn’t take long and this will get you up and running in no time.
Note: This also solves problems when you are seeing the following error
“version xul24.0 not defined in file libxul.so”
– or any xul version (example follows)
Sometimes you need to forward traffic from an old server to a new server until the DNS changes propagate. In this case there are two very simple commands to execute that will allow you to do so.
Forward the traffic
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 123.333.112.153
Mask the traffic
sudo iptables -t nat -A POSTROUTING -p tcp -d 123.333.112.153 --dport 80 -j MASQUERADE
If you want to delete the rules, simply replace the -A with -D
If you have been caught out trying to update and ended up changing all your folder and file permissions here is a simple sum up of the correct default permissions and how to set them on a linux OS.
ALL FILES should have permissions set to 644
ALL DIRECTORIES (folders) should have permissions set to 755
Having seen this question asked a lot, this tutorial will focus on creating custom templates for articles in Joomla where the article is linked too via a menu. The problem: Intuitively, most people expect that when you assign an article an alternative layout, it changes the way that article would appear. Sadly, it does not work that way if you link to that article through a menu on your page. (more…)
If you are using tunlr for your DNS redirects and you have fox.com or theplatform.com listed in your Additional DNSMasq Options you will note that CBC.ca does not work. This is due to the fact that both CBC.ca and fox.com use theplatform.com to host their content. As a result, ThePlatform picks up the Tunlr DNS and blocks CBC.ca content stating – “content not available”. (more…)
Keeping your server secure and up to date are two extremely important aspects of running your own setup. Arguably, enabling FTP services on your machine leaves you vulnerable to attacks – so if you don’t really need FTP other than to update WordPress and install plugins then keep reading.
SSH2 is rather simple to install on Ubuntu, simply run the following
Install SSH2 and PHP mod: sudo apt-get install libssh2-1-dev libssh2-php
Or for 16.04 you will need to replace libssh2-php with:
sudo apt-get install libssh2-1 php-ssh2 -y
When you first set up a server with multiple domains coming in, redirecting your incoming traffic to the correct location can be somewhat puzzling. Thankfully, Apache makes it rather simple to set up redirecting incoming requests based on the incoming URL.