Generating a new administrator user in WordPress through SQL

If you need access to a website, built on WordPress, but you have SSH access only, you could still cope with the situation with a few line in the command line. Here are the steps you need to follow: Find the database credentials. They are usually in wp-config.php file under the web-root directory of your […]

Recovering missing Facebook comments (and like counts) after switching to SSL

You might notice that you are missing your Facebook comments once you switch to HTTPS from serving your site initially on HTTP. The problem is with Facebook not linking the old URLs with the new ones, which is why you might have to do some additional work in order to have your comments back. It’s […]

Some good sources for starting your knowledge path in SEO

A friend of mine sent a list of resources to a client of mine and CC’ed me in the conversation. I do find these resources really helpful, which is why I decided to put them here. We are not affiliated to any of the sources. SEO 101:  Google’s SEO Starter Guide https://static.googleusercontent.com/media/www.google.com/en//webmasters/docs/search-engine-optimization-starter-guide.pdf MOZ: https://moz.com/beginners-guide-to-seo WordPress SEO hints by […]

“Sorry, you are not allowed to access this page.” on News Cherry theme options page

The problem It happened to a client of mine just recently – they tried to change something in the theme options, but they couldn’t, as reaching out to http://their-site.com/wp-admin/admin.php?page=options.php produced “Sorry, you are not allowed to access this page.” message. The theme is News Cherry by Bdaia, found on ThemeForest. The solution Turns out the theme […]

A proper plugin for flipping pages of a book or booklet (list of 8 tested and reviewed plugins)

Here is the list of the plugins that I tested: Those booklet plugins that actually are useful WP Booklet – super-simple and easy to work with, has a post type and a shortcode, a short list of options and that’s it. Oh, and it loads images upon opening the page from the booklet, instead of […]

Renewing (an expired?) Let’s Encrypt SSL certificate with Easy Engine

The routine is expected to be as follows:

Right? Well, yes, if your environment is up-to-date.  Result of the last command should be like: Renewing SSl cert for https://re-wp.com Reload : nginx [OK] SUCCESS: Certificate was successfully renewed For https://re-wp.com Your cert will expire within 89 days. Expiration DATE: Tue Sep 12 08:23:00 UTC […]

Activating Let’s Encrypt SSL certificate on a site run by Easy Engine

Say we have a site on Easy Engine v3.7.4 setup that is not encrypted. We want to get it running under HTTPS protocol, right? Let’s Encrypt seems to be the fastest, easiest and cheapest way to go. So here we go, the command is rather simple:

Well, that’s cool, but we might get a […]

Solution for cPanel and WHM being stuck on updates

It happens, although pretty rarely, for updates of WHM and cPanel to fail. Then you can access any of their pages and you are prompted to reload the page as if this would fix it. Solution for me was just to run the following command as root in a SSH session on the server:

My […]

Recursively replacing or removing a string from text files in a directory

I had a client with 3 WordPress sites hacked, having injected a dirty ad redirect in every possible javascript file of these sites. Around 1500 files were infected with one and the same script, so the best solution for curing them would be to remove that specific line that was causing all the trouble. Following set of […]

Scanning and cleaning a Linux machine (server or desktop) with ClamAV antivirus

A client of mine got some infected emails in their mail server, leading to infected Thunderbird on Windows, crashing the whole operating system. In order to clean up the mess, I had to scan the mail server and remove the emails that were spreading the virus. ClamAV turns out to be a pretty good option for […]