Code in this video_Install GLPI 11 on Linux Ubuntu/Debian-based

✳️ Replace the highlighted information with your own



sudo apt install -y vim wget tar php-curl php-zip php-gd php-intl php-intl php-pear php-imagick php-imap php-memcache php-pspell php-tidy php-xmlrpc php-xsl php-mbstring php-ldap php-ldap php-cas php-apcu libapache2-mod-php php-mysql php-bz2 php-bcmath

CREATE DATABASE glpi_db character set utf8mb4 collate utf8mb4_bin;

CREATE USER glpi_db_user@localhost IDENTIFIED BY 'glpi_db_PWD';

GRANT ALL ON glpi_db.* TO glpi_db_user@localhost;

FLUSH PRIVILEGES;

<VirtualHost *:80>
ServerName IP-Server_or_Hostname

DocumentRoot /var/www/html

# Alias to access GLPI via /glpi
Alias /glpi /var/www/html/glpi/public

<Directory /var/www/html/glpi/public>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted

RewriteEngine On

# Only rewrite if request is not for /glpi/index.php and file does not exist
RewriteCond %{REQUEST_URI} !^/glpi/index\.php$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /glpi/index.php [QSA,L]

# Ensure Authorization header is passed to PHP
RewriteCond %{HTTP:Authorization} ^(.+)$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</Directory>
</VirtualHost>

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *