614a34f9e5
This is a major update, providing fixes to multiple security vulnerabilities, compatibility with current PHP and MySQL/Mariadb versions. An extensive changelog is at <https://github.com/glpi-project/glpi/blob/10.0/bugfixes/CHANGELOG.md>.
38 lines
1.2 KiB
Text
38 lines
1.2 KiB
Text
===========================================================================
|
|
$NetBSD: MESSAGE,v 1.8 2022/08/16 13:52:48 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'
|
|
|
|
===========================================================================
|