Final Touch

Ok some final adjustments to increase functionality:

  1. Increase upload max file size. Open the php.ini file and edit values:
    nano /etc/php/7.0/apache2/php.ini  
    	upload_max_filesize = 750M
    	post_max_size = 790M
    
  2. Let’s switch Apache DocumentRoot to point to /ocsinventory. Thanks to that we will be able to access our server using fqdn without /ocsinventory suffix:
    nano /etc/apache2/sites-enabled/default-ssl.conf
    //comment out original documentroot and change to below
    	DocumentRoot /usr/share/ocsinventory-reports/ocsreports
    
    nano /etc/apache2/sites-enabled/000-default.conf
    //comment out original documentroot and change to below
    	DocumentRoot /usr/share/ocsinventory-reports/ocsreports
    
    //restart apache
    service apache2 restart
    
  3. Now, go to server/config section and adjust the below fields according the below or to your values:
    DOWNLOAD 				on
    DOWNLOAD_CYCLE_LATENCY	15
    DOWNLOAD_FRAG_LATENCY	5
    DOWNLOAD_PERIOD_LATENCY	1
    DOWNLOAD_TIMEOUT		30
    DEPLOY					on
    DOWNLOAD_URI_FRAG		http://ocsng.domain.local/download
    DOWNLOAD_URI_INFO		https://ocsng.domain.local/download
    

Ok, now everything should work. OCS Inventory should be accesible both by using HTTP and HTTPS addresses. It should be secured and working well. Now we can proceed with building OCS Agent Package and deploy it to clients.