|
|
|
|
@ -121,6 +121,8 @@ else
|
|
|
|
|
set +H
|
|
|
|
|
echo -e "<VirtualHost *:80>\n\tDocumentRoot /var/www/html/glpi/public\n\n\t<Directory /var/www/html/glpi/public>\n\t\tRequire all granted\n\t\tRewriteEngine On\n\t\tRewriteCond %{REQUEST_FILENAME} !-f\n\t\n\t\tRewriteRule ^(.*)$ index.php [QSA,L]\n\t</Directory>\n\n\tErrorLog /var/log/apache2/error-glpi.log\n\tLogLevel warn\n\tCustomLog /var/log/apache2/access-glpi.log combined\n</VirtualHost>" > /etc/apache2/sites-available/000-default.conf
|
|
|
|
|
fi
|
|
|
|
|
chown -R www-data:www-data /var/www/html/glpi/
|
|
|
|
|
chmod -R u+rwx /var/www/html/glpi/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/usr/bin/php /var/www/html/glpi/bin/console glpi:database:install \
|
|
|
|
|
|