How can I use subdirectory with Cloudways


#1

Can’t figure it out. It was easy with Cpanel but looks almost impossible with CloudWays to me.


#2

Cloudways won’t allow you to place apps under subdirectories. Since Cloudways offers managed app hosting, it wouldn’t be possible to reconcile managing these apps and placing them inside the folders of other apps.

You can, however, manually (e.g. without using the ADD APPLICATION option) install anything under a subdirectory inside an app’s folder.


#3

Hi @garrycharlies

Can you please clarify it a bit. What do you want to achieve in a subdirectory?


#4

@mustaasam.saleem To achieve the following:

  1. Example.com (Cloudways application installed one-click) + example.com/blog (separate wordpress install where the folder “blog” lies within application folder (or public_html) of example.com in shared hosting with cpanel.)

We are facing the same issue migrating. Before we had /blog folder under main domain’s html_public directory. In cloudways, each application has its own folder with config files (Varnish, ssl settings etc). Hence, our option was to install manually and create a database separately via an app (Which is a roundabout way: Restore+ cloning issues?). So the questions arise:

  1. Will we benefit from the optimizations (specially varnish related) that comes with cloudways if we manually upload wordpress than use it as an application? We need a kb to understand how varnish and redis will work for manually created wordpress installations for subdirectory. where the supporting application folder files are missing.

Any idea how to address the above?

Thanks


#5

@AK_Team

You can install Wordpress manually in sub-folder of application and as you mentioned use a default PHP app for its database.

Varnish should work fine as long as it is properly configured through caching plugin like Breeze as per the following link:

https://support.cloudways.com/breeze-wordpress-cache-configuration/

You can use Redis as well, to configure please refer to Method 2 in the following link:

Regards,
Faizan Shah


#6

Hello, Cloudways don’t have direct one click installation feature. If you want to install WordPress on subdirectory like example.com/blog, then read this step by step guide here-
http://bit.ly/how-to-install-wordpress-on-subfolder-on-cloudways