{"id":3218,"date":"2018-04-04T14:27:45","date_gmt":"2018-04-04T10:27:45","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/centos-plex-media-server\/"},"modified":"2018-04-04T14:27:45","modified_gmt":"2018-04-04T10:27:45","slug":"how-to-install-plex-media-server-on-centos-7","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-plex-media-server-on-centos-7\/","title":{"rendered":"How to Install Plex Media Server on CentOS 7"},"content":{"rendered":"<p>Plex is a client-server media software suite. It has two main components, plex media server, and plex player.<\/p>\n<p>Plex media server is an application that allows you to organize your media files like video, audio, photo, and other media from online sources, then stream them\u00a0over the local network or over the internet. It can be installed on Windows, MacOS, Linux, and even FreeBSD system.<\/p>\n<p>Plex Player is the front-end that allows you to play your media files over the local or remote computer that running the Plex media server.<\/p>\n<p>In this tutorial, we will show you step-by-step how to install and configure Plex media server on your CentOS 7 server. We will install Plex Media Server from its own repository, then configure the Firewalld rules for the media server access, and finally, configure the Plex player using the Plex web app.<\/p>\n<h2 id=\"prerequisites\">Prerequisites<\/h2>\n<ul>\n<li>CentOS 7 system<\/li>\n<li>Root privileges<\/li>\n<\/ul>\n<h2 id=\"what-we-will-do\">What we will do<\/h2>\n<ol>\n<li>Add Plex Repository to the CentOS 7 System<\/li>\n<li>Install Plex Media Server on CentOS 7<\/li>\n<li>Configure Firewalld Rules for Plex Media Server<\/li>\n<li>Testing<\/li>\n<\/ol>\n<h2 id=\"step-add-plex-repository\">Step 1 &#8211; Add Plex Repository<\/h2>\n<p>The first step we need to do for this guide is to\u00a0add the Plex repository to our CentOS 7 system.<\/p>\n<p>Go to the &#8216;yum.repos.d&#8217; directory and create new repo file &#8216;plex.repo&#8217; using the <a href=\"https:\/\/www.howtoforge.com\/vim-basics\" target=\"_blank\" rel=\"noopener noreferrer\">vim editor<\/a>.<\/p>\n<p class=\"command\">cd \/etc\/yum.repos.d\/<br \/>vim plex.repo<\/p>\n<p>Paste the following Plex repository configuration there.<\/p>\n<pre class=\"system\"># Plex.repo file will allow dynamic install\/update of plexmediaserver.<br\/>[PlexRepo]<br\/>name=PlexRepo<br\/>baseurl=https:\/\/downloads.plex.tv\/repo\/rpm\/$basearch\/<br\/>enabled=1<br\/>gpgkey=https:\/\/downloads.plex.tv\/plex-keys\/PlexSign.key<br\/>gpgcheck=1<\/pre>\n<p>Save and exit.<\/p>\n<p>Plex repository has been added to the CentOS 7 system.<\/p>\n<p>Now we will install Plex media server on our CentOS server.<\/p>\n<p>Run the yum command below.<\/p>\n<p class=\"command\">sudo yum -y install plexmediaserver<\/p>\n<p>After the installation is complete, start the plex service and enable\u00a0it to launch everytime at system boot using the systemctl commands below.<\/p>\n<p class=\"command\">systemctl start plexmediaserver<br \/>systemctl enable plexmediaserver<\/p>\n<p>Plex media server has been installed &#8211; check it using the following command.<\/p>\n<p class=\"command\">systemctl status plexmediaserver<\/p>\n<p>And you will get the result as shown below.<\/p>\n<p><a class=\"fancybox\" id=\"img-1\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_plex_media_server_on_centos_7\/big\/1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-plex-media-server-on-centos-7.png\" alt=\"Start Plex Media Server\" width=\"500\" height=\"141\" title=\"\"><\/a><\/p>\n<p>The Plex Media Server is now running on the CentOS 7 server.<\/p>\n<p>In this tutorial, we will enable Firewalld services. Make sure firewalld packages are installed on the system.<\/p>\n<p>Or you can install them\u00a0using the yum command below.<\/p>\n<p class=\"command\">sudo yum -y install firewalld<\/p>\n<p>Now start the firewalld service and enable\u00a0it to launch every time at system boot.<\/p>\n<p class=\"command\">systemctl start firewalld<br \/>systemctl enable firewalld<\/p>\n<p>Next, we need to add new firewalld configuration for our plex installation. Plex media server needs some port in the\u00a0&#8216;LISTEN&#8217; state, so we will create new firewalld XML configuration.<\/p>\n<p>Go to the &#8216;\/etc\/firewalld\/service&#8217; directory and create a new service firewalld configuration &#8216;plex.xml&#8217; using <a href=\"https:\/\/www.howtoforge.com\/vim-basics\" target=\"_blank\" rel=\"noopener noreferrer\">vim<\/a>.<\/p>\n<p class=\"command\">cd \/etc\/firewalld\/services\/<br \/>vim plexmediaserver.xml<\/p>\n<p>There, paste the following configuration.<\/p>\n<pre class=\"system\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;<br\/>&lt;service&gt;<br\/>\u00a0 &lt;short&gt;plexmediaserver&lt;\/short&gt;<br\/>\u00a0 &lt;description&gt;Ports required by plexmediaserver.&lt;\/description&gt;<br\/>\u00a0 &lt;port protocol=\"tcp\" port=\"32400\"&gt;&lt;\/port&gt;<br\/>\u00a0 &lt;port protocol=\"udp\" port=\"1900\"&gt;&lt;\/port&gt;<br\/>\u00a0 &lt;port protocol=\"tcp\" port=\"3005\"&gt;&lt;\/port&gt;<br\/>\u00a0 &lt;port protocol=\"udp\" port=\"5353\"&gt;&lt;\/port&gt;<br\/>\u00a0 &lt;port protocol=\"tcp\" port=\"8324\"&gt;&lt;\/port&gt;<br\/>\u00a0 &lt;port protocol=\"udp\" port=\"32410\"&gt;&lt;\/port&gt;<br\/>\u00a0 &lt;port protocol=\"udp\" port=\"32412\"&gt;&lt;\/port&gt;<br\/>\u00a0 &lt;port protocol=\"udp\" port=\"32413\"&gt;&lt;\/port&gt;<br\/>\u00a0 &lt;port protocol=\"udp\" port=\"32414\"&gt;&lt;\/port&gt;<br\/>\u00a0 &lt;port protocol=\"tcp\" port=\"32469\"&gt;&lt;\/port&gt;<br\/>&lt;\/service&gt;<\/pre>\n<p>Save and exit.<\/p>\n<p>Now add the &#8216;plexmediaserver&#8217; service to the firewalld services list, then reload the configuration.<\/p>\n<p class=\"command\">sudo firewall-cmd &#8211;add-service=plexmediaserver &#8211;permanent<br \/>sudo firewall-cmd &#8211;reload<\/p>\n<p>And you will get the result as below.<\/p>\n<p><a class=\"fancybox\" id=\"img-2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_plex_media_server_on_centos_7\/big\/2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-plex-media-server-on-centos-7-1.png\" alt=\"Configure the firewall\" width=\"500\" height=\"159\" title=\"\"><\/a><\/p>\n<p>The plexmediaserver service has been added to firewalld &#8211; check it using the firewalld command below.<\/p>\n<p class=\"command\">firewall-cmd &#8211;list-all<\/p>\n<p>And you should\u00a0get &#8216;plexmediaserver&#8217; on service list.<\/p>\n<p><a class=\"fancybox\" id=\"img-3\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_plex_media_server_on_centos_7\/big\/3.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-plex-media-server-on-centos-7-2.png\" alt=\"List firewall ports\" width=\"434\" height=\"360\" title=\"\"><\/a><\/p>\n<p>Before configuring the Plex media server, make sure you have an account for Plex. If not, you can register using the URL below.<\/p>\n<p><a href=\"https:\/\/app.plex.tv\/\" target=\"_blank\" rel=\"noopener\">https:\/\/app.plex.tv\/<\/a><\/p>\n<p>And then login to your account.<\/p>\n<p>If you&#8217;re a registered user and logged in with your browser, you can open your Plex media server installation\u00a0url in the following way.<\/p>\n<p><a href=\"http:\/\/192.168.33.10:32400\/web\/\">http:\/\/192.168.33.10:32400\/web\/<\/a><\/p>\n<p>And you will be redirected to the plex login as below.<\/p>\n<p><a class=\"fancybox\" id=\"img-4\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_plex_media_server_on_centos_7\/big\/4.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-plex-media-server-on-centos-7-3.png\" alt=\"Plex media server login\" width=\"500\" height=\"263\" title=\"\"><\/a><\/p>\n<p>Click the &#8216;<strong>SIGN IN<\/strong>&#8216; button.<\/p>\n<p>And you will get the page about how plex works &#8211; just click the GOT IT button.<\/p>\n<p><a class=\"fancybox\" id=\"img-5\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_plex_media_server_on_centos_7\/big\/5.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-plex-media-server-on-centos-7-4.png\" alt=\"How Plex works\" width=\"500\" height=\"268\" title=\"\"><\/a><\/p>\n<p>Now the server setup page.<\/p>\n<p><a class=\"fancybox\" id=\"img-6\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_plex_media_server_on_centos_7\/big\/6.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-plex-media-server-on-centos-7-5.png\" alt=\"Plex server setup\" width=\"500\" height=\"280\" title=\"\"><\/a><\/p>\n<p>Type your server name and click the &#8216;<strong>NEXT<\/strong>&#8216; button.<\/p>\n<p>Now you will see the page for plex library configuration.<\/p>\n<p><a class=\"fancybox\" id=\"img-7\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_plex_media_server_on_centos_7\/big\/7.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-plex-media-server-on-centos-7-6.png\" alt=\"Organize your media\" width=\"500\" height=\"266\" title=\"\"><\/a><\/p>\n<p>Click the &#8216;<strong>NEXT<\/strong>&#8216; button again.<\/p>\n<p>And the plexmediaserver configuration has been completed &#8211; click the &#8216;DONE&#8217; button.<\/p>\n<p><a class=\"fancybox\" id=\"img-8\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_plex_media_server_on_centos_7\/big\/8.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-plex-media-server-on-centos-7-7.png\" alt=\"Gat plex apps\" width=\"500\" height=\"277\" title=\"\"><\/a><\/p>\n<p>And you will get the plex Dashboard.<\/p>\n<p><a class=\"fancybox\" id=\"img-9\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_plex_media_server_on_centos_7\/big\/9.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-plex-media-server-on-centos-7-8.png\" alt=\"Plex dashboard\" width=\"500\" height=\"240\" title=\"\"><\/a><\/p>\n<p>Now you can add media files to your plex media server.<\/p>\n<p>Below is an example library\u00a0from our Plex installation.<\/p>\n<p><a class=\"fancybox\" id=\"img-10\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_plex_media_server_on_centos_7\/big\/10.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-plex-media-server-on-centos-7-9.png\" alt=\"Plex example media\" width=\"500\" height=\"263\" title=\"\"><\/a><\/p>\n<p>Plex Media Server installation and configuration on CentOS 7 server has been completed successfully.<\/p>\n<h2 id=\"reference\">Reference<\/h2>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<p>\n<a href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fcentos-plex-media-server%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-plex-media-server-on-centos-7-10.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fcentos-plex-media-server%2F&amp;text=How+to+Install+Plex+Media+Server+on+CentOS+7&amp;via=howtoforgecom&amp;related=howtoforgecom\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-plex-media-server-on-centos-7-11.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/howtoforgecom\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-plex-media-server-on-centos-7-12.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fcentos-plex-media-server%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/04\/how-to-install-plex-media-server-on-centos-7-13.png\" height=\"20\" alt=\"\" title=\"\"><\/a>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Plex is a client-server media software suite. It has two main components, plex media server, and plex player. Plex media server is an application that allows you to organize your media files like video, audio, photo, and other media from online sources, then stream them\u00a0over the local network or over the internet. It can be &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-3218","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/3218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=3218"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/3218\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=3218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=3218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=3218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}