Author: sandbox

How to Shorten an URL with Lots of Google Analytics/UTM Parameters

Tracking where visitors are coming from is very valuable. When you know where the traffic is coming from you can decide if you should invest more in that particular channel. I am assuming that you’ve read this great article about UTM parameters: https://blog.kissmetrics.com/how-to-use-utm-parameters/ We are going to shorten the URLs with lots of utm parameters a bit. The solution will require a web hosting with Apache web server. The .htaccess rules should be easily adapted for nginx web server and they have to be appended to the site’s virtual host file. I prefer not to use external shortening services regardless...

Read More

Steps How to Migrate from a Staging WordPress Site to Live WordPress Site

There are several steps that need to be performed before a proper WordPress site migration. All steps are important so please read the whole article first and then proceed with the steps. If you have ideas how to improve this process let us know. Actions to be done on the existing (live) server 1. Backups (files + database) Make sure you have several & reliable backups (files + database). I recommend that you create multiple backups of your old site using several backup/migration plugins such as these ones just in case. https://wordpress.org/plugins/all-in-one-wp-migration/ https://wordpress.org/plugins/duplicator/ 2) Brand new database Create a...

Read More

How to fix Ubuntu/Linux Error: I have no name!@

When I was doing some tests on the new servers that will be running the code for WPMove.org – free WordPress migration service some weird error messages started showing up: Ubuntu Error: I have no name!@ sudo: unable to stat /etc/sudoers: Permission denied sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin bash: /etc/bash.bashrc: Permission denied This was interesting and annoying at the same time. I have using linux for a long time and haven’t seen this message. Actually, I did some restoring but then thought that something may have been broken or not good with the OS so I reinstalled the operation system (Ubuntu). It turned out that some piece of code creates folders if they don’t exist but set’s permissions to 0770. The server configurator has modified the /etc folder’s permissions to 0770 and this blocks access to /etc/passwd , /etc/sudoers and many more.   Solution chmod 0755 /etc Related https://superuser.com/questions/589036/how-to-get-rid-of-i-have-no-name/589138 https://apple.stackexchange.com/questions/43940/when-i-open-terminal-i-get-an-i-have-no-name-prompt...

Read More

How to Generate a Free SSL Certificate using Let’s Encrypt

If you have your own dedicated or virtual server you most likely have an administrative access which is awesome & dangerous all at the same time. We’ll use a service called Let’s Encrypt to generate the SSL certificate for a selected domain. There are several things to keep in mind. The Let’s Encrypt certificates are free Let’s Encrypt certificates expire in 90 days You will get a notification when the certificate is due for renewal (the email is supplied when you request the SSL request). It’s good to use –dry-run initially because if there are too many errors Let’s...

Read More