Docs · 6 min read

Set up a fresh VPS for Magento or WordPress with AI

An empty VPS becomes a secure Magento shop in about 30 minutes, or a WordPress site in less. What to prepare, what your AI does, and what you get.

Before you start

  1. A plan that can make changes: Starter or up. Free can look at a server and tell you what it would do, but not set it up.
  2. Root on the server. Setting up a fresh server means packages, services, users and the firewall, so run the install line as root here. Sites can run under their own Linux user later.
  3. Enough memory: at least 4 GB of RAM for Magento, 2 GB for WordPress. Your AI checks the size first and tells you if it is too small.
  4. A supported system: Debian, Ubuntu, Rocky Linux or AlmaLinux (RHEL also works), x86_64 or ARM64, at any provider that gives you root.
  5. Your domain's DNS already pointing at the server's IP, so the certificate can be issued.
  6. For Magento Open Source, your Adobe Marketplace access keys. Mage-OS needs none.

Connect the server

  1. Dashboard, Step 2: name the server and copy the install line.
  2. Run it on the server as root. The agent installs as a service and turns green within seconds. It dials out over HTTPS, so you open no ports.
  3. Open changes on the server for the length of the job (1 to 8 hours). Outside that window your AI can look but not change anything.

No server yet? Under Step 2, choose Create one for me, paste an API token from your own Hetzner Cloud or DigitalOcean account, and pick the location, size and Ubuntu 24.04, Debian 12 or Rocky Linux. The server installs the agent on first boot and comes online in about a minute. It is your server, billed by your provider; AskYourStack uses the token for that one request and does not keep it.

Have these answers ready

MagentoWordPress
The shop's domainThe site's domain
Mage-OS or Magento Open Source (with your Adobe keys)Site title
Admin email and nameAdmin email
Store language, currency and time zoneA random admin username is chosen for you

Then paste the fresh Magento or fresh WordPress prompt. Your AI asks only for what you have not already given.

What happens

  1. It looks first: distribution, RAM, disk and what already listens. If the server is not actually empty, it stops and asks.
  2. Base system: updates, a swap file sized to the RAM, the clock, hostname and time zone, the firewall (SSH first, then HTTP and HTTPS), fail2ban and automatic security updates. If the kernel was upgraded, it asks when to reboot.
  3. The stack and the site. Long steps run as background jobs, so a slow mirror does not time out the chat. A Magento install takes about 30 minutes.
  4. Approvals: some steps, such as package removals, deletes and securing the database, wait for your approval on askyourstack.com. About seven did in our Magento test run.
  5. SSH last: switching to key-only login is offered only if a key is installed and you confirm you log in with it, as its own step.
  6. A short report: versions, URL, admin path and next steps. Passwords are written to a root-only file, never pasted into the chat.

What you end up with

MagentoWordPress
Webnginx, PHP-FPMnginx, PHP-FPM
DatabaseMariaDBMariaDB
Search and cacheOpenSearch, ValkeyRedis
Mode and cronProduction mode, cronSystem cron
HTTPSLet's EncryptSSL certificate

Afterwards

  1. Set up nightly backups that leave the server, and test a restore.
  2. Sign in to the admin and turn on two-factor authentication.
  3. Have the server reviewed once it is live.
  4. Watch the Monday report and the alerts.

More: VPS setup with AI, Magento with AskYourStack, WordPress with AskYourStack.

Try it on your own server

Free connects one server in read-only mode: your AI can look, read logs and explain what is wrong.

Connect your server
Next guide
Let AI work on a live Magento or WordPress site safely