Mighil https://mighil.com Minimal. Inbound. Growth. Sat, 22 Sep 2018 07:02:06 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.8 https://mighil.com/wp-content/uploads/2018/09/mg-logo-50x50.png Mighil https://mighil.com 32 32 Fix: your-seo-promotion.com Analytics Spam https://mighil.com/your-seo-promotion-com-spam/ https://mighil.com/your-seo-promotion-com-spam/#comments Fri, 21 Sep 2018 14:24:39 +0000 https://mighil.com/?p=4289 You’re here because the new referral traffic from your-seo-promotion.com is spamming your Google Analytics data. Here’s how to block that single referrer and multiple ... Read more

The post Fix: your-seo-promotion.com Analytics Spam appeared first on Mighil.

]]>
You’re here because the new referral traffic from your-seo-promotion.com is spamming your Google Analytics data. Here’s how to block that single referrer and multiple referrers.

Exclude a single referrer

How to Block your-seo-promotion.com Analytics Spam (September 2018)

  1. Sign in to Google Analytics.
  2. Click Admin, and navigate to the view in which you want to create the filter.
  3. In the VIEW column, click Filters.
  4. Click + New Filter. (If you can’t see this button, you do not have the necessary permission.)
  5. Select Create new Filter.
  6. Enter a name for the filter. Let’s name it your-seo-promotion.com.
  7. Set the Filter Type to Custom.
  8. Click the Select filter type drop-down menu and select Exclude.
  9. Now Set the Filter field to Campaign Source .
  10. Enter the Filter Pattern. In this case, simply add your-seo-promotion.com and click Save

To Exclude multiple referrers

You can use the regular expression in Filter Pattern field to exclude several referring sources.

i.e., If you want to add multiple URLs, make a filter pattern separated by a | (pipeline).

Example:

otherspammysite\.com|.*your-seo-promotion.com\.com

Visit this link to learn more about setting filters in different levels. You may also set the Language Settings Filter and Campaign Referral Path Filter as well.

Good luck!

Need a hand?

Need help optimizing your website analytics, speed and search performance? Connect with me on Facebook.

The post Fix: your-seo-promotion.com Analytics Spam appeared first on Mighil.

]]>
https://mighil.com/your-seo-promotion-com-spam/feed/ 10
The Best Working VPN for China https://mighil.com/best-vpn-for-china/ https://mighil.com/best-vpn-for-china/#respond Tue, 18 Sep 2018 15:06:33 +0000 https://mighil.com/?p=4220 The “best VPN for China that actually works“, this has always been a hot topic among expats in China. Despite ... Read more

The post The Best Working VPN for China appeared first on Mighil.

]]>
The “best VPN for China that actually works“, this has always been a hot topic among expats in China. Despite the crackdowns and restrictions, there are a lot of VPN providers who’re trying to sell their services for expats in China. To be honest, there’s a bunch of mediocre VPN providers out there.

Image: South China Morning Post

Finding the best from Google is not an easy job because of all the “promoted” content you come across. You need to put a lot of time and effort to research and find the best reliable VPN services for China.

Backstory, VPN for China

Having stayed for more than three years in China, I know what works and what doesn’t when it comes to climbing over the great firewall of China.

I’ve tried multiple VPN providers and even wrote a few tutorials on how to set up your SOCKS5 proxies for personal use. Without further ado, let’s look at the best working for VPN for China.

Note:

  • I’ve included a trusted Shadowsocks service provider as well.
  • These are my honest recommendations as of September 2018.

ExpressVPN

Best Working VPN for China
Stream Netflix, Visit Blocked Sites Including Google. Get Express VPN Now

You must’ve heard a lot about them, right? But there are several solid reasons why you should go with ExpressVPN instead of choosing their competitor.

Major Features of ExpressVPN

Let’s look at why ExpressVPN turns out to be the best VPN for China.

Uptime

Working VPN for China 2018

ExpressVPN has the best up-time comparing to its competitors. Most of their optimized Asian servers are available round the clock.

AES-256 Encryption

Yes, encryption is an essential factor while looking for the best VPN provider. AES ( trusted by security experts ) is a secure encryption algorithm used in symmetric key cryptography. Additionally, the company uses an RSA-4096 handshake and SHA-512 hash message authentication code, along with PFS. Meaning, you’re in good hands.

OpenVPN and other protocols

ExpressVPN recommends you protocols and servers based on your location and connection. The company also lets you choose the protocols manually in case you know what you’re doing.

 Stream/Unblock Netflix

Important feature. A lot of expats in China has a Netflix account and want to stream their favorite TV shows and movies online or on the go. ExpressVPN’s USA, UK, Canada, Hong Kong, and Taiwan servers are optimized for streaming Netflix.

Dedicated Apps

ExpressVPN has dedicated apps for MacOS, Windows, iOS, Android, routers, and Linux. Their knowledge base comes with adequately documented guides as well.


click-on-button  vpn-on
ExpressVPN on MacOS.


Furthermore, the company offers a “limited” free trial as well. You should try the full-featured version of ExpressVPN “risk-free” for 30 days. Not happy? You’ll get a full refund within 30 days, no questions asked.

Pros

  • Reliable, ExpressVPN is a trusted brand.
  • Few optimized servers for streaming Netflix.
  • Dedicated Apps

Con

  • One ExpressVPN subscription only covers three devices of any type.

CLICK HERE TO SIGN-UP WITH EXPRESSVPN.

SocketPro

VPN is not your thing? You prefer proxy servers to stream Netflix and access Google? Give SocketPro a try.

So what’s SocketPro?

SocketPro is essentially a ShadowsocksR proxy service provider that offers cheap easy to use proxy servers which lets you unblock websites and climb the GFW. The whereabouts of SocketPro team are anonymous because of the nature of the service they provide.

Socketpro
Fast, Easy to Use Netflix Optimized. Get SocketPro Now.

I’ve been using their service for almost two years. So, don’t worry about the anonymity. It’s for their own good to survive in China.

Shadowsocks vs. ShadowsocksR

Shadowsocks is an open source SOCKS5 proxy which, according to their official site, is designed to protect your internet traffic.

ShadowsocksR is a fork of the original Shadowsocks project, claimed to be superior in terms of security and stability.

Here are my blog posts on how to manually setup Shadowsocks and ShadowsocksR.

  1. Setup A ShadowsocksR Server On Amazon EC2
  2. Setup A Shadowsocks Server on DigitalOcean

Why ShadowsocksR instead of a VPN?

A conventional VPN protocol creates a network that slows down Chinese websites, which can be annoying when you’re using Taobao, WeChat, JD.com, etc.

On the other hand, Shadowsocks has a Global Mode and Auto Mode.

Best Working Shadowsocks Service for China
Get SocketPro for All The Devices.

The Global Mode acts similar to a VPN connection whereas the auto settings (Auto mode by PAC) makes sure you can access Chinese website faster, without using a proxy.

Major features of SocketPro

SockePro is packed with cool features as well. They’ve almost 8000+ active users and 90 node servers.

