Bonjour, Nous sommes entrain de tester OCSInventory pour voir si ce dernier répond à notre besoin.
Cependant nous avons installé sur une Redhat 7:
php -v
PHP 5.6.25 (cli) (built: Sep 6 2016 08:19:42)
Server version: Apache/2.4.27 (Red Hat)
Server built: May 9 2018 13:17:26
mais quand nous éxécutons :
systemctl start httpd24-httpd.service
Job for httpd24-httpd.service failed because the control process exited with error code. See "systemctl status httpd24-httpd.service" and "journalctl -xe" for detail
systemctl status httpd24-httpd.service
● httpd24-httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd24-httpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2018-07-17 08:06:14 CEST; 6s ago
Process: 22302 ExecStop=/opt/rh/httpd24/root/usr/sbin/httpd-scl-wrapper $OPTIONS -k graceful-stop (code=exited, status=1/FAILURE)
Process: 22301 ExecStart=/opt/rh/httpd24/root/usr/sbin/httpd-scl-wrapper $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 22301 (code=exited, status=1/FAILURE)
Jul 17 08:06:14 carvmx343 systemd[1]: Starting The Apache HTTP Server...
Jul 17 08:06:14 carvmx343 httpd-scl-wrapper[22301]: httpd: Syntax error on line 354 of /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf: Syntax error on line 6 of /...
Jul 17 08:06:14 carvmx343 systemd[1]: httpd24-httpd.service: main process exited, code=exited, status=1/FAILURE
Jul 17 08:06:14 carvmx343 httpd-scl-wrapper[22302]: httpd: Syntax error on line 354 of /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf: Syntax error on line 6 of /...
Jul 17 08:06:14 carvmx343 systemd[1]: httpd24-httpd.service: control process exited, code=exited status=1
Jul 17 08:06:14 carvmx343 systemd[1]: Failed to start The Apache HTTP Server.
Jul 17 08:06:14 carvmx343 systemd[1]: Unit httpd24-httpd.service entered failed state.
Jul 17 08:06:14 carvmx343 systemd[1]: httpd24-httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
/opt/rh/httpd24/root/etc/httpd/conf.d# ls -l
total 56
-rw-r--r-- 1 root root 2966 May 9 15:17 autoindex.conf
-rw-r--r-- 1 root root 4157 Jul 16 16:18 ocsinventory-reports.conf
-rw-r--r-- 1 root root 963 Jul 16 16:55 php.conf
-rw-r--r-- 1 root root 366 May 9 15:18 README
-rw-r--r-- 1 root root 9418 May 9 15:15 ssl.conf
-rw-r--r-- 1 root root 1252 May 9 15:15 userdir.conf
-rw-r--r-- 1 root root 556 May 9 15:15 welcome.conf
-rw-r--r-- 1 root root 13494 Jul 16 16:17 z-ocsinventory-server.conf
Il semble que (mais je n'en suis pas certain) que la section du fichier php.conf :
<IfModule prefork.c>
LoadModule php5_module /opt/rh/rh-php56/root/usr/lib64/libphp56-php5.so
</IfModule>
Ne fonctionne pas bien.
/opt/rh/httpd24/root/etc/httpd/conf.d# ls -l /opt/rh/rh-php56/root/usr/lib64/libphp56-php5.so
lrwxrwxrwx 1 root root 14 Jul 16 16:55 /opt/rh/rh-php56/root/usr/lib64/libphp56-php5.so -> libphp5-5.6.so
Pourriez vous nous aider ?