Softaculous


Topic : The following errors were found : You cannot create staging in a subdirectory of the original installation


Posted By: litebit on December 31, 2020, 2:35 pm
Hi

today I tried to create a staging version of a Wordpress site, as usual in a subdirectory in the same domain.
But now I get the error

Code
  The following errors were found :

You cannnot create staging in a subdirectory of the original installation


(including the typo, "cannnot" should be "cannot")

Did something changed? Because we used to do this a lot before.

This would mean the staging function no longer works when there is only a single domain available and WP is installed in the root of that domain.

Or is this another error?




Posted By: Brijesh on January 5, 2021, 10:47 am | Post: 1
Hi,

This error appears only when you have source WordPress installed in a sub-directory and you are trying to create a staging instance into another sub-directory within another sub directory.

If you have the installation in the root of your domain this error should not appear. If you can open a support ticket with us we can check this for you :
https://softaculous.deskuss.com/

We have also fixed the cannot typo and it will be updated in the next version of Softaculous.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Posted By: litebit on January 5, 2021, 1:43 pm | Post: 2
Hi,

well my wordpress site is installed in www.domain.com
and I am trying to create the staging in www.domain.com/_staging

I will open a support ticket

Posted By: litebit on January 5, 2021, 2:27 pm | Post: 3
Quote From : Brijesh January 5, 2021, 10:47 am
Hi,
This error appears only when you have source WordPress installed in a sub-directory and you are trying to create a staging instance into another sub-directory within another sub directory.

If you have the installation in the root of your domain this error should not appear. If you can open a support ticket with us we can check this for you :
https://softaculous.deskuss.com/

We have also fixed the cannot typo and it will be updated in the next version of Softaculous.

(ignore my previous post)
Actually, your note about subdirectories got me to recheck the installations, and I found something interesting :
My site is installed in the root of the domain : https://www.domain.com
I wanted to create a staging in https://www.domain.com/_staging
Then I get the error

However, when I try to create the staging in https://www.domain.eu/_staging

(this is my old temp domainname)  it works, and I also can do a push to live on www.domain.com

Original WP installation on https://www.domain.com was done in /home/myaccount/domains/domain.com/private_html
(I don't know why, because I did do the necessary to create the symlink from private_html to public_html) 

but I can see that when trying to create the staging under a different domain, it always tries (correctly) under /public_html/ /home/myaccount/domains/domain.eu/public_html/_staging

Which lets me believe that when trying to create the staging in https://www.domain.com/_staging, Softaculous is also trying to create the staging in /home/myaccount/domains/domain.com/public_html/_staging?

So before opening a support ticket, I will try to fix/move the original installation into /public_html

Posted By: litebit on January 5, 2021, 9:44 pm | Post: 4
Hi,
so I managed to fix the main site to /public_html/ in stead of /private_html/and that seem to have fixed the error I got when trying to creating the staging site under the same domain.
I now can create a staging like I used to do



Posted By: Brijesh on January 8, 2021, 12:35 pm | Post: 5
Glad to know you were able to create Staging now.

Thank you for sharing the details about the issue you faced.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Posted By: sarfrazsyed on December 6, 2023, 5:30 pm | Post: 6
Quote From : litebit January 5, 2021, 9:44 pm
Hi,
so I managed to fix the main site to /public_html/ in stead of /private_html/and that seem to have fixed the error I got when trying to creating the staging site under the same domain.
I now can create a staging like I used to do




Can you please guide how you have done it. I am facing the similar issue

Posted By: Brijesh on January 18, 2024, 9:51 am | Post: 7
Quote From : sarfrazsyed December 6, 2023, 5:30 pm

Can you please guide how you have done it. I am facing the similar issue

Hi,

Sorry for the delay in response.

If you are still facing the issue please open a support ticket with us so we can check this for you :
https://softaculous.deskuss.com/open.php


-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.