Anyway to relocate the default installation directories on Linux?

Is there a way to override the default installation directory of /var/lib to /opt/plexmediaserver

There is no way to override it at installation however you can use the standard systemd override.conf file to move them after that first installation.

Example:

/etc/systemd/system/plexmediaserver.service.d/override.conf

[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/opt/plexmediaserver/Library/Application Support"

With Plex stopped,

  1. Move Library from /var/lib/plexmediaserver to /opt/plexmediaserver
  2. Ensure user plex:plex owns /opt/plexmediaserver
  3. Ensure /opt is mounted with exec bit set (so the codecs work)

Thank you so much!!! Testing it now!!!

I keep a collection of tips & tricks

Everything appears to be working I relocated it to

Environment=“PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/opt/plexmediaserver/”

Make certain to check your transcoding codecs (the exec bit in fstab)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.