Skip to content
Jacob Burley edited this page Jun 21, 2023 · 8 revisions

Be sure to install these packages: apt-get install nginx php8.2 php8.2-fpm php8.2-xml php8.2-ldap php8.2-mbstring php8.2-zip unzip zip php-sqlite3 libcurl3-dev

Example NGINX location

Assuming you have setup the proper symbolic link in the webroot:

ln -s /path/to/munkireport/public /var/www/html/munkireport
        root /var/www/html/munkireport;
        index index.php index.html;

        location / {
                try_files $uri $uri/ =404;
        }

        # pass PHP scripts to FastCGI server

        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
        }

Example NGINX location block with subdirectory

Assuming you have setup the proper symbolic link in the webroot:

ln -s /path/to/munkireport/public /path/to/web/root/report

The following location block should work to serve MunkiReport out of the /report subdirectory:

root     /path/to/web/root;

location /report {
    autoindex on;
    location ~* \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
        fastcgi_param SCRIPT_FILENAME  /media/Data/$fastcgi_script_name;
    }
}

Troubleshooting

If you receive the following error:

ERROR: https://xxx.xxx.com/index.php?/report/check_in failed, HTTP returncode 413 (request too large)

Edit the client_max_body_size in your NGINX config:

client_max_body_size 25MB;
Clone this wiki locally