Servers

RunCloud WP Ghost Setup Step by Step Guide

WP Ghost works on RunCloud with both web application stacks: NGINX + Apache2 Hybrid (recommended) and Native NGINX. The Hybrid stack is the easiest setup because it uses .htaccess the same way standard Apache does, so WP Ghost works out of the box with no extra configuration. Native NGINX requires one additional step: creating a hidemywp.conf file and adding an include directive to the RunCloud Nginx config. This guide covers both options and explains when to choose each.

Choose Your Web Application Stack

Option 1: NGINX + Apache2 Hybrid (Recommended)

This is the simplest setup. With Hybrid mode, WP Ghost writes rewrite rules to .htaccess just like on a standard Apache server, and Apache processes them automatically.

  1. In RunCloud, create a new WordPress application or edit an existing one.
  2. At the Web Application Stack selection, choose NGINX + Apache2 Hybrid.
  3. Complete the WordPress installation through RunCloud.
  4. Install WP Ghost from the WordPress plugin directory or upload the Premium version – see Install WP Ghost.
  5. Configure WP Ghost normally. All rules are written to .htaccess automatically and applied without any additional server configuration.

That’s it. With Hybrid mode, you don’t need to edit any Nginx configuration. WP Ghost works the same way it does on any Apache server. Skip to the Verify the Setup section.

Option 2: Native NGINX

Native NGINX is faster but requires manual configuration because Nginx doesn’t process .htaccess. WP Ghost generates a hidemywp.conf file with the rewrite rules, and you need to add an include directive to RunCloud’s Nginx config so the rules are loaded.

  1. In RunCloud, create your WordPress application with Native NGINX selected at the Web Application Stack.
  2. Install WP Ghost from your WordPress dashboard.
  3. Go to WP Ghost > Advanced > Compatibility and verify the Server type is set to Nginx.
  4. Open the RunCloud File Manager and navigate to your website’s root directory.
  5. Create an empty file named hidemywp.conf in the root directory.
  1. Go to WP Ghost > Change Paths, configure your path security, and click Save.
  2. WP Ghost displays a notification with the exact include directive you need to add to your Nginx config:
  1. Copy the include directive from the notification.
  2. In RunCloud, go to your application and open the NGINX Config tab.
  3. Add the include directive (something like include /home/runcloud/webapps/yoursite/hidemywp.conf;) to the configuration.
  4. Click Save.
  1. Click Rebuild Web Application Config in RunCloud to apply the changes.

Reload Nginx After Path Changes

Important: On Native NGINX, you must rebuild the web application config in RunCloud every time you save WP Ghost path changes. Nginx loads its configuration at startup and keeps it in memory – changes to hidemywp.conf won’t take effect until Nginx reloads.

  1. After saving WP Ghost settings, go to your RunCloud web application.
  2. Click Rebuild Web Application Config.
  3. Wait for the rebuild to complete. The new path security rules are now active.

This step is only required for Native NGINX setups. Hybrid mode applies .htaccess changes immediately without any reload.

Verify the Setup

  1. Visit your site and confirm pages load normally.
  2. Try your custom WP Ghost login URL – it should work.
  3. Try the default /wp-login.php – it should return 404.
  4. View page source and confirm plugin/theme paths show your custom WP Ghost names.
  5. Run a Security Check in WP Ghost to verify all settings are applied.

Troubleshooting

Custom paths return 404 on Native NGINX

You probably forgot to rebuild the web app config after saving WP Ghost. Go to your RunCloud application and click Rebuild Web Application Config. If that doesn’t fix it, verify the include directive is present in the NGINX Config tab and that the path matches the actual hidemywp.conf file location.

“hidemywp.conf not found” error in RunCloud

The file path in your include directive doesn’t match the actual file location. RunCloud paths typically follow /home/runcloud/webapps/your-app-name/. SSH into your server and verify with ls -la /home/runcloud/webapps/your-app-name/hidemywp.conf – if the file isn’t there, create it through the RunCloud File Manager and re-save WP Ghost settings.

RunCloud Nginx config validation fails

Most common cause: missing semicolon at the end of the include line, or wrong file path. Check that your include line ends with a semicolon: include /home/runcloud/webapps/yoursite/hidemywp.conf;. RunCloud validates the config before applying it, so an error in this dialog means Nginx would fail to start.

Want to switch from Native NGINX to Hybrid

You can change the web application stack in RunCloud after creation, but it requires recreating the application. Back up your site first. After switching to Hybrid, remove the include directive from your old Nginx config (no longer needed) and let WP Ghost write rules to .htaccess automatically.

Locked out after configuration

Use the Safe URL parameter to bypass WP Ghost temporarily. If that doesn’t work, see the Emergency Disable guide to recover access via FTP or RunCloud File Manager.

Frequently Asked Questions

Which RunCloud stack should I choose?

For most users, NGINX + Apache2 Hybrid is the better choice. It works out of the box with WP Ghost and any other plugin that uses .htaccess (cache plugins, security plugins, redirect plugins). Native NGINX is faster for high-traffic sites but requires manual Nginx config for every plugin that writes rewrite rules.

Do I need to rebuild config every time I save WP Ghost?

Only on Native NGINX. The Nginx server keeps its configuration in memory, so any change to hidemywp.conf requires a rebuild for the new rules to take effect. On Hybrid mode, .htaccess changes are read on every request and apply immediately.

Will other plugins also need Nginx config additions?

Yes, on Native NGINX. Cache plugins, security plugins, and any plugin that writes rewrite rules will need their rules added to the RunCloud Nginx config. This is one of the main reasons to choose Hybrid mode unless you specifically need Native NGINX performance.

Does this work with WooCommerce?

Yes. WP Ghost is fully compatible with WooCommerce on RunCloud with both stack options. Cart, checkout, product pages, and customer accounts work normally.

Does WP Ghost modify WordPress core files?

No. WP Ghost writes rewrite rules to .htaccess (Hybrid) or hidemywp.conf (Native NGINX), and uses WordPress hooks for application-level changes. No core files are modified. Deactivating WP Ghost restores all defaults instantly.

Server configuration for WP Ghost:

John Darrel

Change the WordPress Database Prefix for Security

Replace the default wp_ database prefix with a random one to protect against SQL injection…

1 year

Customize WordPress Uploads Directory | WP Ghost

Change the WordPress uploads directory path with WP Ghost (rewrite rules, no files moved) or…

1 year

WP Ghost and WP Rocket Cache Setup Guide

Configure WP Ghost with WP Rocket cache. Enable file optimization, Change Paths in Cache Files.…

1 year

Why is website security important?

https://youtu.be/6ylhojSi-_E In this video, we’ll explore why website security matters and what can happen if…

1 year

Is WordPress Website Easily Hacked?

The security of your WordPress site depends on multiple factors, such as the strength of…

1 year

Set Up WordPress 2FA with Mobile Authenticator Apps

Step-by-step guides to connect WP Ghost 2FA with Google Authenticator, Authy, Microsoft Authenticator, or LastPass.…

1 year