summaryrefslogtreecommitdiff
path: root/www/php-glpi/MESSAGE
blob: a04a9367d55b78a036dc754092a4d2de778de119 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
===========================================================================
$NetBSD: MESSAGE,v 1.7 2020/05/19 14:39:56 hauke Exp $

GLPI requires a web server set up to run PHP scripts;
${PREFIX}/share/examples/glpi/http-glpi.conf is a sample
configuration for Apache.

In addition, you need access to a MySQL database server. Create a
MySQL glpi user, and as that user create a database:

# mysql -u root -p
Enter password: <your_mysql_root_passwd>

mysql> CREATE DATABASE glpi;
mysql> CREATE USER 'glpi'@'<web_server_host_name>';
mysql> GRANT ALL PRIVILEGES ON glpi.* TO 'glpi'@'<web_server_host_name>'
		IDENTIFIED BY '<your_glpi_passwd>';
mysql> FLUSH PRIVILEGES;
mysql> EXIT
Bye
#

To set up or upgrade GLPI with a web browser, activate the setup page:

cd ${PREFIX}/share/glpi/install && mv install.php.disabled install.php

Then, open <http://localhost/glpi>. Follow the instructions, enter the
above glpi user's credentials, and select the newly created glpi
database.

Rename install.php when you are done.

Alternatively, you can upgrade from the commandline, by running

su -m ${APACHE_USER} -c '${PREFIX}/share/glpi/bin/console --config-dir=${PKG_SYSCONFDIR} db:update'

===========================================================================