Category: Apps

Find wp-admin url – iThemes Security / Solid Security

Quick way to find the wp-admin login slug on WordPress sites with iThemes Security or Solid Security installed:

If the sub-name changes then try:

   

Read More »

WordPress External Cron

For low traffic WordPress sites, the internal cron will not run on a reliable schedule resulting in missed jobs. For high traffic sites the internal cron can result in excessive cron runs. The solution is to disable the internal cron and setup an external cronjob at the operating system level. To disable the internal cron add the following to wp-config.php: For the external cron you can use curl or wget, but my preference is wp-cli like this: On a Plesk server this might look like:

Read More »

WordPress Admin Dashboard Slow Due To WordFence

Recently worked a WordPress site where the admin dashboard was taking a minute or more to load. Tracked the problem to the “Updates Needed” section in the “WordFence” block displayed on the dashboard. The Updates Needed section calls the WordPress  “wp_version_check()” function. This function, as part of building the data sent to wordpress.org with the update version check, calls the WordPress “count_users()” function. The “count_users()” function runs a query like this:

The number of “COUNT(NULLIF” columns depends on the number of user groups. For a site with a small number of users and groups this query is not a problem. But for a site with over 100K users this query took over 100 seconds to run. To fix the problem, we used “wp-cli” to disable the “Updates Needed” section in WordFence:

Now the admin dashboard loads with no delay. This is a great example of the types of problems

Read More »

WordFence / CloudFront – Automatically Update Trusted Proxies

If you are using WordPress with CloudFront and WordFence then some extra configuration is required. WordFence does blocking based on IP address but it will fail to determine the correct IP address when you have CloudFront and an Elastic Load Balancer in front of the site. The work around is to setup a cronjob that updates the list of trusted proxies in WordFence. Login to WordPress admin and to to WordFence -> All Options. Under “How does Wordfence get IPs” select “Use the X-Forwarded-For HTTP header”.  Click “Save Changes” Add a cronjob using the script shown below to update the list of trusted proxies. Here’s a simple script for the cronjob:

     

Read More »

GlusterFS Cluster with CentOS on RackSpace Cloud

We want to build a high-availability storage cluster based on GlusterFS using RackSpace Cloud Servers on CentOS. Also we want to use RackSpace Cloud Networks to provide private networks for replication and cluster access. Finally we want to use RackSpace Cloud Block Storage with LVM and XFS to simplify future expansion. This article is based on a previous article we published on the same topic for Ubuntu: GlusterFS Cluster With Ubuntu On RackSpace Cloud As shown in the diagram, we’ll have two Cloud Networks, one for replication between the servers and one for access by clients to the storage. The next diagrams shows the filesystem layers – local, CBS, LVM, XFS and finally GlusterFS. Part 1 – Server Setup 1. Create servers and networks – Login to your RackSpace Cloud account and create two server following these guidelines: Make sure you choose a Next Gen region for the servers. For

Read More »

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.