yum install -y httpd systemctl start httpd systemctl enable httpd
firewall-cmd --permanent --add-service=http firewall-cmd --permanent --add-service=https firewall-cmd --reload
yum install -y php-mysqlnd php-zip php-openssl php-ldap php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-soap
yum install -y perl mod_perl
yum install -y "perl(XML::Simple)" "perl(Compress::Zlib)" "perl(Compress::Zlib)" "perl(DBI)" "perl(Apache::DBI)" "perl(Net::IP)" "perl(SOAP::Lite)" "perl(Mojolicious::Lite)" "perl(Plack::Handler)" "perl(Archive::Zip)" "perl(YAML)" "perl(XML::Entities)""perl(Switch)"
yum group install -y "Development Tools"
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm wget --no-check-certificate https://rpms.remirepo.net/enterprise/remi-release-7.rpm wget --no-check-certificate https://rpm.ocsinventory-ng.org/ocsinventory-release-latest.el7.ocs.noarch.rpm yum install ocsinventory-release-latest.el7.ocs.noarch.rpm epel-release-latest-7.noarch.rpm remi-release-7.rpm
yum install yum-utils -y yum-config-manager --enable remi yum-config-manager --enable remi-php74 yum install ocsinventory -y
mysql -u root -p
CREATE DATABASE ocs;
GRANT ALL PRIVILEGES ON ocs.* TO ocs@localhost IDENTIFIED BY "ZVsC&sSE84Si85&x5";
vim /etc/php.ini
systemctl restart httpd
http://192.168.xxx.xxx/ocsreports/