{"id":11484,"date":"2022-02-06T08:52:04","date_gmt":"2022-02-06T05:52:04","guid":{"rendered":"https:\/\/kifarunix.com\/?p=11484"},"modified":"2024-03-09T10:13:44","modified_gmt":"2024-03-09T07:13:44","slug":"install-and-setup-ocs-ng-inventory-server-on-centos-7","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-and-setup-ocs-ng-inventory-server-on-centos-7\/","title":{"rendered":"Install and Setup OCS NG Inventory Server on CentOS 7"},"content":{"rendered":"\n
In this tutorial, you will learn how to install and setup OCS NG Inventory Server on CentOS 7. OCS (Open Computers and Software Inventory Next Generation)<\/a> is an opensource assets inventory management solution. It is used to inventor hardware and software details of IT assets either using the OCS Inventory Agent or SNMP polling for assets that the agent cannot be deployed (e.g routers, switches, printers<\/em>. Inventoried results can be visualized through a web interface.<\/p>\n\n\n\n Before installing OCS Inventory server, a list of required packages have to be installed as stated from the\u00a0prerequisites<\/a>\u00a0page on OCS wikis.<\/p>\n\n\n\n To begin with, update the system<\/p>\n\n\n\n Install additional EPEL repository, additional tools and enable PHP 7.2 Remi repository<\/p>\n\n\n\n OCS Administration console<\/em>\u00a0is a web application hence it requires the LAMP\/LEMP Stack. In this tutorial we will install the LAMP Stack.Thus, install LAMP stack as follows;<\/p>\n\n\n\n Start and Enable Apache services.<\/p>\n\n\n\n Allow Apache external access on firewalld<\/p>\n\n\n\n Install and Configure MariaDB Database Server<\/p>\n\n\n\n Start and enable MariaDB service.<\/p>\n\n\n\n Run MySQL initial security script and set root user password:<\/p>\n\n\n\n Login to database as root user and create OCS-NG user and database and assign all rights on OCS-NG database to the user.<\/p>\n\n\n\n For demonstration purposes, will be using default ocs configarations i.e<\/p> DB_NAME:<\/strong> ocsweb<\/p> DB_User:<\/strong> ocs<\/p> DB_Password:<\/strong> ocs<\/p> NOTE: Change these values in a production environment for security purposes.<\/p><\/blockquote>\n\n\n\n Replace the names of the database with the one set for your environment.<\/strong><\/p>\n\n\n\n Install OCS communication server required PERL modules.<\/p>\n\n\n\n Install Apache DBI package which is not available on official and Epel repository<\/p>\n\n\n\n Install Administration console required PHP modules<\/p>\n\n\n\n Since Apache Web server is already installed, proceed and install install php 7.2, PHP Zip support and dependacies<\/p>\n\n\n\n Proceed to download OCS NG server tarball \u201cOCSNG_UNIX_SERVER-2.4.x.tar.gz\u201d from OCS Inventory website (at the time of writing 2.9.2<\/em>).<\/p>\n\n\n\n Extract the contents of the tarball.<\/p>\n\n\n\n Install OCS-NG Inventory server by running the setup script:<\/p>\n\n\n\n Follow through the prompts to install OCS-NG inventory accordingly. Press ENTER<\/strong> to accept the defaults.<\/p>\n\n\n\n For any installation issues, you can check on the log file, Confirm\/configure DB settings on:<\/p>\n\n\n\n configs<\/p>\n\n\n\n _<\/p>\n\n\n\n Define the database configs;<\/p>\n\n\n\n…\n $ENV{OCS_DB_HOST} = ‘localhost’;\n $ENV{OCS_DB_PORT} = ‘3306’;\n $ENV{OCS_DB_LOCAL} = ‘ocsweb’;\n $ENV{OCS_DB_USER} = ‘ocs’;\n $ENV{OCS_DB_PWD} = ‘ocs’;<\/b>\n…\n\n\n\n\n Database configs<\/p>\n\n\n\n Save and exit the configs file after making the changes.<\/p>\n\n\n\n Set the proper permissions and ownership of OCS configuration files.<\/p>\n\n\n\n Set SELinux permissions on web server configuration files.<\/p>\n\n\n\n Edit the PHP OCS recommends disabling\u00a0 These settings define the maximum life time of the script and the time that the script should spend in accepting input.<\/p>\n\n\n\n Adjust file upload limit size:<\/p>\n\n\n\n Additionally you can adjust size of memory for php engine.<\/p>\n\n\n\n Restart Apache and MariaDB.<\/p>\n\n\n\n Navigate to\u00a0 Configure OCS Inventory database connection details and click Send.<\/strong><\/p>\n\n\n\n You might get a warning message about file upload size depending on the size limit set on php.ini file. This can be ignored or increase the size if you will be uploading packages greater than 100MB as stated in the warning message.<\/strong><\/em><\/p>\n\n\n\n Next, click\u00a0Click here to enter OCS-NG GUI<\/strong><\/em>\u00a0to login to OCS web interface.<\/p>\n\n\n\n Use the default credentials:<\/p>\n\n\n\n If prompted to run a database update, click\u00a0update<\/strong>\u00a0and\u00a0proceed to OCS login interface.<\/strong><\/p>\n\n\n\n Reset the password: Settings gear > My account > Password.<\/strong><\/p>\n\n\n\n Remove the installation script.<\/p>\n\n\n\n That marks the end of our guide on how to install and setup OCS NG Inventory server on CentOS 7.<\/p>\n\n\n\n Reference: OCS Inventory Documentation<\/a>.<\/p>\n\n\n\n Install ManageEngine AssetExplorer on CentOS 7\/Fedora 30\/29<\/a><\/p>\n\n\n\nInstall and Setup OCS NG Inventory Server on CentOS 7<\/h2>\n\n\n\n
Run System Update<\/h3>\n\n\n\n
yum update -y<\/code><\/pre>\n\n\n\n
Install Additional Required Repositories<\/h3>\n\n\n\n
yum install epel-release yum-utils wget vim -y <\/code><\/pre>\n\n\n\n
yum install http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm -y<\/code><\/pre>\n\n\n\n
yum-config-manager --enable remi-php7.2<\/code><\/pre>\n\n\n\n
Install and Setup LAMP Stack<\/h3>\n\n\n\n
yum install httpd -y<\/code><\/pre>\n\n\n\n
systemctl enable --now httpd<\/code><\/pre>\n\n\n\n
firewall-cmd --permanent --add-service=http\nfirewall-cmd --reload<\/code><\/pre>\n\n\n\n
yum install mariadb mariadb-server mariadb-client -y<\/code><\/pre>\n\n\n\n
systemctl enable --now mariadb<\/code><\/pre>\n\n\n\n
mysql_secure_installation<\/code><\/pre>\n\n\n\n
\nEnter current password for root (enter for none): \nOK, successfully used password, moving on...\n...\nSet root password? [Y\/n] y\nNew password: \nRe-enter new password: \nPassword updated successfully!\nReloading privilege tables..\n ... Success!\n...\nRemove anonymous users? [Y\/n] y\n ... Success!\n...\nDisallow root login remotely? [Y\/n] y\n ... Success!\n...\nRemove test database and access to it? [Y\/n] y\n - Dropping test database...\n ... Success!\n - Removing privileges on test database...\n ... Success!\n...\nReload privilege tables now? [Y\/n] y\n ... Success!\n\nCleaning up...\n<\/code><\/pre>\n\n\n\n
mysql -u root -p<\/code><\/pre>\n\n\n\n
create database ocsweb;<\/code><\/pre>\n\n\n\n
CREATE USER 'ocs'@'localhost' IDENTIFIED BY 'ocs';<\/code><\/pre>\n\n\n\n
GRANT ALL PRIVILEGES ON ocsweb. * TO 'ocs'@'localhost' IDENTIFIED BY 'ocs';<\/code><\/pre>\n\n\n\n
flush privileges;
exit;<\/code><\/pre>\n\n\n\nyum install perl-XML-Simple perl-Compress-Zlib perl-DBI perl-DBD-MySQL perl-Net-IP perl-SOAP-Lite perl-Archive-Zip perl-Mojolicious perl-Plack perl-XML-Entities perl-Switch mod_perl -y<\/code><\/pre>\n\n\n\n
wget http:\/\/rpm.ocsinventory-ng.org\/enterprise\/7\/x86_64\/perl-Apache-DBI-1.12-2.el7.ocs.noarch.rpm\nyum install .\/perl-Apache-DBI-1.12-2.el7.ocs.noarch.rpm -y<\/code><\/pre>\n\n\n\n
yum install php php-pecl-zip perl-XML-Simple perl-DBI perl-DBD-MySQL perl-Net-IP php-mbstring php-gd php-mysqlnd php-xml -y<\/code><\/pre>\n\n\n\n
Install OCS NG Management Server<\/h3>\n\n\n\n
wget https:\/\/github.com\/OCSInventory-NG\/OCSInventory-ocsreports\/releases\/download\/2.9.2\/OCSNG_UNIX_SERVER-2.9.2.tar.gz<\/code><\/pre>\n\n\n\n
tar xzf OCSNG_UNIX_SERVER-2.9.2.tar.gz <\/code><\/pre>\n\n\n\n
cd OCSNG_UNIX_SERVER-2.9.2\nsh setup.sh<\/code><\/pre>\n\n\n\n
\n+----------------------------------------------------------+\n| |\n| Welcome to OCS Inventory NG Management server setup ! |\n| |\n+----------------------------------------------------------+\n\nTrying to determine which OS or Linux distribution you use\n+----------------------------------------------------------+\n| Checking for Apache web server binaries !\t\t\t\t|\n+----------------------------------------------------------+\n\nCAUTION: If upgrading Communication server from OCS Inventory NG 1.0 RC2 and\nprevious, please remove any Apache configuration for Communication Server!\n\nDo you wish to continue ([y]\/n)?y\nAssuming Communication server 1.0 RC2 or previous is not installed\non this computer.\n\nStarting OCS Inventory NG Management server setup from folder \/root\/OCSNG_UNIX_SERVER-2.9.2\nStoring log in file \/root\/OCSNG_UNIX_SERVER-2.9.2\/ocs_server_setup.log\n\n+----------------------------------------------------------+\n| Checking for database server properties...\t\t\t |\n+----------------------------------------------------------+\n\nYour MySQL client seems to be part of MySQL version 5.5.\nYour computer seems to be running MySQL 4.1 or higher, good ;-)\n\nWhich host is running database server [localhost] ?\nOK, database server is running on host localhost ;-)\n\nOn which port is running database server [3306] ?\nOK, database server is running on port 3306 ;-)\n\n\n+----------------------------------------------------------+\n| Checking for Apache web server daemon...\t\t\t\t|\n+----------------------------------------------------------+\n\nWhere is Apache daemon binary [\/usr\/sbin\/httpd] ?\nOK, using Apache daemon \/usr\/sbin\/httpd ;-)\n\n\n+----------------------------------------------------------+\n| Checking for Apache main configuration file...\t\t |\n+----------------------------------------------------------+\nWhere is Apache main configuration file \n\n[\/etc\/httpd\/conf\/httpd.conf] ?\nOK, using Apache main configuration file \/etc\/httpd\/conf\/httpd.conf ;-)\n\n\n+----------------------------------------------------------+\n| Checking for Apache user account...\t\t\t\t\t |\n+----------------------------------------------------------+\n\nWhich user account is running Apache web server [apache] ?\nOK, Apache is running under user account apache ;-)\n\n\n+----------------------------------------------------------+\n| Checking for Apache group...\t\t\t\t\t\t\t|\n+----------------------------------------------------------+\n\nWhich user group is running Apache web server [apache] ?\nOK, Apache is running under users group apache ;-)\n\n\n+----------------------------------------------------------+\n| Checking for Apache Include configuration directory... |\n+----------------------------------------------------------+\n\nSetup found Apache Include configuration directory in\n\/etc\/httpd\/conf.d.\nSetup will put OCS Inventory NG Apache configuration in this directory.\nWhere is Apache Include configuration directory [\/etc\/httpd\/conf.d] ?\nOK, Apache Include configuration directory \/etc\/httpd\/conf.d found ;-)\n\n\n+----------------------------------------------------------+\n| Checking for PERL Interpreter...\t\t\t\t\t\t|\n+----------------------------------------------------------+\n\nFound PERL interpreter at <\/usr\/bin\/perl> ;-)\nWhere is PERL interpreter binary [\/usr\/bin\/perl] ?\nOK, using PERL interpreter \/usr\/bin\/perl ;-)\n\n\nDo you wish to setup Communication server on this computer ([y]\/n)?y\n\n\n+----------------------------------------------------------+\n| Checking for Make utility... |\n+----------------------------------------------------------+\n\nOK, Make utility found at <\/usr\/bin\/make> ;-)\n\n+----------------------------------------------------------+\n| Checking for Apache mod_perl version... |\n+----------------------------------------------------------+\n\nChecking for Apache mod_perl version 1.99_22 or higher\nFound that mod_perl version 1.99_22 or higher is available.\nOK, Apache is using mod_perl version 1.99_22 or higher ;-)\n\n+----------------------------------------------------------+\n| Checking for Communication server log directory... |\n+----------------------------------------------------------+\n\nCommunication server can create detailed logs. This logs can be enabled\nby setting integer value of LOGLEVEL to 1 in Administration console\nmenu Configuration.\nWhere to put Communication server log directory [\/var\/log\/ocsinventory-server] ?\nOK, Communication server will put logs into directory \/var\/log\/ocsinventory-server ;-)\n\n+----------------------------------------------------------------------------+\n| Checking for Communication server plugins configuration directory... |\n+----------------------------------------------------------------------------+\n\nCommunication server need a directory for plugins configuration files. \nWhere to put Communication server plugins configuration files [\/etc\/ocsinventory-server\/plugins] ?\nOK, Communication server will put plugins configuration files into directory \/etc\/ocsinventory-server\/plugins ;-)\n\n+-------------------------------------------------------------------+\n| Checking for Communication server plugins perl directory... |\n+-------------------------------------------------------------------+\n\nCommunication server need a directory for plugins Perl modules files.\nWhere to put Communication server plugins Perl modules files [\/etc\/ocsinventory-server\/perl] ?\nOK, Communication server will put plugins Perl modules files into directory \/etc\/ocsinventory-server\/perl ;-)\n\n\n+----------------------------------------------------------+\n| Checking for required Perl Modules...\t\t\t\t\t|\n+----------------------------------------------------------+\n\nChecking for DBI PERL module...\nFound that PERL module DBI is available.\nChecking for Apache::DBI PERL module...\nFound that PERL module Apache::DBI is available.\nChecking for DBD::mysql PERL module...\nFound that PERL module DBD::mysql is available.\nChecking for Compress::Zlib PERL module...\nFound that PERL module Compress::Zlib is available.\nChecking for XML::Simple PERL module...\nFound that PERL module XML::Simple is available.\nChecking for Net::IP PERL module...\nFound that PERL module Net::IP is available.\nChecking for Archive::Zip Perl module...\nFound that PERL module Archive::Zip is available.\n\n\nDo you wish to setup Rest API server on this computer ([y]\/n)?\n\n+----------------------------------------------------------+\n| Checking for REST API Dependencies ... \t\t |\n+----------------------------------------------------------+\n\nFound that PERL module Mojolicious::Lite is available.\nFound that PERL module Switch is available.\nFound that PERL module Plack::Handler is available.\n\n+----------------------------------------------------------+\n| Configuring REST API Server files ... \t\t |\n+----------------------------------------------------------+\nWhere do you want the API code to be store [\/usr\/lib64\/perl5\/vendor_perl] ?\n+----------------------------------------------------------+\n| OK, looks good ;-) |\n| |\n| Configuring Communication server Perl modules... |\n+----------------------------------------------------------+\nChecking if your kit is complete...\nLooks good\nWriting Makefile for Apache::Ocsinventory\n\n+----------------------------------------------------------+\n| OK, looks good ;-) |\n| |\n| Preparing Communication server Perl modules... |\n+----------------------------------------------------------+\n\n\n+----------------------------------------------------------+\n| OK, prepare finshed ;-) |\n| |\n| Installing Communication server Perl modules... |\n+----------------------------------------------------------+\n\n\n+----------------------------------------------------------+\n| OK, Communication server Perl modules install finished;-)|\n| |\n| Creating Communication server log directory... |\n+----------------------------------------------------------+\n\nCreating Communication server log directory \/var\/log\/ocsinventory-server.\n\nFixing Communication server log directory files permissions.\nConfiguring logrotate for Communication server.\nRemoving old communication server logrotate file \/etc\/logrotate.d\/ocsinventory-NG\nWriting communication server logrotate to file \/etc\/logrotate.d\/ocsinventory-server\n\n\n+----------------------------------------------------------------------+\n| OK, Communication server log directory created ;-) |\n| |\n| Creating Communication server plugins configuration directory... |\n+----------------------------------------------------------------------+\n\nCreating Communication server plugins configuration directory \/etc\/ocsinventory-server\/plugins.\n\n\n+----------------------------------------------------------------------+\n| OK, Communication server plugins configuration directory created ;-) |\n| |\n| Creating Communication server plugins Perl directory... |\n+----------------------------------------------------------------------+\n\nCreating Communication server plugins Perl directory \/etc\/ocsinventory-server\/perl.\n\n\n+----------------------------------------------------------------------+\n| OK, Communication server plugins Perl directory created ;-) |\n| |\n| Now configuring Apache web server... |\n+----------------------------------------------------------------------+\n\nTo ensure Apache loads mod_perl before OCS Inventory NG Communication Server,\nSetup can name Communication Server Apache configuration file\n'z-ocsinventory-server.conf' instead of 'ocsinventory-server.conf'.\nDo you allow Setup renaming Communication Server Apache configuration file\nto 'z-ocsinventory-server.conf' ([y]\/n) ?y\nOK, using 'z-ocsinventory-server.conf' as Communication Server Apache configuration file\nRemoving old communication server configuration to file \/etc\/httpd\/conf.d\/ocsinventory.conf\nWriting communication server configuration to file \/etc\/httpd\/conf.d\/z-ocsinventory-server.conf\n\n+----------------------------------------------------------------------+\n| OK, Communication server setup successfully finished ;-) |\n| |\n| Please, review \/etc\/httpd\/conf.d\/z-ocsinventory-server.conf |\n| to ensure all is good. Then restart Apache daemon. |\n+----------------------------------------------------------------------+\n\n\nDo you wish to setup Administration Server (Web Administration Console)\n on this computer ([y]\/n)?y\n\n+----------------------------------------------------------+\n| Checking for Administration Server directories... |\n+----------------------------------------------------------+\n\nCAUTION: Setup now install files in accordance with Filesystem Hierarchy\nStandard. So, no file is installed under Apache root document directory\n(Refer to Apache configuration files to locate it).\nIf you're upgrading from OCS Inventory NG Server 1.01 and previous, YOU\nMUST REMOVE (or move) directories 'ocsreports' and 'download' from Apache\nroot document directory.\nIf you choose to move directory, YOU MUST MOVE 'download' directory to\nAdministration Server writable\/cache directory (by default\n\/var\/lib\/ocsinventory-reports), especially if you use deployment feature.\n\nDo you wish to continue ([y]\/n)?\nAssuming directories 'ocsreports' and 'download' removed from\nApache root document directory.\n\nWhere to copy Administration Server static files for PHP Web Console\n[\/usr\/share\/ocsinventory-reports] ?\nOK, using directory \/usr\/share\/ocsinventory-reports to install static files ;-)\n\nWhere to create writable\/cache directories for deployment packages,\nadministration console logs, IPDiscover and SNMP [\/var\/lib\/ocsinventory-reports] ?\nOK, writable\/cache directory is \/var\/lib\/ocsinventory-reports ;-)\n\n\n+----------------------------------------------------------+\n| Checking for required Perl Modules... |\n+----------------------------------------------------------+\n\nChecking for DBI PERL module...\nFound that PERL module DBI is available.\nChecking for DBD::mysql PERL module...\nFound that PERL module DBD::mysql is available.\nChecking for XML::Simple PERL module...\nFound that PERL module XML::Simple is available.\nChecking for Net::IP PERL module...\nFound that PERL module Net::IP is available.\n\n+----------------------------------------------------------+\n| Installing files for Administration server... |\n+----------------------------------------------------------+\n\nCreating PHP directory \/usr\/share\/ocsinventory-reports\/ocsreports.\nCopying PHP files to \/usr\/share\/ocsinventory-reports\/ocsreports.\nFixing permissions on directory \/usr\/share\/ocsinventory-reports\/ocsreports.\nCreating database configuration file \/usr\/share\/ocsinventory-reports\/ocsreports\/dbconfig.inc.php.\nCreating IPDiscover directory \/var\/lib\/ocsinventory-reports\/ipd.\nFixing permissions on directory \/var\/lib\/ocsinventory-reports\/ipd.\nCreating packages directory \/var\/lib\/ocsinventory-reports\/download.\nFixing permissions on directory \/var\/lib\/ocsinventory-reports\/download.\nCreating snmp mibs directory \/var\/lib\/ocsinventory-reports\/snmp.\nFixing permissions on directory \/var\/lib\/ocsinventory-reports\/snmp.\nCreating Administration server log files directory \/var\/lib\/ocsinventory-reports\/logs.\nFixing permissions on directory \/var\/lib\/ocsinventory-reports\/logs.\nCreating Administration server temporary files directory \/var\/lib\/ocsinventory-reports\/tmp_dir.\nFixing permissions on directory \/var\/lib\/ocsinventory-reports\/tmp_dir.\nCreating Administration server scripts log files directory \/var\/lib\/ocsinventory-reports\/scripts.\nFixing permissions on directory \/var\/lib\/ocsinventory-reports\/scripts.\nConfiguring IPDISCOVER-UTIL Perl script.\nWriting Administration server configuration to file \/etc\/httpd\/conf.d\/ocsinventory-reports.conf\n\n+----------------------------------------------------------------------+\n| OK, Administration server installation finished ;-) |\n| |\n| Please, review \/etc\/httpd\/conf.d\/ocsinventory-reports.conf\n| to ensure all is good and restart Apache daemon. |\n| |\n| Then, point your browser to http:\/\/server\/\/ocsreports\n| to configure database server and create\/update schema. |\n+----------------------------------------------------------------------+\n\n\nSetup has created a log file \/root\/OCSNG_UNIX_SERVER-2.9.2\/ocs_server_setup.log. Please, save this file.\nIf you encounter error while running OCS Inventory NG Management server,\nwe can ask you to show us its content !\n\nDON'T FORGET TO RESTART APACHE DAEMON !\n\nEnjoy OCS Inventory NG ;-)\n\n<\/code><\/pre>\n\n\n\n
.\/OCSNG_UNIX_SERVER_2.9\/ocs_server_setup.log.<\/code><\/p>\n\n\n\n
vim \/etc\/httpd\/conf.d\/z-ocsinventory-server.conf<\/code><\/pre>\n\n\n\n
\n...\n # Master Database settings\n # Replace localhost by hostname or ip of MySQL server for WRITE\n PerlSetEnv OCS_DB_HOST localhost<\/b>\n # Replace 3306 by port where running MySQL server, generally 3306\n PerlSetEnv OCS_DB_PORT 3306<\/b>\n # Name of database\n PerlSetEnv OCS_DB_NAME ocsweb<\/b>\n PerlSetEnv OCS_DB_LOCAL ocsweb<\/b>\n # User allowed to connect to database\n PerlSetEnv OCS_DB_USER ocs<\/b>\n # Password for user\n PerlSetVar OCS_DB_PWD ocs <\/b>\n...\n<\/code><\/pre>\n\n\n\n
vim \/etc\/httpd\/conf.d\/zz-ocsinventory-restapi.conf<\/code><\/pre>\n\n\n\n
vim \/usr\/share\/ocsinventory-reports\/ocsreports\/dbconfig.inc.php<\/code><\/pre>\n\n\n\n
\n ...\n <?php\n $_SESSION[\"SERVEUR_SQL\"]=\"localhost\";\n $_SESSION[\"COMPTE_BASE\"]=\"ocsweb\";\n $_SESSION[\"PSWD_BASE\"]=\"ocs\";\n ?><\/b>\n<\/code><\/pre>\n\n\n\n
chmod -R 766 \/usr\/share\/ocsinventory-reports\nchown -R apache:apache \/usr\/share\/ocsinventory-reports\nchown -R apache:apache \/var\/lib\/ocsinventory-reports<\/code><\/pre>\n\n\n\n
chcon -R -t httpd_sys_rw_content_t \/usr\/share\/ocsinventory-reports<\/code><\/pre>\n\n\n\n
php.ini<\/code><\/strong> to optimize certain settings for OSC best suited for your env.<\/p>\n\n\n\n
max_execution_time<\/code>\u00a0and\u00a0
max_input_time<\/code>by setting the following value:<\/p>\n\n\n\n
vim \/etc\/php.ini<\/code><\/pre>\n\n\n\n
max_execution_time = -1\nmax_input_time = -1<\/code><\/pre>\n\n\n\n
upload_max_filesize = 50M\npost_max_size = 51M<\/code><\/pre>\n\n\n\n
memory_limit = 256M<\/code><\/pre>\n\n\n\n
systemctl restart httpd mariadb<\/code><\/pre>\n\n\n\n
Finalize OCS-NG Configuration via Web Interface<\/h3>\n\n\n\n
http:\/\/server-hostname-or-IP\/ocsreports<\/code>\u00a0on your browser to access OCS.<\/p>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
mv \/usr\/share\/ocsinventory-reports\/ocsreports\/install.php \/usr\/share\/ocsinventory-reports\/ocsreports\/install.php.old<\/code><\/pre>\n\n\n\n
Other Tutorials<\/h3>\n\n\n\n