Friday, November 7, 2014

A perfect idea when migrating a website from one server to another ;)

I listed one of the brilliant ideas that explains on the exact step that we should consider in moving a website from one server to another. I took this idea from Liquid Web so it is also my honour to give due credit to them. I documented this one to help my fellow developers as well analyse on why a site did not work to the destination server and it was perfectly working from the source server. ;)

1. The first thing we will do upon starting your migration is to lower all the DNS TTL values (Time to Live - a directive which informs the internet at large how often to check your DNS information) of all your hosted domains. This will allow us to minimize the downtime caused by a migration. The TTL value change will usually take about 24 hours to propagate throughout the internet. For more information, please view http://wikipedia.org/wiki/Time_to_live.


2. After the TTL's have been lowered, we will begin to match up all your software versions. The software we version match includes Apache, MySQL, and PHP, as well as their associated modules.


3. We will then begin moving your data from your old server to the new one. The data moved will consist of all accounts, user home directories, databases, and email. Your sites will remain online during this time.


4. Once your data has been migrated, and all your accounts have been restored, your migration specialist will ask you to look over the sites located on your new LiquidWeb Server. This is done either by visiting the site via IP address, or better, by modifying the hosts file on your home/office computer (you will be provided further instructions for testing at this time.) Please make sure that you test your sites thoroughly (including adding and editing pages and posts, leaving test comments, following links, and ensuring any custom forms or applications are working properly) before letting us know that you are ready to move on to the next step. This helps to ensure that your sites will work correctly when they go live.


5. After looking over your sites and letting your migration specialist know that everything is functioning properly, we will schedule a time and date for your final sync. During the final sync we will shut down several processes on your old server (Apache, email, cPanel) and copy any changed files, mail, or databases. This sync absolutely must be scheduled in advance as our schedule fills up quickly and we will likely not have an open time slot unless it has been reserved.


6. While the final sync is in progress we will change the DNS zone files on your old server to point to your new server, if the DNS is hosted locally. During the final sync you will experience some downtime, the duration of which will depend upon how many files are being moved, how much data is in those files, and how much of the content has been modified since the last data transfer.


7. Once the final sync is complete, we will ask you to once again check over your sites. If everything looks good, then you can change your DNS name server IPs at your registrar (if applicable,) and the migration will be complete.

During the testing phase, here is also a great tutorial on how to do it:

Here is a tutorial that explains how to edit your hosts file:

http://kb.liquidweb.com/dns-hosts-file/

The process of editing your hosts file is as simple as adding a few lines to a file through a text editor. What this will do is tell your browser what IP address you want to load a domain from instead of looking it up from a DNS server. Here are a few youtube videos that will walk you through setting up your hosts file:

For Windows 8:
https://www.youtube.com/watch?v=6HtODhWg_YA

For Windows 7:
http://youtu.be/psQW6GqM444?t=4s

For Mac OSX:
https://www.youtube.com/watch?v=GmEwA0XMCm8

* Please note: If you are using OS X Mavericks you will need to use `dscacheutil -flushcache; sudo killall -HUP mDNSResponder` to flush your DNS.

Another good resource for editing your hosts file, with pictures, is available here:
http://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/

Sunday, May 18, 2014

iPage and FatCow

iPage and FatCow have the same control panel interface. Please check their main page screenshots below:

This is FatCow control cpanel.



This is also the iPage.com cpanel.



How to transfer your Wordpress Site from one host to another with a different domain name?

Transferring a WordPress site can be tricky sometime especially if you are new to this stuff. Here are the steps that I can suggest to make your work pretty simple and fast.

1. From the origin host, back up your website files and database.
-The fastest way to backup up your files is to compress the file from the file manager.

2. Go to the new host and make sure you should know where your new domain/subdomain is currently pointed at (the ftp directory where this pointed at). Normally you can check this by going to Domain and check where this domain is pointed at. Upload a test index file to the directory and check if that domain/subdomain is really pointing to it.

3. Once you are sure that the domain/subdomain is pointing to that path, then it is now the time to import your zip file (website files)
-You can unzip the file pressing the unzip button to uncompress it. This can be easily be done using the FTP manager in the regular cpanel.
-However if you are using fatcow or ipage, you can uncompress this zip file under "Additional tools > Archive Gateway".


4. Create a new mySQL database file and import your SQL file into it.

