Install Muximux on Ubuntu 16.04 with nginx + PHP7

Muximux is hosted on github and is an alternative to HTPC Manager. You get a similar dashboard to manage all of your automation and media server apps like Plex, Sonarr, CouchPotato, SickRage, NZBGet, Ombi, Sabnzbd, NZB Hydra and more. This guide will show you how to install Muximux on Ubuntu 16.04 with nginx and PHP7.

Below you can see a screenshot from the Muximux github of the dashboard.

Install Muximux on Ubuntu 16.04

Install nginx

sudo apt update
sudo apt install nginx php7.0-fpm git

Clone the latest Muximux repository

cd /var/www
git clone https://github.com/mescon/Muximux muximux

Fix permissions

sudo chown -R www-data:www-data /var/www/muximux

Create an nginx vhost for Muximux

sudo nano /etc/nginx/sites-available/muximux

If you are using dynamic DNS then enter your domain name for the server_name variable.

You should add your local IP here (192.168.40.201) as well.

server {
    server_name htpcguides.crabdance.com 192.168.40.201;
    access_log   /var/log/nginx/muximux.access.log;
    error_log    /var/log/nginx/muximux.error.log;
    root /var/www/muximux/;
    index index.php;

location / {
    try_files $uri $uri/ /index.php?$args;
    }
    
location ~ \.php$ {
    try_files $uri =404;
    include fastcgi_params;
    fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

Ctrl+X, Y and Enter to Save and Exit

Symlink the muxmix virtual host to activate it

sudo ln -s /etc/nginx/sites-available/muximux /etc/nginx/sites-enabled/muximux

Verify the nginx configuration syntax is all good

sudo nginx -t

Restart nginx

sudo service nginx restart

Try accessing your Muximux installation by your local IP first.

You should consider securing Muximux with .htpasswd as shown here and protecting it with fail2ban.