You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-09-17 20:47:59

binbash85
Member
Registered: 2023-09-17
Posts: 1

Problème d'installation de GLPI 10.0.9 sur Ubuntu 22 avec PHP8.1-fpm

Bonjour a tous,
je suis en train d'installer GLPI sur un serveur Ubuntu 22 avec PHP8.1-FPM.
J'ai suivi les instructions de la documentation, mais je rencontre un problème lors de l'installation.
Quelqu'un a-t-il déjà rencontré ce problème ?

Problème:

root@vagrant:/var/www/glpi/current/glpi# tail -f /var/log/apache2/other_vhosts_access.log
192.168.1.32:80 192.168.1.172 - - [17/Sep/2023:18:20:35 +0000] "GET /css_compiled/css_install.min.css?v=e45457fe629e83c8e550302a0474f5887847f9c3 htp/1.1" 302 262 "htp://192.168.1.32/install/install.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
192.168.1.32:80 192.168.1.172 - - [17/Sep/2023:18:20:35 +0000] "GET /js/glpi_dialog.min.js?v=e45457fe629e83c8e550302a0474f5887847f9c3 htp/1.1" 302 262 "htp://192.168.1.32/install/install.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
192.168.1.32:80 192.168.1.172 - - [17/Sep/2023:18:20:35 +0000] "GET /public/lib/install/install.php htp/1.1" 404 271 "htp://192.168.1.32/install/install.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
192.168.1.32:80 192.168.1.172 - - [17/Sep/2023:18:20:35 +0000] "GET /public/lib/install/install.php htp/1.1" 404 271 "htp://192.168.1.32/install/install.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
192.168.1.32:80 192.168.1.172 - - [17/Sep/2023:18:20:35 +0000] "GET /css_compiled/install/install.php htp/1.1" 404 271 "htp://192.168.1.32/install/install.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
192.168.1.32:80 192.168.1.172 - - [17/Sep/2023:18:20:35 +0000] "GET /js/install/install.php htp/1.1" 404 271 "htp://192.168.1.32/install/install.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
192.168.1.32:80 192.168.1.172 - - [17/Sep/2023:18:20:35 +0000] "GET /public/lib/install/install.php htp/1.1" 404 271 "htp://192.168.1.32/install/install.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
192.168.1.32:80 192.168.1.172 - - [17/Sep/2023:18:20:35 +0000] "GET /js/install/install.php htp/1.1" 404 271 "htp://192.168.1.32/install/install.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
192.168.1.32:80 192.168.1.172 - - [17/Sep/2023:18:20:35 +0000] "GET /favicon.ico htp/1.1" 302 262 "htp://192.168.1.32/install/install.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
192.168.1.32:80 192.168.1.172 - - [17/Sep/2023:18:20:35 +0000] "GET /install/install.php htp/1.1" 200 3513 "htp://192.168.1.32/install/install.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"

root@vagrant:/var/www/glpi/current/glpi# tail -f /var/log/apache2/error.log
[Sun Sep 17 18:20:35.147068 2023] [proxy_fcgi:error] [pid 73535:tid 140505350334016] [client 192.168.1.172:62209] AH01071: Got error 'Primary script unknown', referer: htp://192.168.1.32/install/install.php
[Sun Sep 17 18:20:35.147326 2023] [proxy_fcgi:error] [pid 73535:tid 140505442653760] [client 192.168.1.172:62208] AH01071: Got error 'Primary script unknown', referer: htp://192.168.1.32/install/install.php
[Sun Sep 17 18:20:35.149510 2023] [proxy_fcgi:error] [pid 73535:tid 140505400690240] [client 192.168.1.172:62213] AH01071: Got error 'Primary script unknown', referer: htp://192.168.1.32/install/install.php
[Sun Sep 17 18:20:35.150103 2023] [proxy_fcgi:error] [pid 73535:tid 140505467831872] [client 192.168.1.172:62208] AH01071: Got error 'Primary script unknown', referer: htp://192.168.1.32/install/install.php
[Sun Sep 17 18:20:35.323151 2023] [proxy_fcgi:error] [pid 73535:tid 140505333548608] [client 192.168.1.172:62210] AH01071: Got error 'Primary script unknown', referer: htp://192.168.1.32/install/install.php
[Sun Sep 17 18:20:35.323267 2023] [proxy_fcgi:error] [pid 73535:tid 140505367119424] [client 192.168.1.172:62212] AH01071: Got error 'Primary script unknown', referer: htp://192.168.1.32/install/install.php
[Sun Sep 17 18:20:35.323442 2023] [proxy_fcgi:error] [pid 73535:tid 140505434261056] [client 192.168.1.172:62213] AH01071: Got error 'Primary script unknown', referer: htp://192.168.1.32/install/install.php
[Sun Sep 17 18:20:35.323634 2023] [proxy_fcgi:error] [pid 73535:tid 140505571554880] [client 192.168.1.172:62208] AH01071: Got error 'Primary script unknown', referer: htp://192.168.1.32/install/install.php
[Sun Sep 17 18:20:35.323829 2023] [proxy_fcgi:error] [pid 73535:tid 140505308370496] [client 192.168.1.172:62211] AH01071: Got error 'Primary script unknown', referer: htp://192.168.1.32/install/install.php
[Sun Sep 17 18:20:35.323912 2023] [proxy_fcgi:error] [pid 73535:tid 140505375512128] [client 192.168.1.172:62209] AH01071: Got error 'Primary script unknown', referer: htp://192.168.1.32/install/install.php

Solutions essayées:

La solution de contournement trouver est de retirer le /public du DocumentRoot et du directory


Voici La configuration :

<VirtualHost *:80>
    ServerName 192.168.1.32

    DocumentRoot /var/www/glpi/current/glpi/public

    # If you want to place GLPI in a subfolder of your site (e.g. your virtual host is serving multiple applications),
    # you can use an Alias directive. If you do this, the DocumentRoot directive MUST NOT target the GLPI directory itself.
    # Alias "/glpi" "/var/www/glpi/public"

    <Directory /var/www/glpi/current/glpi/public>
        Require all granted

        RewriteEngine On

        # Redirect all requests to GLPI router, unless file exists.
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ index.php [QSA,L]
    </Directory>
    ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000/var/www/glpi/current/glpi"
</VirtualHost>

Informations supplémentaires:

Système d'exploitation : Ubuntu 22.04
PHP : 8.1 fpm
Base de données : MariaDB 10.11
Serveur web : Apache  2.4.52

Merci pour votre aide

Last edited by binbash85 (2023-09-17 20:48:49)

Offline

Board footer

Powered by FluxBB