Speed

They use a modern socks5 protocol to transfer your data, which is faster compared to a traditional VPN.

Cross-platform support

Unlike ExpressVPN, SocketPro DO NOT limit your connection, meaning you can connect all your device at the same time.

Secure

Your connection is secured with 256-bit encryption to protect your data from prying eyes.

CLICK HERE TO SIGN-UP WITH SOCKETPRO.

Pros

  • Dirt Cheap and fast.
  • Unlimited bandwidth and speed.
  • Few optimized servers for streaming Netflix.

Cons

  • Monthly plans are okay, but the yearly plan comes with better servers.
  • No dedicated app for iOS, you should install a 3rd party app.

The post The Best Working VPN for China appeared first on Mighil.

]]>
https://mighil.com/best-vpn-for-china/feed/ 0
Cloudways: An Honest Review https://mighil.com/cloudways-discount-coupon-code-review/ https://mighil.com/cloudways-discount-coupon-code-review/#respond Fri, 14 Sep 2018 12:57:26 +0000 https://mighil.com/?p=4000 Update: Exclusive Cloudways Coupon Code 2018 – FLAT 20% off!! One more reason to start or migrate your WordPress site ... Read more

The post Cloudways: An Honest Review appeared first on Mighil.

]]>
Update: Exclusive Cloudways Coupon Code 2018 – FLAT 20% off!!

Image result for good news everyone

One more reason to start or migrate your WordPress site to Cloudways. I’ve teamed up with Cloudways to bring you an excellent and exclusive deal!


COUPON CODE: MIGHIL

Use coupon code to get a FLAT 20% discount on the first invoice. Offer applies to all plans.


This one’s a killer Cloudways promo code if you’re selecting a small or medium-sized server to host your WordPress site.

Click here to sign-up & use the promo code MIGHIL.

This Cloudways promo powered by Mighil.com is a limited time offer valid for three months starting from September 19, 2018. Hurry up and take advantage of the best Cloudways coupon for 2018.

How to use the Cloudways Coupon Code

Mighil.com’s exclusive Cloudways coupon code gives you FLAT 20% off on your first invoice independent of the servers you choose. Follow the instructions below to redeem the coupon code and get a fair discount while signing up with Cloudways.

Visit this link to land on the Cloudways sign-up page.

Cloudways Discount 2018
Click on Get Started Free and it’ll lead you to the sign-up form.

Now click on “Got a Promo Code” and fill in MIGHIL

Cloudways Promo Code 2018 Exclusive

Cloudways: An Honest Review by Mighil

New to Cloudways managed cloud web hosting platform? Not sure if it’s the best choice for managing your WordPress site(s)? Read this blog post before investing your time and money on Cloudways.

TLDR; Yes, it is one of the best WordPress hosting platforms. Read the backstory, will you? Then we’ll jump to the review.

Backstory

I’m very picky but straightforward when it comes to recommending stuff to friends and peers. I’ve tested a handful of dedicated Cloud hosting (VPS) services to date. I’ve been a DigitalOcean user for years before switching to BandWagonHOST and NameCheap hosting.

In love with BandWagonHOST

BandWagonHOST is quite cheap, and they provide OpenVZ & KiwiVM based plans. The downside? You need to have intermediate skills in managing virtual private servers. It’s not for the faint-hearted. I loved every bit of managing own server and setting up multiple WordPress sites on BandWagonHOST. It was fun while it lasted.

Leaving BandWagonHOST for NameCheap

I left BandWagonHOST just because the servers were getting slow for the mainland Chinese audience. I hosted a few projects for Chinese clients on BHW, but the performance got worse (even with a Cloudflare CDN). Things were going south, and I needed a quick solution. NameCheap came to the rescue, temporarily. Quite frankly, cPanel isn’t my thing, so I left NameCheap in a few days and got a 100% refund.

Leaving NameCheap for CloudWays

I visited my hometown in India last June for work related reason. Anvar at Mozilor suggested Cloudways and said they’re using Cloudways for years. I never thought of giving it a try since I was quite happy with my highly flexible BandWagonHOST server during that time.

His suggestion came on my mind while researching for a new host. Signed up and tested their service, really liked it, and now I’m with Cloudways.

Cloudways Platform, A Brief Introduction

What is CloudWays?

Unlike the widely used consumer-friendly options like Bluehost, HostGator or Siteground, Cloudways adds the DIY touch to the WordPress hosting scene by bringing together an innovative, scalable, budget-friendly managed hosting platform with rich features and 24x7x365 support. Their newly redesigned website looks sleek and comes with a neat UI.

CloudWays Features

With Cloudways, you can spin up “pay as you go” servers based on DigitalOcean, Vultr, Linode, Amazon AWS or Google Cloud Platform. Apart from that, Cloudways platform comes with handy performance-boosting technologies, including PHP7, Nginx, Redis, Memcached, Varnish, HTTP/2 and add-ons like DNS Made Easy, Rackspace Email, Elastic Email, CloudwaysCDN and more.

Cloudways Pricing

CloudWays Pricing

As you can see, Cloudways is a “Pay As You Go” platform; meaning, you will pay only for the resources you consume. You can either bind a credit card to automate the billing or use PayPal to add funds.

Base Packages

  • DigitalOcean – Starting at $10/month.
  • Linode – Starting at $12/month.
  • Vultr – Starting at $11/month.
  • Google Compute Engine – Starting at $34.17/month.
  • Amazon Web Service – Starting at $36.04/month.

Build A WP Site With Cloudways

3-Day Free Trial

You can Get Started for FREE using a valid email ID or with LinkedIn, GitHub or Google+ accounts. Keep in mind that they’ll ask for a working phone number (not a VoIP or Google Voice number) during registration. Also, note that you have to initiate a chat with customer support to start your 3-day free trial without a credit card.

Cloudways Activation

It took about 15 minutes for Cloudways to review my account. Here’s the screenshot of the conversation I had with Zeeshan at Cloudways.

Cloudways Chat

The customer support team will ask you to provide the email ID and website URL (not mandatory) for initial review. Later, they will send you a confirmation email to activate the account.

CloudWays Activation Email

The whole process was smooth, and you can create a new WordPress application right away for testing. “Need a Hand” button on the right side will open Help Center, which will be a goldmine for beginners to managed hosting.

CloudWays Start New Server

Click LAUNCH NOW after choosing the application and server details.

Why Choose Cloudways for WordPress

The Cloudways platform assures high-speed performance, managed security and expert support.

Above mentioned are the essential factors to look for when you’re purchasing a managed hosting service. Let’s look at the key features.

Server Speed & Performance

I have experience managing servers at a root level. Even though Cloudways doesn’t provide root access, they offer a wide array of performance boosters essential for WordPress applications.

Cloudways High-Speed Performance WordPress

Built-in Advanced Caches

Cloudways provide an optimized stack with ready to use caches including Memcached, Varnish, Nginx, and Redis to deliver expedited responses.

PHP 7 Ready Servers

All Cloudways server are PHP 7.x ready, which is known to be significantly faster than its predecessor.

