User Tools

Site Tools


glpi:installatie

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
glpi:installatie [2025/11/24 10:17] – [stappenplan] adminglpi:installatie [2025/12/11 14:19] (current) admin
Line 8: Line 8:
   * werk het OS bij: <code>apt update && apt upgrade -y </code>   * werk het OS bij: <code>apt update && apt upgrade -y </code>
   * installer Apache, MariaDB, PHP, de nodige extenties: <code>   * installer Apache, MariaDB, PHP, de nodige extenties: <code>
-apt install -y apache2 mariadb-server unzip wget php php-cli php-common php-curl php-gd php-xml php-mbstring php-ldap php-imap php-intl php-zip php-bz2 php-mysql php-apcu php-xmlrpc php-cas php-ldap php-opcache </code>+apt install -y apache2 mariadb-server unzip wget php php-bcmath php-cli php-common php-curl php-gd php-xml php-mbstring php-ldap php-imap php-intl php-zip php-bz2 php-mysql php-apcu php-xmlrpc php-cas php-ldap php-opcache </code> 
 +  * open ''/etc/php/8.2/cli/php.ini''  
 +    * haal onderstaande entry __uit commentaar__:'';cgi.fix_pathinfo=1'' 
 +    * stel tijdzone: ''date.timezone = Europe/Brussels''
   * herstart Apache: <code> systemctl restart apache2 </code>   * herstart Apache: <code> systemctl restart apache2 </code>
   * maak een database  aan voor gLPI: <code>mysql   * maak een database  aan voor gLPI: <code>mysql
Line 21: Line 24:
 chmod -R 755 /var/www/html/glpi</code> chmod -R 755 /var/www/html/glpi</code>
   * maak een virtual host aan op Apache:<code>vi /etc/apache2/sites-available/glpi.conf</code>met onderstaande inhoud:<code><VirtualHost *:80>   * maak een virtual host aan op Apache:<code>vi /etc/apache2/sites-available/glpi.conf</code>met onderstaande inhoud:<code><VirtualHost *:80>
-    ServerName your-domain-or-ip +    ServerName glpi.legoland.net
-    DocumentRoot /var/www/html/glpi+
  
-    <Directory /var/www/html/glpi+    DocumentRoot /var/www/html/glpi/public
-        AllowOverride All +
-        Require all granted +
-    </Directory>+
  
-    ErrorLog ${APACHE_LOG_DIR}/glpi-error.log +    # If you want to place GLPI in a subfolder of your site (e.g. your virtual host is serving multiple                applications), 
-    CustomLog ${APACHE_LOG_DIR}/glpi-access.log combined +    # you can use an Alias directive. If you do this, the DocumentRoot directive MUST NOT target the GL               PI directory itself
-</VirtualHost></code> +    # DocumentRoot /var/www/html 
-activeer deze host: <code> a2ensite glpi.conf +    # Alias "/glpi" "/var/www/glpi/public"
-a2enmod rewrite +
-systemctl reload apache2 </code>+
  
-  * +    <Directory /var/www/html/glpi/public> 
 +        Require all granted
  
 +        RewriteEngine On
  
 +        # Ensure authorization headers are passed to PHP.
 +        # Some Apache configurations may filter them and break usage of API, CalDAV, ...
 +        RewriteCond %{HTTP:Authorization} ^(.+)$
 +        RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
 +
 +        # Redirect all requests to GLPI router, unless file exists.
 +        RewriteCond %{REQUEST_FILENAME} !-f
 +        RewriteRule ^(.*)$ index.php [QSA,L]
 +    </Directory>
 +</VirtualHost>
 +</code>
 +<bootnote warning>was ook nodig, maar weet niet zeker waarom: <code> rm -f /etc/apache2/sites-available/000-default.conf default-ssl.conf</code></bootnote>
 +  * activeer deze host: <code>a2ensite glpi.conf
 +a2enmod rewrite
 +systemctl restart apache2 </code>
 +  * open <nowiki>http://<Servernaam>/glpi</nowiki> evn doorloop de wizard.
 ===== meer info ===== ===== meer info =====
 [[https://glpi-install.readthedocs.io/en/latest/|gLPI KB]] [[https://glpi-install.readthedocs.io/en/latest/|gLPI KB]]
 {{tag>glpi}} {{tag>glpi}}
  
glpi/installatie.1763979437.txt.gz · Last modified: by admin