You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-12-07 06:52:13

bugless
Member
Registered: 2010-01-24
Posts: 37

Read the GLPI installation docs, having few doubts about Apache config

Going straight to the point, the doubts are:

Docs say the GLPI config directory needs write permissions only during installation process. Does this mean I can safely remove all write permissions and leave it "read-only" after installation is finished and begin using GLPI normally?

I'm using httpd configuration just like advised:
https://glpi-install.readthedocs.io/en/ … figuration
But default httpd.conf also has directive "DirectoryIndex index.html".
I don't know how, but this seemed to "redirect" to Apache's test page located in /usr/share/testpage/index.html, because this is what was displayed when browsing to http(s)://<ip_address>, at least before setting up GLPI.
After GLPI installation, then what happens to DirectoryIndex directives?

Finally, as rule of thumb we install servers following the scheme "one partition for system, another partition for data"; which means leaving one partition for root and the other -*larger*- one for /home.
Is it acceptable practice to put GLPI data directories *and* MariaDB database itself somewhere in the /home partition?
Regarding MariaDB database, of course making the due modifications in mariadb-server.cnf and php.ini for the location and socket

Thanks again.

Last edited by bugless (2023-12-07 06:52:55)

Offline

#2 2023-12-07 17:08:04

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: Read the GLPI installation docs, having few doubts about Apache config

"Docs say the GLPI config directory needs write permissions only during installation process. Does this mean I can safely remove all write permissions and leave it "read-only" after installation is finished and begin using GLPI normally?"
Yes. In fact, 10.0.11 will fix the requirement check for this.
https://github.com/glpi-project/glpi/pull/15772

"But default httpd.conf also has directive "DirectoryIndex index.html"."
The best solution is to use a vhost for GLPI rather than make changes to the Apache configuration file. In Debian/Ubuntu, these vhost configs are in "/etc/apache2/sites-available". The "sites" can then be enabled with "a2ensite glpi" (assuming vhost file was glpi.conf).

"Is it acceptable practice to put GLPI data directories *and* MariaDB database itself somewhere in the /home partition?"
I have no recommendations/feedback about how you partition your data.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

Board footer

Powered by FluxBB