Cloudways also give you the option to Control Core Services that allow your application(s) to run. You can optimize it now and then if you know what you’re doing.

CloudwaysCDN (New)

Cloudways Add-ons

Cloudways platform now comes with CloudwaysCDN, a new powerful and straightforward service that delivers superior performance and excellent global response times.

It can be integrated quickly and will significantly improve the speed of your WordPress website.

Auto-Healing Managed Cloud Servers

Auto-healing lessens your worries about website crashing or downtime. Cloudways is equipped with auto-healing and comes to site’s rescue.

Free WordPress Cache Plugin

Breeze by Cloudflare

Breeze; the WordPress plugin engineered by Cloudways team offers better WordPress performance boosting comparing to other cache and performance plugins.

Breeze WordPress plugin comes pre-installed on Cloudways.

Redis Support

Enabling Redis improves the performance of databases. Combined with Apache, Nginx, and Varnish; you’re looking at unbeatable performance.

Pre-configured PHP-FPM

PHP-FPM speeds up your website and improves the loading times of your PHP environment.

HTTP/2 Supported Servers (New)

Cloudways servers are HTTP/2 enabled which significantly increases the speed of communication between the web servers and clients.

Managed Security

Security is essential even if you are running a personal website or a professional blog that attracts a fair amount of traffic.

Cloudways platform is equipped with security practices to keep your servers safe.

Dedicated Firewalls

According to the Cloudways, all servers hosted by Cloudways are protected by OS-level firewalls that filter out malicious traffic and keep out the intruders.

1-Click Free SSL Installation

Cloudways platform comes with built-in Let’s Encrypt SSL. It also lets you add your SSL certificates easily with few clicks.

Get A 3-Days Trial for Cloudways

IP Whitelisting

The Cloudways platform lets you create a whitelist of IPs, making it easy to collaborate with networks or regions with unrestricted access to SSH and SFTP.

Regular Security Patching

Cloudflare claims they perform regular OS patches and firmware upgrades on servers. Security patches ensure a robust managed cloud server experience by avoiding vulnerabilities.

Two-Factor Authentication

Two-Factor Authentication (TFA)  adds an extra layer of safety to your Cloudways account.

Adding A WordPress Application

Adding a WordPress application is pretty straightforward on Cloudways.

Visit https://platform.cloudways.com/apps and click on + Add Application button to add a new app to the server.

Cloudways Console

You can set a primary domain, install Let’s Encrypt SSL certificate (including wildcard SSL) and optimize the site afterward. This console is pretty intuitive.

Read this before migrating a Cloudflare-enabled site to Cloudways

Backup, Clone/Staging and Migration

Backup

Cloudways Backup

You can perform an on-demand backup of your server via the console. Cloudways console also has an option to enable Local Backups; this will additionally create a downloadable copy of all the applications present on your server.

Clone App/Create Staging

Cloudways Staging Feature

Cloning/staging is a great beta feature Cloudways providing for its community. Cloudways lets you create staging apps and move data between staging and live applications.

Migration

Cloudways provides a decent migration tool to move the site from your old host to Cloudways platform. I’ve already written an article on this topic. You can read it here if you’re planning to migrate a website with SSL enabled.

Cloudways WordPress Migrator

Download CloudWays WordPress Migrator

Server and App Monitoring

Cloudways Server Monitoring

Cloudways provides performance graphs on various aspects of your server. They have partnered with Newrelic to offer built-in App Monitoring as well.

You can enable New Relic agent in the Services section of the console.

Customer Support

Yes, support should be a priority while choosing a cloud platform for WordPress. You don’t want to end up in the hands of a service provider that doesn’t respond to your queries and concerns promptly.

Cloudways customer support team are the best, period. You can talk to the Customer Success Team via live chat, or submit a ticket through the ticketing system. They’ve recently launched a community website as well.

You can access it here: https://community.cloudways.com/

Their Knowlege Base is well-documented also. Most articles are beginner friendly and reminded me that of NameCheap’s KB articles.

Frequently Asked Questions

How good is Cloudways support?

Their Live Chat Support Team is available 24/7/365 for everyone. You can also create a Support Ticket. If you are an enterprise customer, you may contact sales@cloudways.com.

Do I need a credit card to sign up for a free trial?

No. A credit card is not required. However, you’d only have three days to test the platform.

Can I have servers on separate pricing plans and different cloud providers?

Yes, you can launch multiple servers of the same or different cloud hosting plans and providers. It is entirely up to you.

How many applications can I launch on a single server

There is no restriction on the number of apps you can start on a single server.  However, plan well according to your server specifications.

What if I exceed my bandwidth?

Bandwidth is calculated based on the provider you select.

  • On Amazon and Google servers, bandwidth billing is on demand at all times.
  • Vultr charges $0.02 to $0.05 per GB for additional bandwidth usage (varies with data center region).
  • DigitalOcean charges $0.02 per GB for additional bandwidth usage.

How to cancel Cloudways account?

Cloudways is a “Pay as you go” platform. You can cancel the account by deleting your servers anytime, and you only need to pay for what you’ve used.

Verdict

I am familiar with DigitalOcean, and I love using Cloudways as a platform because it’s flexible and transparent. I can add my clients for billing and even add team members for collaboration.

The platform is quite intuitive so that I can teach my clients’ very basic stuff without taking 100% responsibility for the project.

Cloudways is ideal for professional bloggers and small to medium-sized companies as well. If you are skeptical, go ahead and test the platform for three days.

Goodluck!

Get Started With Cloudways for FREE!

The post Cloudways: An Honest Review appeared first on Mighil.

]]>
https://mighil.com/cloudways-discount-coupon-code-review/feed/ 0
Best PayPal Plugins for WordPress & WooCommerce https://mighil.com/5-best-paypal-plugins-for-wordpress-and-woocommerce/ https://mighil.com/5-best-paypal-plugins-for-wordpress-and-woocommerce/#respond Thu, 13 Sep 2018 17:02:42 +0000 https://mighil.com/?p=3831 PayPal is undoubtedly one of the faster, safer ways to send money and make online payments. Most of the e-commerce websites ... Read more

The post Best PayPal Plugins for WordPress & WooCommerce appeared first on Mighil.

]]>
Affordable Cloud Platform – Run Multiple WP Sites – Get Started for FREE!

PayPal is undoubtedly one of the faster, safer ways to send money and make online payments. Most of the e-commerce websites and online merchants accept PayPal payments.

This blog post is for website owners, merchants and professional bloggers who prefer to receive online payments via PayPal. Without further ado, let’s look at the best PayPal plugins for WordPress sites and WooCommerce store.

Note: I strictly avoided reviewing old WordPress PayPal plugins, and those are not compatible with the latest version of WordPress.

PayPal Express Checkout Payment Gateway for WooCommerce

Are you running a WooCommerce store? Do you plan to integrate express checkout in the product pages? Then this is the plugin you need.  Developed by WebToffe, PayPal Express Checkout Payment Gateway for WooCommerce is a handy plugin that expands the standard PayPal payment option within WooCommerce.

