How To Install Plex Media Server on AlmaLinux 9
In this tutorial, we will show you how to install Plex Media Server on AlmaLinux 9. For those of you who didn’t know, Plex Media Server has gained immense popularity as a versatile platform for organizing and streaming your media collection. If you are running AlmaLinux 9 on your server, you can harness the power of Plex to manage and enjoy your movies, music, photos, and more.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo
‘ to the commands to get root privileges. I will show you the step-by-step installation of Plex Media Server on AlmaLinux 9. You can follow the same instructions for CentOS and Rocky Linux or RHEL-based.
Prerequisites
- A server running one of the following operating systems: AlmaLinux 9.
- It’s recommended that you use a fresh OS install to prevent any potential issues.
- SSH access to the server (or just open Terminal if you’re on a desktop).
- An active internet connection. You’ll need an internet connection to download the necessary packages and dependencies for Plex.
- A
non-root sudo user
or access to theroot user
. We recommend acting as anon-root sudo user
, however, as you can harm your system if you’re not careful when acting as the root.
Install Plex Media Server on AlmaLinux 9
Step 1. Before diving into the installation process, ensure your AlmaLinux 9 system is up-to-date. Run the following commands in your terminal:
sudo dnf update
Step 2. Installing Plex Media Server on AlmaLinux 9.
To install Plex Media Server, we need to add the Plex repository to the system. Execute the following command:
[PlexRepo] name=PlexRepo baseurl=https://downloads.plex.tv/repo/rpm/$basearch/ enabled=1 gpgkey=https://downloads.plex.tv/plex-keys/PlexSign.key gpgcheck=1
Save and exit the file by pressing Ctrl+X
, then Y
, and finally Enter
.
With the repository and signing key in place, it’s time to install Plex Media Server. Run the following command:
sudo dnf install plexmediaserver
Plex Media Server is installed but not running by default. To start the Plex service and ensure it starts automatically at boot, execute the following commands:
sudo systemctl enable plexmediaserver sudo systemctl start plexmediaserver
Step 3. Access Plex Web Interface.
To configure and manage Plex, you need to access its web interface. Open a web browser on the machine where Plex is installed and navigate to:
http://localhost:32400/web
You will see the Plex account sign-in. You will need to sign up with a valid e-mail address to use the service.
Step 4. Troubleshooting.
Here are some common issues and their solutions:
-
Unable to Access Plex Web Interface: Ensure the Plex service is running, and the firewall allows access to port 32400.
-
Library Not Updating: Check your library settings and make sure your media files are organized correctly.
-
Remote Access Issues: Double-check your router’s port forwarding settings and Plex remote access configuration.
Congratulations! You have successfully installed Plex. Thanks for using this tutorial for installing Plex Media Server on your AlmaLinux 9 system. For additional help or useful information, we recommend you check the official Plex website.