How to upgrade munkireport-php (2.x to 3.x) on MacOS (Server)

 
  1. Rename reports folder to reportsOLD
  2. Copy the updated files to the repo (rename to reports)
  3. Copy the config.php(root) & database(/app/db/)
  4. Upgrade server to PHP v7 
 
sudo curl -s https://php-osx.liip.ch/install.sh | bash -s 7.1 
   
    Edit /Library/Server/Web/Config/apache2/httpd_server_app.conf 
    Comment out the default php5 module 
 
#LoadModule php5_module libexec/apache2/libphp5.so 
    
    Add a path to include a custom import for PHP 7 
 
#Updated php module settings 
Include /private/etc/apache2/custom/php7-include.conf 
    
    Create a new directory for custom
 
sudo mkdir  /etc/apache2/custom
 
    Create the file /etc/apache2/custom/php7-include.conf with the contents 
 
LoadModule php7_module /usr/local/php5/libphp7.so      
<IfModule php7_module>     
        AddType application/x-httpd-php .php     
        AddType application/x-httpd-php-source .phps
    <IfModule dir_module>         
        DirectoryIndex index.html index.php     
    </IfModule> 
</IfModule> 
                
    Run
export PATH=/usr/local/php5/bin:$PATH
    (php -v to test)
 
    Restart the Server.app httpd process 
sudo launchctl stop com.apple.server.httpd
sudo launchctl start com.apple.server.httpd
           
        
  1. CD to reports
  1. Upgrade:
php composer.phar install –no-dev –no-suggest –optimize-autoloader
  1. The new URL will have /public at the end.
  2. Create a package to update the clients to look at the the new URL (/public) – Use Munki
or do it the correct way by following this : https://github.com/munkireport/munkireport-php/wiki/Server-setup#source-files

Auto setup the Adobe Update Server Setup Tool (AUSST)

Launch Terminal and type:

bash <(curl -Ls https://raw.githubusercontent.com/djquazzi/Scripts/master/ausstsetup.sh)

Munki tools System Preference Pane

Very simple way of viewing some client side details of an enrolled munki client

http://pathofleastresistance.co.za/downloads/Munki.prefPane.zip

Enjoy