With this PayPal plugin, your potential customer can use their credit card or PayPal balance to make order from cart page itself. This guarantees smoother experience for the users as they never have to leave your website for making payments.

Furthermore, the plugin is well-documented and costs $59.00 if you need the premium version. I highly recommend you to try the live demo before making the purchase.

PayPal for WooCommerce

Another plugin ideal for WooCommerce store owners. PayPal for WooCommerce makes it quick and easy for its users to integrate PayPal Express Checkout and Payments Pro into a WordPress / WooCommerce shopping cart system. This plugin fully supports WooCommerce Subscriptions and WooCommerce Payment Tokens as well.

Note: Payments Pro is PayPal’s complete online payment processing solution. By using their plugin, they can get you hooked up with PayPal Payments Pro with no monthly fee (U.S. and Canada merchants only.)

This free plugin has proper documentation, and they’re quite active on the support forum. It is recommended to read the reviews before installing.

Quick Paypal Payments

Quick PayPal Payments

Just as the name suggests, this free plugin is quite straightforward that lets you accept payments using a shortcode. The plugin now comes with features like Instant Payment Notifications, In-Context Checkout and GDPR compliancy options.

I searched a lot for WordPress PayPal plugins. Most were bulky and not meeting all my needs. I was building a website for a non-profit and needed to accept donations online with PayPal, with pre-defined or a custom amount. Sounds a simple need but a lot of PayPal plugins did not have this feature. I landed on this plugin and just fell in love with it!

Very easy to set up. Great customization of the form and its styles. Fantastic support from Graham who wrote this plugin! And a very affordable and deserving price. What else do you want in a plugin?

Thanks to Graham for building this awesome plugin!

pushkard

The plugin is known for its straightforwardness, simplicity, and support. Therefore, give it a try if you’re looking a minimal solution.

PayPal Donations

Are you running a non-profit organization? Do you need funding for your blog? This plugin comes in handy if you plan to accept donations via PayPal. This Free plugin adds a PayPal donation shortcode and sidebar Widget to WordPress. The options menu lets you set up your PayPal ID and a few other optional settings.

PayPal Donations

The plugin is well documented and has options available for currency, localization of the button (16 languages), custom payment page style, and the return page. Furthermore, there are optional advanced settings available to fine tune the setup in specific scenarios.

Contact Form 7 – PayPal & Stripe Add-on

This is another great PayPal plugin that seamlessly integrates PayPal (and Stripe) with Contact Form 7. Each contact form on your website can have its own PayPal & Stripe settings. When a contact form is enabled with PayPal, and the user submits the form it will send the email (as usual) and auto redirects to PayPal.

PayPal & Stripe plugin works with both the old and new Contact Form 7 interface. It has got built-in support for 18 languages and 25 currencies. This plugin also allows PayPal testing through SandBox.

The Contact Form 7 – PayPal & Stripe Add-on plugin is intuitive, and the developer is quite active on the support forum to answer the queries.

The pro version of this PayPal plugin comes with handy features including:

  • Send Contact Form 7 email only if the PayPal payment is successful.
  • Link a form item to quantity – A form item can be a textbox, dropdown, radio button, etc. anything that is a number.
  • Link a form item to price – The price field can be linked to any form item. Pipes are supported to allow for drop-down text options for each price.
  • Link form items to option text fields – The text field can be linked to any form item.
  • Charge Fixed Tax
  • Charge Tax Rate
  • Charge Shipping & Handling per item
  • Hide Customer’s Custom Note Field
  • Choose a cancel payment URL per contact form
  • Choose a successful payment URL per contact form

Get the pro version of Contact Form 7 – PayPal & Stripe Add-on

I hope this article helped you find the best PayPal WordPress plugin that fit your needs. Do let me know if you’ve some other plugin recommendations. I’ll review and update here.


Need help?

Need a custom solution to integrate multiple payment gateways on your website? I can help you with the same and improve the growth strategy of your site. Contact me right away!


The post Best PayPal Plugins for WordPress & WooCommerce appeared first on Mighil.

]]>
https://mighil.com/5-best-paypal-plugins-for-wordpress-and-woocommerce/feed/ 0
Migrate a Cloudflare-Enabled WordPress Site to CloudWays https://mighil.com/how-to-migrate-a-cloudflare-enabled-wordpress-site-to-cloudways/ https://mighil.com/how-to-migrate-a-cloudflare-enabled-wordpress-site-to-cloudways/#respond Wed, 12 Sep 2018 10:21:20 +0000 https://mighil.com/?p=3786 I’ve been using CloudWays for a while; it turns out to be a great platform to spin-up servers and manage ... Read more

The post Migrate a Cloudflare-Enabled WordPress Site to CloudWays appeared first on Mighil.

]]>
I’ve been using CloudWays for a while; it turns out to be a great platform to spin-up servers and manage applications efficiently. Quite frankly, they are one of the best hosting providers out there that promise quality managed-hosting solutions for affordable pricing.


This guide is only applicable to Cloudflare free SSL certificate users.


Previously, I wrote a quick guide on how to set up CloudWays Let’s Encrypt SSL and Cloudflare SSL together without throwing an infinite redirection loop or 5xx errors. Today, I’ll show you how to migrate a Cloudflare-enabled WordPress site to Cloudways seamlessly without hurting the SEO and HSTS settings.

Backstory

Click here to skip the backstory and jump to the main steps.

Well, I decided to pen this guide because I’ve gone through the same situation previously. I had more than 10 WordPress instances on my BandwagonHOST server. They are fantastic, but I wanted dedicated Singapore servers, and DigitalOcean was the only reasonable option left.

However, there are limitations when you directly use DigitalOcean. It doesn’t come up with impressive end-user-friendly features as CloudWays does. On the top of that, I prefer to give dedicated access to my clients and add them as the team members. DigitalOcean can be too much for the client-side. CloudWays seems more flexible for clients with inter-mediate WordPress skills.

Hence I chose CloudWays and decided to move all the WordPress sites. I had to go through a few uninvited hiccups during the transition (damn infinite redirection loop).

Finally, I figured out a quick solution to fix these issues and make my website migrations an easy-peasy process.

Select Cloudflare in the WAF Module

Quite important. Do it before migrating your WordPress sites to CloudWays.

Log into the Cloudways Platform with your credentials. Then click on the Advanced tab in the Server Settings & Packages section under the Server Management area.

CloudWays Advanced Tab

Under the Advanced tab. Select CloudFlare under WAF Module and save the settings by clicking on Save Changes.

Install the Cloudflare Flexible SSL, Really Simple SSL Plugins on the Old Host

Doing this will promise 100% successful migration. I’m sure you’ve already installed these plugins on your WordPress site to avoid Cloudflare redirection loop. Do it if you haven’t.

Flexible SSL

This plugin is essential for enabling Flexible SSL on WordPress and will prevent infinite redirect loops when loading your Cloudways WordPress sites under CloudFlare’s Flexible SSL system.

