Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

amirami's avatar

How do you import existing websites into forge server?

I had to create a droplet on Digital Ocean from one of my old snapshots. After I did that I imported the server into forge. Now I want to import the existing websites which are located in /home/forge (default). I tried to create a new server in the same directory but I only ended up overwriting all files. Any way to do this?

FYI: the snapshot I restored is an old forge server.

0 likes
1 reply
amirami's avatar
amirami
OP
Best Answer
Level 1

What I ended up doing is

  • rename the old website: mv website.com website.com-backup
  • create a new website in forge with the same domain and let it install
  • deleted the new website: rm -rf website.com
  • rename the old website back to original: mv website.com-backup website.com

Please or to participate in this conversation.