• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question New DocumentRoot?

omexlu

Regular Pleskian
Hello,

I plan to upgrade my current forum-software to the latest version, currently all data is in the "httpdocs".

Now I wanted to proceed as follows:
- create a new folder under "httpdocs" e.g. "NEWFORUM".
- into this folder I wanted to install the new forum-software.
- There I wanted to do all work (import, design etc.) without having to deactivate the current forum.

Now to my question, if I am finished with the migration afterwards, can I just change the document root to "httpdocs/NEWFORUM" (under "Hosting-Settings" in Panel) and delete all files below "NEWFORUM" (there should be only "httpdocs/NEWFORUM" then)?

But I don't want the old data to be copied from "httpdocs" to "NEWFORUM".

Does it work like this or how do I have to proceed here and do it best?

Thanks in advance.
 
Changing the document root in Plesk will not copy any data. So your procedure looks OK to me. See also: Defining a Custom Document Root

However, if I were you, I would create a new subdomain eg. "new.mydomain.tld" and install the forum there. Once happy with it, you can erase the old /httpdocs and move/copy all files from the subdomain to the main domain /httpdocs folder.
This way you make sure that no mod_rewrite rules that may exist in the previous /httpdocs installation will interfere with your new forum.
 
Changing the document root in Plesk will not copy any data. So your procedure looks OK to me. See also: Defining a Custom Document Root

However, if I were you, I would create a new subdomain eg. "new.mydomain.tld" and install the forum there. Once happy with it, you can erase the old /httpdocs and move/copy all files from the subdomain to the main domain /httpdocs folder.
This way you make sure that no mod_rewrite rules that may exist in the previous /httpdocs installation will interfere with your new forum.

Hello,

Thank you, the problem is that I must use php-cli to import the data from the old forum, because that I think it must be in the same folder maybe because the permission-rights.

I don't know if it is a good idea to use root for importing that data :)

Thanks for your answer anyway I think about to use your discripted way, that way I can mv the data over ssh to the right place.

If anybody of you have more tips I would be happy with that :)
 
Back
Top