Install the Cloudflare Flexible SSL Plugin

Download Cloudflare Flexible SSL Plugin.

Really simple SSL

This plugin makes sure your site is loading over https://all the time. It is essential to install this one as well.

Install really simple SSL Cloudflare

Download Really Simple SSL Plugin.

Turn off Cloudflare CDN, Point Your Domain & Generate Let’s Encrypt SSL

Next tip to make sure the site works well after migration. We can temporarily point the domain to new CloudWays host (server) for few minutes just to generate Let’s Encrypt SSL. We’re doing this to make sure the host won’t throw any hiccups after migration.

Why Should I Point My Domain to CloudWays?

It is not possible to create Let’s Encrypt SSL certificates in Cloudways platform while the CloudFlare CDN is active, so turn it off by clicking the Orange Cloud as shown in the image. The Grey Cloud means CloudFlare CDN is off.

Turning off Cloudflare CDN & Pointing The Domain

Turn off DNS as shown in the image below. Replace 127.0.0.1 with your server’s IP.

Turn off Cloudflare CDN to generate CloudWays Let's Encrypt SSL Certificates

Now visit the CloudWays platform and fill in your PRIMARY DOMAIN in the Domain Management section. Save Changes afterward.

How to point your Domain to CloudWays

Generate Let’s Encrypt SSL Certificate

Now generate the Let’s Encrypt SSL certificate by accessing the SSL Certificate section. Be sure to create a Wildcard SSL Certificate and set a new CNAME record as suggested by CloudWays.

Generate SSL Cloudways

Save Changes and wait for CloudWays to generate Let’s Encrypt SSL certificate.

You can confirm the Let’s Encrypt SSL status by visiting the newly propagated WordPress site over https. Click on the padlock from the URL bar, and check detailed SSL certificate info.

Switch Back to The Old Host, Turn on Cloudflare CDN & Migrate

This process is dead simple. Just edit the A record and fill your old host’s IP address. Then turn on Cloudflare CDN.

Migration

Visit the old website, download and Install CloudWays WordPress Migrator. The plugin is quite intuitive, and it will do the rest.


Pro tip: Disable security plugins and add-ons before migrating. Doing so will make sure that the new host doesn’t get confused by your security settings. i.e. disable backend URL modifications just to be on the safe side. You can activate these plugins after migration.


Cloudways WordPress Migrator

Download CloudWays WordPress Migrator

Enable SSH Access & Generate Credentials

Enable SSH access within the Application Settings.

Enable SSH access CloudWays

Generate App Credentials also.

Enable SFTP CloudWays

Now enter the following details in the plugin interface to migrate:

  1. Enter any email address.
  2. Your Destination Site URL (fill in your domainname.tld with https enabled since we’ve already set the primary domain and generated SSL certificate in the CloudWays Application Settings interface).
  3. Enter your Database name.
  4. Enter your Server Public IP address.
  5. SFTP Username (for the particular app).
  6. SFTP Password.
  7. Agree to TOS and click on Migrate button to start migrating your website.

Here’s how it may look like:

Migrate Your Site to Cloudways

That’s about it. Good luck!

FAQ

Here are my answers to the questions someone posted on Cloudflare community website.

Q. The actual migration itself is as simple as pointing the A record to the new domain, right?

A. No, refer to the guide.

Q. Will WordPress sort out the URL issues, images and such when the staging site’s URL gets changed? What steps do I need to take to not end up with problems and broken images?

A. No need to worry, just use the migrator plugin as suggested in the guide.

Q. How do I ensure that the SSL certificate works when the migration is done – shall I install the SSL already on the staging site?

A. Please refer to this section in the guide.

Q. I have the option to use Let’sEncrypt SSL’s automatically from Cloudways – shall I opt for this rather than the Cloudflare certificate? If so, how and when do I make this switch?

A. You should opt for both. Read my previous guide on how to set up CloudWays Let’s Encrypt SSL and Cloudflare SSL together.

Q. Do I create a new Cloudflare account for the staging site with a new SSL certificate?

A. You wouldn’t need a staging site at all. You can create a subdomain and point it to CloudWays if you’re too worried.

Q. Do I migrate the site without SSL certificate first and then only apply it once the domain migration is completed?

A. No need, just follow my instructions in this guide.

Q. How do I ensure that the HSTS settings don’t leave my site hanging, or people unable to reach the site?

A. It will work after the migration.

Q. SEO-wise, is there anything to consider during a migration?

A. None and no need to worry about SEO.


Need help?

Does this guide sound too much of a tech jargon? I can help you migrate your Cloudflare-enabled site to CloudWays host for the price of a cup of coffee. Contact me right away!


The post Migrate a Cloudflare-Enabled WordPress Site to CloudWays appeared first on Mighil.

]]>
https://mighil.com/how-to-migrate-a-cloudflare-enabled-wordpress-site-to-cloudways/feed/ 0
How to Add Typekit Fonts to A WordPress Website https://mighil.com/how-to-add-typekit-fonts-to-your-wordpress-without-plugin/ https://mighil.com/how-to-add-typekit-fonts-to-your-wordpress-without-plugin/#respond Mon, 10 Sep 2018 14:43:18 +0000 https://mighil.com/?p=3742 Let’s assume you’re not happy with the “wide range” of Google fonts.  This blog post will teach you how to ... Read more

The post How to Add Typekit Fonts to A WordPress Website appeared first on Mighil.

]]>
Let’s assume you’re not happy with the “wide range” of Google fonts.  This blog post will teach you how to add Typekit fonts to your WordPress site manually without using a plugin.

Typography Matters

Typography is all about adjusting the text within the design while creating compelling content. It provides an attractive appearance and preserves the aesthetic value of your content. It plays a vital role in setting the overall tone of your website and ensures a great user experience*.

Typography expresses personality and is a part of your identity
Read: 5 Reasons Why Typography Matters (External Link)

Why Adobe Typekit

Adobe Typekit is a subscription service for fonts which you can sync to your computer or use on a website. Instead of licensing individual fonts, you can sign up for the plan that best suits your needs and get a library of fonts from which to choose.

Why Use Typekit?

This blog post will teach you how to add Typekit fonts to your WordPress site manually.

Nb:

  • You don’t need a third-party plugin to embed Typekit fonts in a WordPress website.
  • Intended Audience: Intermediate WP users.

Create a Kit ID

Visit Typekit.com, select a plan and create a font kit for your website. Ignore this step if you have got the Typekit CSS or JS code in handy. Creating a Kit is dead simple, and I’m not going to explain it here.

Create a Kit ID
Credit: Adobe Help Center

Note the specific Kit ID for the web project; We need the Kit ID for next part.

Open Theme Editor

Visit Appearance -> Editor and select the Theme Header (header.php) file. Replace fnw3sdq with your specific Typekit Kit ID.

<!-- BEGIN Typekit Fonts for WordPress --> 
<link rel="stylesheet" href="https://use.typekit.net/fnw3sdq.css"> 
<!-- END Typekit Fonts for WordPress -->

