How to Install Plex Media Server on a VPS

Plex is a widely-used media server platform offering a polished interface and broad device support, with both free and paid (Plex Pass) tiers unlocking additional features.

Prerequisites

  • Ubuntu 22.04/24.04 VPS: 2 vCPU, 4 GB RAM minimum
  • A Plex account (free to create)

Step 1 — Add the Plex Repository

curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -
echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list

Step 2 — Install Plex Media Server

sudo apt update
sudo apt install plexmediaserver -y

Step 3 — Verify the Service Is Running

sudo systemctl status plexmediaserver

Step 4 — Access the Setup Wizard

http://YOUR_SERVER_IP:32400/web

Sign in with your Plex account and follow the setup wizard to name your server and add media libraries.

Step 5 — Allow the Firewall Port

sudo ufw allow 32400/tcp

Step 6 — Add Media Libraries

Point Plex at your media directories — it fetches artwork and metadata automatically, similar to Jellyfin's approach.

Step 7 — Enable Remote Access

Under Settings → Remote Access, Plex attempts automatic port mapping; on a VPS with a public IP, this is typically straightforward compared to a home network behind NAT.

Understanding Plex's Cloud-Connected Architecture

Unlike Jellyfin, Plex routes some functionality (remote access discovery, account management) through Plex's own cloud infrastructure — a trade-off for its convenience and polish, worth being aware of if complete self-containment is a priority for you (in which case, see How to Install Jellyfin Media Server on a VPS instead).

Plex Pass Features

The paid Plex Pass tier unlocks hardware transcoding, live TV/DVR features, and other extras — evaluate whether these specific features matter for your use case before subscribing, since core media serving works fully on the free tier.

Adding HTTPS via Reverse Proxy

See How to Install Nginx Proxy Manager with Docker if you want a custom domain with SSL in front of Plex, though Plex also provides its own remote access URL with a Plex-issued certificate by default.

Managing Users and Sharing Your Library

Under Settings → Users & Sharing, invite friends/family by their Plex account email — each gets independent access without sharing your own account credentials.

Common Errors

"Not available outside your network" despite remote access being enabled — verify the firewall allows port 32400, and check Plex's remote access settings for the specific reported issue.

Transcoding fails or is very slow — verify server resources are adequate; consider Plex Pass's hardware transcoding if your VPS has compatible GPU access.

Continue Reading

Browse more articles in Media & Streaming Servers.

  • plex media server, plex vps installation, plex setup, self hosted plex
  • 0 Корисниците го најдоа ова како корисно
Дали Ви помогна овој одговор?

Понудени резултати

How to Install Jellyfin Media Server on a VPS

Jellyfin is a free, open-source media server — a fully self-hosted alternative to Plex or...

How to Set Up Nginx RTMP for Live Video Streaming

Nginx's RTMP module lets you run your own live video streaming server — accepting a stream...

How to Set Up HLS Streaming with Nginx

HTTP Live Streaming (HLS) delivers video by breaking it into small segments served over standard...

How to Install Icecast for Internet Radio Streaming

Icecast is a lightweight, open-source streaming server purpose-built for audio — ideal for...

How to Install PeerTube (Self-Hosted YouTube Alternative)

PeerTube is a decentralized, open-source video hosting platform — letting you run your own...