5. Go to your file manager, locate the directory where you uploaded the your uncompressed file and look into this file wp-config.php and edit the database details (username, host and password).
-Most of the cpanel use "localhost" for the hostname/servername however there are some hosting companies require you to use their specified hostname. Fatcow for example use this hostname "username.fatcowmysql.com "

6. Open a new browser and login to your WP site.
Example: http://new-domain.com/wp-admin

7. Notice that when you login, it will still redirect to the old domain. Example: http://old-domain.com/wp-admin

8. To fix this, you need to go to your cpanel and login to your phpmyadmin.
-Once you are inside the phpmyadmin, look for wp_options and click browse
-Under the option_value, you can see a big white box, change the URL information to the new address. Example: http://new-domain.com
-Verify this is correct and click Go to save the information.


9. Open a new browser, clear cache and check your site again.
-Go to http://new-domain.com/wp-admin
-Once you are login to WP dashboard go to Settings > General. And check if the WP site URL is now pointing to the new domain. Update the site address as well and then save it.

10. Your site now should be completely migrated to the new server :)

Friday, May 16, 2014

Aweber Single Opt-in and Double Opt-in

If you already created your form (list) using Aweber, you should have two options on how your visitors subscribe your campaign. We call them Single Opt-In and Double Opt-In. But what is the difference between the two?

Email addresses on a single opt-in list are not confirmed. Anybody can submit anybody's address to the list, and it will be there until it is unsubscribed. Here is how to set up single opt-in in Aweber.



On a double opt-in list, all email address must be confirmed before they are added. A request for confirmation is sent to the submitted address and the address owner must take some action to confirm that she is the owner of the email address, the address is working and she indeed wants to subscribe. Here is how to set up double opt-in in Aweber.



Noticed that in Aweber you only need to turn ON the toggle button to set double opt-in, otherwise toggle it OFF for single opt-in.

Friday, May 9, 2014

How to install SSL certificate into your WordPress website's domain and subdomains?

Most of the SSL companies nowadays offer a one click installation of their SSL certificates. However, besides of this easy installation process, there are still content mixed up when viewing the secure website online. More complicated if you are using a CMS. Here we focus more on how to setup  SSL certificate in your Wordpress CMS website. 

Here are some issues that may come up if you did not setup your SSL properly into your website:

 
1. It will not display the padlock, instead it will display the exclamation point !

A properly setup SSL should display the security padlock and it should look like this:


2. The website content will not display properly, some missing content and links might also happen.

Here are some of the pointers that you need to consider in installing SSL certificate into your WordPress website's domain and subdomains.

1. Make sure you installed properly the SSL certificate into your domain name. For instructions on how to do this, please refer to your SSL provider.

Note: Do not use wildcard ssl and remove wildcard subdomain
-Wildcard subdomain will look like this [*.yourdomain.com]
-Do not also setup your SSL certificate on this subdomain format[*.yourdomain.com]
-Wildcards will create conflict to website content and the SSL.


2. Go to Settings > General and make sure the following fields are using the normal URLS:





3. Click on Plugins > Add New. Then install the plugin called "WordPress HTTPS (SSL)"


4. After you installed it click on HTTPS at the left hand side. Check the following:
-SSL Host: this should be the exact domain/subdomain that you had installed into your SSL certificate.
-Domain Mapping: you can redirect a domain name here from your normal site to your https site. Example: http://www.domain.com TO https://www.domain.com


5. Preview the website now and notice that the homepage is still showing the normal site. Go to that page and make sure to check the following boxes below and save it. The other pages should display the https site, you don't need to check them.



6.Wait for 2-3 minutes and check the website again, and you're done. :)

Wednesday, April 30, 2014

The difference between WHM and cPanel

The Web Host Manager (WHM) is the account management panel that allows the hosting provider to manage their customers' accounts. Creating new accounts and adjusting the limits for an account are just two examples of tasks that would be performed in WHM.

cPanel is the site management panel where each individual account holder controls the settings for their particular account. Creating e-mail accounts and managing their files for a particular domain, for example, would be tasks performed in cPanel rather than WHM. 



How to create a new cpanel account in WHM?


A version of cPanel for Microsoft Windows exists, titled Enkompass. As of October 15, 2011, Enkompass was offered free, as development for the product had been slowed. As of February 2014, Enkompass was declared EOL, with version 3 remaining available for download, but without further development or support. -wiki