Don’t forget to click Update File after editing.

Set Custom CSS Rules

Custom styling varies according to the WordPress theme you’re using. Visit Appearance -> Customizer and look for the Additional CSS section.

Here’s an example, just for reference:

h1, h2, h3, h4, h5, h6 {
text-transform: none;
font-family: "sofia-pro",sans-serif;
font-weight: 600;
}

body, button, input, select, textarea {
font-family: proxima-nova;
font-weight: 400;
text-transform: none;
}

The set of CSS rules will vary according to your preference. Happy styling!


Need help?

Does guide sounds too much of a tech jargon? I can help you set the Typekit font on your WordPress website for the price of a cup of coffee. Contact me right away!


Credits:

  • Cover image: Typekit.com
  • *engadget.com

The post How to Add Typekit Fonts to A WordPress Website appeared first on Mighil.

]]>
https://mighil.com/how-to-add-typekit-fonts-to-your-wordpress-without-plugin/feed/ 0
How to Use Cloudflare And CloudWays SSL Together https://mighil.com/how-to-use-cloudflare-cloudways-ssl-together/ https://mighil.com/how-to-use-cloudflare-cloudways-ssl-together/#comments Mon, 10 Sep 2018 08:38:35 +0000 https://mighil.com/?p=3712 Cloudways is undoubtedly a great managed web hosting service provider. Their one-click features are impeccable if you’re new to the ... Read more

The post How to Use Cloudflare And CloudWays SSL Together appeared first on Mighil.

]]>
Cloudways is undoubtedly a great managed web hosting service provider. Their one-click features are impeccable if you’re new to the whole hosting scene. They’re also good at providing documentation for all topics related to their platform and its features.

But, to be honest, there is no detailed or specific documentation on the “Cloudflare flexible/full/strict SSL + CloudWays SSL” subject. Things can go south if you enable Cloudflare flexible SSL and CloudWays’ free Let’sEncrypt certificates together without tweaking a few settings.

Learn How to Install Cloudflare and CloudWays SSL Together on a WordPress Site

Let’s see how we can successfully set up Cloudflare and CloudWays SSL together on a WordPress site without generating infinite redirection loops or 5xx errors.

Disclaimer: Backup or create a clone of your website before proceeding. Try this AT YOUR OWN RISK. I’ve tested this one on three sites (during migration), and it worked flawlessly.

Select Cloudflare in the WAF Module

Assuming that you’ve already added your site to Cloudflare and Cloudflare has issued a free SSL certificate (it takes up to 24 hours for the same), here’s what you should do next.

Log into the Cloudways Platform with your credentials. Then click on the Advanced tab in the Server Settings & Packages section under the Server Management area.

CloudWays Advanced Tab

Under the Advanced tab. Select CloudFlare under WAF Module and save the settings by clicking on Save Changes.

Turn off Cloudflare CDN to generate CloudWays Let’s Encrypt SSL Certificates

It is not possible to create Let’s Encrypt SSL certificates in Cloudways platform while the CloudFlare CDN is active, so turn it off by clicking the Orange Cloud as shown in the image. The Grey Cloud means CloudFlare CDN is off.

Turn off Cloudflare CDN to generate CloudWays Let's Encrypt SSL Certificates

Setup Primary Domain & Generate the Let’s Encrypt SSL

You know the drill, visit Cloudways platform, create an app, and set the primary domain in Domain Management.

Now generate the Let’s Encrypt SSL certificate by accessing the SSL Certificate section. Be sure to create a Wildcard SSL Certificate and set a new CNAME record as suggested by CloudWays.

Generate SSL Cloudways

Install the Cloudflare Flexible SSL, Really Simple SSL Plugins & Turn on Cloudflare SSL

Flexible SSL

This plugin is essential for enabling Flexible SSL on WordPress and will prevent infinite redirect loops when loading your Cloudways WordPress sites under CloudFlare’s Flexible SSL system.

Install the Cloudflare Flexible SSL Plugin

Download Cloudflare Flexible SSL Plugin.

Really simple SSL

This plugin makes sure your site is loading over https:// all the time. It is essential to install this one as well.

Install really simple SSL Cloudflare

Download Really Simple SSL Plugin.

Turn on Cloudflare CDN

Go ahead and turn on Cloudflare CDN after enabling the plugins listed above.

Enable Cloudflare CDN Cloudways

After the CloudFlare SSL is active, you can change it to Full Strict. It’s up to you.


Need help?

Does this guide sound too much of a tech jargon? I can help you fix the SSL certificate issue of your website for the price of a cup of coffee. Contact me right away!


The post How to Use Cloudflare And CloudWays SSL Together appeared first on Mighil.

]]>
https://mighil.com/how-to-use-cloudflare-cloudways-ssl-together/feed/ 2
Bulk Unfollow People on LinkedIn https://mighil.com/mass-unfollow-people-on-linkedin/ Sat, 01 Sep 2018 14:39:56 +0000 https://wastedyears.org/?p=3032 Yeah, LinkedIn is great. But, I don’t want to see what my connections have liked. This is not Facebook. Ultimately, ... Read more

The post Bulk Unfollow People on LinkedIn appeared first on Mighil.

]]>
Yeah, LinkedIn is great. But, I don’t want to see what my connections have liked. This is not Facebook.

Ultimately, it’s their choice. The connections can do whatever they like.

Recently I decided to unfollow everyone and only follow the key-people. I did a quick google search and found an answer on Quora. It works on Chrome, and I’ll share it here:

Step 1: Visit this page on LinkedIn; linkedin.com/feed/following.

Step 2: Scroll down on the page so all the following profiles would load. You can scroll down a little and run the *script many times if you’re too lazy.

Step 3: Open Developer Tools in Chrome (Right Click -> Inspect). Switch to console tab.

Step 4: Paste the script below and type enter:

var buttons = $("button"),
interval = setInterval(function(){
var btn = $('.is-following');
console.log("Clicking:", btn);
btn.click();
if (buttons.length === 0) {
clearInterval(interval);
}
}, 1000);

If the script breaks in the middle, reload the page and repeat the process until the following count reaches to zero and LinkedIn displays ‘Follow Fresh Perspectives.’

Good luck.

The post Bulk Unfollow People on LinkedIn appeared first on Mighil.

]]>
Download And Install iOS 12 Beta 12 Without Developer Account https://mighil.com/how-to-download-ios-developer-beta-without-developer-account/ Tue, 31 Jul 2018 16:54:50 +0000 https://wastedyears.org/?p=14 Update: Latest update is draining my iPhone 6s’ battery very fast. Not recommended. Apple unveiled iOS 12 preview a few weeks ago. ... Read more

The post Download And Install iOS 12 Beta 12 Without Developer Account appeared first on Mighil.

]]>
Update: Latest update is draining my iPhone 6s’ battery very fast. Not recommended.

Apple unveiled iOS 12 preview a few weeks ago. This version of iOS looks very sleek in my opinion, and one of the key highlights is optimized battery performance.

There are a lot of distracting blogs out there; I’ll be specific, and you can finish the whole process in a couple of minutes.

