How to secure a Centos server with key pair access

Once you decide to switch to VPS for your hosting you’ll probably get a machine with root access and a password. That’s not very secure, because if you use the root user to access a server, any attacker already knows half of your defense system – the user root. So in this tutorial we will disable the root password and allow access via SSH and a key pair.

Moving a WordPress site from a folder to the root

Sometimes you need to move a WordPress site from a folder to the root. Why would you move a WordPress site from a folder to the root? Well, in some cases, WordPress has been installed into a folder, and the root was redirected to that folder via htaccess. Google doesn’t like empty roots… So for this tutorial we are going to move www.entrepreneurship-interviews.com/blog to www.entrepreneurship-interviews.com so you should replace these with your URL throughout the work.

How to copy a WordPress site to a local computer

Sometimes you might need to copy a live WordPress site from the server to your local Windows PC to do some tweaking for a client. In this tutorial I will show all the necessary steps to copy the WordPress installation and make notes on things that might go bad along the way. I assume you already have Apache, PHP and MySQL installed (if not, you can have a look at Wamp)

How to remove the read more link in posts

There are cases where you want just a section of the content to appear on the home or category page and that people should click on a link to read the rest of the article. The default WordPress behavior is that if you insert¬† the “read more tag” into the content it will split the content and do just that, display a read more link to the details page. In the PHP code, the content is displayed using this tag: <?php the_content(); ?> However, the read more link will appear in the content (at the end of the text) and you might want to format the way the read more link appears. There are more ways to customize the read more link.

How to add Google Sitemaps to your WordPress blog

In this tutorial you will learn how to automatically generate and submit a sitemap to Google Webmaster Tools from your WordPress installation. Once your site is up and running you might want to take some steps to optimize the site for search engines so you could get some more traffic. But before you start learning about SEO (search engine optimization) you should first measure the results you got and analyze your status. Without measuring, any optimization effort is prone to failure – you should be able to check if it has any effects. There are more tools you could use to analyze your traffic, including some very good free ones offered by Google: Analytics and Google Webmaster tools. Google Webmaster Tools is especially important because not only that you can learn more about your site, including which pages are in the Google index, crawling stats, popular search queries, sites linking, but by submitting a sitemap with all your site pages you can increase the number of pages that Google indexes.

How to restrict users access to certain posts in WordPress

In this tutorial I will show you how easy is to create posts that are restricted to the general public and only available for users belonging to a specific category. To do this, we need 3 things:

  • a way to mark a post as being available to a specific category of users
  • a way to create the special users category
  • restrict the content view