Thursday, March 27, 2014

What plugins I used in my Wordpress Projects and Why I used them?

A plugin is a piece of software that acts as an add-on to a web browser and gives the browser additional functionality. Plugins can allow a web browser to display additional content it was not originally designed to display.

In Wordpress, plugins can extend WordPress powered websites to do almost anything you can imagine. In the WP directory you can find, download, rate, and comment on all the best plugins the WordPress community has to offer.

The key to effective use of plugins is to deploy them only from properly vetted sources, and only when necessary. Plugins should solve a specific problem or provide an essential function. They should not indulge our vanity or our desire for a “shiny new object”.

In this post, I listed the different plugins that I normally used in my wordpress projects.  You may suggest a plugin that you may think useful, I am open for it. Just let me know.

1. Advanced Excerpt
-Keeps HTML markup in the excerpt (and you get to choose which tags are included)
-Trims the excerpt to a given length using either character count or word count

2. BackupBuddy
-Database or Full Backups
-Send your backups (individually or on a schedule) to offsite storage destinations like Amazon S3, Dropbox, Rackspace Cloud, FTP or email.

3. Better WP Security
-New name is iThemes Security (formerly Better WP Security)
-Changes the URLs for WordPress dashboard areas including login, admin and more

4.Contact Form 7
-Manage multiple contact forms, plus you can customize the form and the mail contents flexibly with simple markup.

5. Dagon Design Sitemap Generator
-This plugin creates a sitemap for your WordPress powered site.
-This is not just another XML sitemap plugin, but rather a true sitemap generator which is highly customizable from its own options page in the WordPress admin panel.

6. Enable Media Replace
-This plugin allows you to replace a file in your media library by uploading a new file in its place.
-No more deleting, renaming and re-uploading files!

7. Google Analytics for WordPress
-This plugin uses the asynchronous Google Analytics tracking code, the fastest and most reliable tracking code Google Analytics offers.
-Automatic Google Analytics site speed tracking.

8. Jetpack by WordPress.com
-Supercharges your self-hosted WordPress site with the awesome cloud power of WordPress.com.

9. Maintenance Mode
-Adds a splash page to your site that lets visitors know your site is down for maintenance.
-Full access to the back- & front-end is optional.

10. Obfuscate E-mail
-Deter e-mail harvesting spammers, while retaining the appearance and functionality of hyperlinks.
-"Obfuscation" simply means that techniques are employed to modify e-mail address strings that appear on your site in such a way that bots scraping your site are unable to identify those addresses.

11. PHPEnkoder
-Encodes mailto: links and e-mail addresses with JavaScript to stifle webcrawlers.
-It is used to display text in a way that users can see and bots can't.

12. Really Simple CAPTCHA
-Really Simple CAPTCHA does not work alone and is intended to work with other plugins.
-It is originally created for Contact Form 7, however, you can use it with your own plugin.

13. ShareThis
-Features Social Analytics, CopyNShare, Open Graph Sharing, and the Hovering Bar!
-Use small or large buttons, add counters or use one of the Sharing Bars

14. Simply Exclude
-Provides an interface to selectively exclude/include Post Types, Taxonomies and Authors 4 actions used by WordPress.

15. Subscribe to Comments Reloaded
-Allows commenters to sign up for e-mail notifications of subsequent replies.

16. TinyMCE Advanced
-This will let you add, remove and arrange the buttons that are shown on the Visual Editor toolbar.
-Enables the advanced features of TinyMCE, the WordPress WYSIWYG editor.

17. W3 Total Cache
-The only WordPress Performance Optimization (WPO) framework; designed to improve user experience and page speed.
-Improves the user experience of your site by increasing server performance, reducing the download times and providing transparent content delivery network (CDN) integration.

18. Wordfence Security
- is a free enterprise class security plugin that includes a firewall, anti-virus scanning, cellphone sign-in (two factor authentication), malicious URL scanning and live traffic including crawlers.

19.WordPress SEO
-Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the WordPress SEO plugin by Yoast.

20.WP-Optimize
-This simple but effective plugin allows you to clean up your WordPress database and optimize it without phpMyAdmin.

21. WP-Testimonials
-The plugin includes the option to display a random testimonial in your sidebar using PHP code or the built-in widget.


22. WP Mail SMTP
-Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage the settings.