iOS 12 is compatible with these devices

  • iPhone X
  • iPhone 8
  • iPhone 8 Plus
  • iPhone 7
  • iPhone 7 Plus
  • iPhone 6s
  • iPhone 6s Plus
  • iPhone 6
  • iPhone 6 Plus
  • iPhone SE
  • iPhone 5s
  • 12.9-inch iPad Pro 2nd generation
  • 12.9-inch iPad Pro 1st generation
  • 10.5-inch iPad Pro
  • 9.7-inch iPad Pro
  • iPad 6th generation
  • iPad 5th generation
  • iPad Air 2
  • iPad Air
  • iPad mini 4
  • iPad mini 3
  • iPad mini 2
  • iPod touch 6th generation

Download & Install

As of now, iOS 12 is only available to the developer community for testing. Which means you need to have a developer account to download and install iOS beta 12 on your iOS devices.

But, luckily, there are workarounds to install iOS 12 previews without a developer account. All you have to do is install an ios_12_beta_profile.mobileconfig Profile.

Proceed at your own risk.

Step 1

Visit “this link” from your iPhone or iPad and tap “allow.”

The device will prompt you to restart after installing the profile. Just do it.

How to Install iOS 12 Beta 12 Without Developer Account on iPhone Want to Download iOS 12 Beta Without Developer Account?

Step 2

Go to General -> Software Update. You’d be able to see iOS 12 beta 12 as an available over-the-air (OTA) firmware update.

Step 3

Tap on Download and install and wait for your device to prepare the update. The download may take a few minutes, and it entirely depends on your WiFi connection and device model.

Step 4

Tap on “Install Now” when you’re ready. Happy testing!

My comments on iOS 12 beta

  1. My iPhone 6s performs faster comparing to iOS 11’s latest public release.
  2. I feel the animation is smooth.
  3. Screentime, Google has been doing it for years. But it’s good to see Apple adopting such an important feature.
  4. Grouped notifications, a much-needed feature!

Disclaimer

  • ios_12_beta_profile.mobileconfig as seen on miroir3.trackr.fr.
  • Download and install beta versions of iOS at your own risk.

The post Download And Install iOS 12 Beta 12 Without Developer Account appeared first on Mighil.

]]>
Start a WordPress Blog in China https://mighil.com/start-wordpress-blog-china/ Mon, 28 May 2018 16:52:36 +0000 https://mighil.com/?p=2828 A lot of expats in China prefer to share their adventure in China with their friends back at home. Legends ... Read more

The post Start a WordPress Blog in China appeared first on Mighil.

]]>
A lot of expats in China prefer to share their adventure in China with their friends back at home. Legends say starting a WordPress blog in China can be painstaking. That’s bullshit. All you need is a VPN service to get started.

Major Update: Sep 14, 2018

CloudWays Singapore servers are performing well in mainland China. Here’s an example site based on CloudWays that caters mainland audience. I highly recommend you to check their services to speed up the process. They offer one-click WordPress install as well. Sign-up with a VPN service, buy a domain and visit CloudWays.

Get Started for FREE (You Can Run Multiple WordPress Also)

Why A Self-hosted WordPress Blog in China?

Dedicated hosting can be pricey since they come with one-click tools. A lot of blogging platforms doesn’t work well in China as well.

So, it’s wise to host your own WordPress blog. I’ve prepared this ultimate guide to teach you how to make a self-hosted personal WordPress website in China.

Note: This post contains 2 affiliate links and a referral link. Which means I will earn a small commission when you purchase using my links. No extra cost to you.

If this guide sounds too much of a tech jargon:

Sit back and relax, I can personally help you start a WordPress blog in China for the price of a coffee.

Prerequisites:

a. VPN

A VPN is essential. A lot of websites I’m going to mention below doesn’t work well in China. Feel free to use my affiliate link in the sidebar to sign-up with Express VPN. Their service is pretty good in China.

b. Domain name

A domain name is an identification string that defines a realm of administrative autonomy, authority or control within the Internet. You know the drill; go ahead and buy a domain name that reflects your brand name.

I prefer NameCheap over Gandi.net since it has got a faster interface. Go ahead and use my affiliate link (starts from 0.88USD/year) if you prefer to register a domain using namecheap.com.

c. A Virtual Private Server (VPS) to host your website.

A Virtual Private Server (VPS) is a virtual machine sold as a service by an Internet hosting service. Many companies including Aliyun in China offer virtual private server hosting or virtual dedicated server hosting as an extension for web hosting services.

There are several challenges to consider when licensing proprietary software in multi-tenant virtual environments. With unmanaged or self-managed hosting, the customer is left to administer their server instance. However, shared/dedicated hosting + cPanel in China can be pricey.

Services like Hostgator comes with one-click options, but you’ve got to pay the price for the same. So, we’ll be self-managing a DigitalOcean droplet (VPS) based on Ubuntu or CentOS.

Why DigitalOcean?

Even though, DigitalOcean is not for everybody. As a beginner, it’s something I’d recommend. You can learn a lot more about VPS in general when you start from scratch without anyone’s help. Feel free to join DigitalOcean using my referral link.

d. Putty or Terminal and WinSCP or Cyberduck

Putty or Terminal

You’d need an SSH client to login to your VPS.

PuTTY is an SSH and telnet client, developed originally by Simon Tatham for the Windows platform. Use Terminal if you’re using a Mac.

WinSCP or Cyberduck

Not everyone is a Linux savvy. As a beginner, you won’t be flexible with using Linux commands to move/copy and edit files. Hence you’d need an SFTP/FTP client to view, edit and manage the data on your server.

WinSCP is a free and open-source SFTP, FTP, WebDAV, Amazon S3 and SCP client for Microsoft Windows.

I suggest Cyberduck for Mac users since I use it often. You have other options like FileZilla for Windows and Transmit for Mac. Use any SFTP software you’re comfortable with.

e. Others

  1. You’ll be using VestaCP (free and open-source control panel) as the default VPS control panel to host the WordPress website on your server.
  2. For the managed DNS part and to speed up your website in China, I’d suggest Cloudflare since their interface is sleek. They also provide a free SSL. Having a Cloudflare generated SSL certificate is crucial since Google will be counting HTTPS as a ranking factor. Go ahead, visit cloudflare.com and create an account right away.

I hope you’ve got a basic idea now. Fire up ExpressVPN, let’s start a WordPress blog in China.

A. Buy A Domain

Purchasing a domain on NameCheap is pretty much straight-forward. Sign-up, search for a domain name of your choice, add it to the cart and make payment. After the purchase, visit this URL and click “manage”.

Note:

  • You can purchase a .cn domain and host it outside of China with the help of Chinese friend.
  • You don’t need a China ICP license for hosting the .cn domain outside of China.

Buy and Manage Domain NameCheap

Once you click “manage”, you’ll see something like this.

Manage NameCheap domain

Keep the browser window idle and proceed to the next step.

B. Add Site to Cloudflare

