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

jago86's avatar
Level 19

Multiple digitalocean accounts

Is possible to manage servers from different digitalocean accounts in the same Forge account?

0 likes
13 replies
ejdelmonico's avatar

@jago86 I don't see any options to do that in Forge. You can have multiple server providers but that is for the same account.

1 like
sherwinmdev's avatar

you can use custom vps but you'll have to provision the DO server yourself then have forge connect to it to do its thing.

1 like
jago86's avatar
Level 19

Thanks for your answers. @w1n78 do you know an easy way to provisioning the vps by myself?

ejdelmonico's avatar

If you have a snapshot of a forge server, you can create a new droplet from that snapshot.

1 like
jago86's avatar
Level 19

Great! I wasn't think that @ejdelmonico ! There will be some configuration that i will need to fix? Some about the ip in the server provisioned with the snapshot?

ejdelmonico's avatar

You may have to fiddle around with some things but I know DO has a few How-to's on the subject.

sherwinmdev's avatar

@jago86 it may be easier to just create a fresh droplet than off a snapshot since you're gonna use forge to configure anyway. After you create the new droplet, use the existing key from the other DO acct to connect to forge or generate a new one.

ejdelmonico's avatar

@jago86 Forge configures a server at build time and will not configure a server that is already built. That is why I suggested you use a snapshot of a previously built Forge server. Forge does a great deal of configuration during build time, including server hardening and nginx/php-fpm configs among others. Just keep in mind that if you build a server and then add it to Forge, you will have to do the server hardening and other configs yourself. You can find plenty of how-to's on the Digital Ocean site as well as on https://serversforhackers.com.

sherwinmdev's avatar

@ejdelmonico when you connect a brand new server as custom vps, you have to run a script that does pretty much everything as if forge provisioned the server. i used it with AWS EC2. but i had to create the server first and give forge access so it can do its thing.

if i could find a copy of the script, i'd link it but i believe this is a version of the script you need to run on the custom vps.

https://gist.github.com/slider23/35b9e6ce9ceda7b35b8d

don't use this script. forge will give you one with a unique token. a pop-up window will give you instructions on how to have the server run it. of course you have to have ssh access set up or it won't work.

there are firewall settings and pretty much the requirements included to run laravel and other applications. i could be wrong but custom vps should be similar if not the same as if you created the server with forge.

@jago86 you could pay for another forge account and connect to the other DO account. if it's for a paying client, pass on the cost to them. that could make it easier. but what's the fun in that? it's all about learning, right? :D

get comfortable with web servers, you're a developer ;)

TomVoxsen's avatar
Level 2

I just added a second DO account to the same Forge account by going to My Account -> Server Providers and then add New Provider.

Now on the Create Server page you can choose which Credentials (DO account) to use to provision your new server.

Works like a charm :D

5 likes

Please or to participate in this conversation.