Visit cloudflare.com and log in to your account. Visit this URL or click “+ Add Site” located in the upper right corner.

Cloudflare Add Site

Now fill in your domain name and click “Add Site.”

Cloudflare Add Domain

Click “Next”, select the free plan and click “Confirm Plan.”

Cloudflare Free Plan

Now, wait for Cloudflare to finish querying your DNS records.

Cloudflare DNS Query

Usually, Cloudflare will return your current DNS settings (aka NameCheap default settings). But sometimes it may display an error like “we are unable to find your DNS settings.” Just click “Next”.

As you can see below, Cloudflare will ask you to change your nameservers.

Cloudflare Nameservers

Visit the idle window I mentioned at the end of step 1. Select the “Custom DNS” in the NAMESERVERS section and fill the nameservers as suggested by Cloudflare and Click save.

Cloudflare Custom DNS

Switch the active window to the Cloudflare setup and click “Continue.” Give it a few minutes for the DNS propagation. The Cloudflare status will be “Active” after DNS propagation.

C. Create A DigitalOcean Droplet

DigitalOcean calls its cloud servers Droplets; each Droplet you create is a new server for your personal use.

If you are a new user, DigitalOcean will ask you either top up 5$ credit or add a preferred payment method.

I’d top up 5$ via PayPal since it’s the wise choice than adding a credit/debit card. Now sign in to your DigitalOcean account and visit the dashboard.

Click “Create Droplet” and refer to the screenshot below:

Create Droplet DigitalOcean

DigitalOcean VPS pricing starts from 5USD per month. Choose an ideal server for your personal website.

Since we are in China, I’d recommend Singapore location for hosting the WordPress site.  

CloudFlare has got data centers in China, and it will make sure your website delivers content without any lag.

Go ahead and select the 5USD server if you are setting up a personal website aiming less than 10k users per month.

Note:

  1. You can upgrade and optimize droplets whenever you like.
  2. I’ve selected Ubuntu 16.04.4. You can choose CentOS 7.5 x64 as well. Keep in mind that Ubuntu uses apt with DEB packages, while CentOS uses the YUM package manager with RPM packages. In this tutorial, I will be using “yum” often. CentOS is believed to be more stable because it has less frequent updates to their packages.
  3. I highly recommend readers to learn more about SSH keys and generate/set-up SSH keys while creating a droplet. SSH keys provide a more secure way of logging into a virtual private server with SSH than using a password alone.

Click “create” if everything looks ok for you. DigitalOcean will generate Public IP, one-time root password and send it over to your registered email address.

D. Install VestaCP On CentOS

Step 1: Login to your server as root

Use the credentials DigitalOcean sent you over email to log in.

Open up Putty on Windows. Things are pretty much intuitive on Windows. If you find it confusing, read this article.

In case you are using a Mac, open Terminal, type the following and hit enter:

$ ssh root@67.218.xxx.xx

Replace 67.218.xxx.xx with your server’s IP address. 

After logging in for the first time, DigitalOcean’s Linux distro will force you to change the password. Just do it.

Step2:  Install Vesta CP

Download installation script

$ curl -O http://vestacp.com/pub/vst-install.sh

Run it to start the installation

$ bash vst-install.sh

Ubuntu may ask you to force the installation sometimes. Run this command to do it:

$ bash vst-install.sh -f

It will ask you type in the host name and email address. It’s wise to not use your domainname.tld as the hostname.

Use something like cp.domainname.tld. 

VestaCP roughly needs 5 to 10 minutes to finish the installation.  It will display the login URL and admin credentials upon completing the installation.

E. Configure DNS

Visit the DNS section of your website in Cloudflare.com.

Set CNAME and A records as follows.

  • A Record – Name: @, ipv4 address: 67.218.xxx.xx
  • A Record – Name: cp, ipv4 address: 67.218.xxx.xx
  • CNAME record – Name: www, Domain Name: @

Don’t forget to replace 67.218.150.74 with your server’s IP.

Make sure it looks like this after editing.

Cloudflare DNS

F. Add New Website on VestaCP

Step 1: Visit the VestaCP login URL.

It may look like https://67.218.xxx.xx:8083

Log in using the credentials you saved before. Change the admin password after logging in.

Feel free to tweak other settings according to your preference.

Step 2: Add a website

Visit the WEB section in the VestaCP and click the “ADD WEB DOMAIN” button.

VestaCP Add New Domain

Fill in the domainname.tld (eg: mynewsite.com) and select the default IP address. Click the ADVANCED OPTIONS and edit the Alias to www.domainname.tld. Click “Add” when you’re ready.

VestaCP New Domain

Wait for few seconds and visit domainname.tld. You’d see a dummy home page generated by VestaCP.

Step 3: Create a Database for WordPress

VestaCP has installed default software stacks required for WordPress.

You have to create MySQL database right now so we can use the same during WordPress installation.

To do this, visit the DB section of your VestaCP. Click “Add DB and fill in the details.

VestaCP Database

Note: Prefix admin_ will be automatically added to database name and database user. It’s a VestaCP setting by default.

Click “Add” when you’re ready. Save the database details somewhere safe.

G. Download And Install WordPress

Oh boy! we’re almost there. Let’s install WordPress already!

Login to your VPS using Putty/Terminal as root user. Use cd to navigate to the domainname.tld folder located inside the home folder.

$ cd /home/admin/web/domainname.tld/public_html/

Go ahead and download WordPress to the public_html folder using the following command:

$ wget http://wordpress.org/latest.zip

Now unzip the wordpress.zip folder by:

$ unzip latest.zip

Wait patiently and let it finish the thing.

Move it from wordpress folder to the public_html folder afterwards:

$ cd wordpress
$ shopt -s dotglob; mv -- * ..

Now go back to the public_folder.

$ cd /home/admin/web/domainname.tld/public_html/

Delete the default index.html file and the WordPress folder generated while unzipping.

$ rm index.html
$ rmdir wordpress

Now move the wp-config-sample.php to wp-config.php using the following command:

$ mv wp-config-sample.php wp-config.php

Now you have to edit the wp-config.php file. You may use WinSCP/Cyberduck to do the same.

Connect to your server using the root credentials. Open the wp-config.php file located in /home/admin/web/domainname.tld/public_html/

how to edit wp-config.php

Replace database_name_here with the database name you’ve generated on VestaCP. Fill in the username, password as well and click save.

Open Putty/Terminal again and log in to your VPS as the root user.

Run this command to set chown rules for VestaCP admin user:

$ chown -R admin:admin /home/admin/web/domainname.tld/public_html

It will come handy when you’re about to install a new theme/plugin on WordPress.

Now visit your website and finish the WordPress installation.

Read this guide to setup CloudFlare flexible SSL for your WordPress website.

That’s it, happy WordPress powered blogging in China!

1&1 WordPress Assistant

If you have set-up a new blog about your life in China feel free to share the link via email. I’ll add you to the “great success” list.

Direct all technical questions to WeChat: mighil.

The post Start a WordPress Blog in China appeared first on Mighil.

]]>