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-01-27 18:50:11

bturnbough
Member
Registered: 2023-01-27
Posts: 19

Changing GLPI Document Root

Ubuntu 20.04 / standard OS install and configuration.

In order to change the document root, I typically change /etc/apache2/sites-enabled/000-default.conf.

From:   DocumentRoot /var/www/html

To:  DocumentRoot /var/www/html/subfolder

Or something similar.

When I do this for GLPI, it breaks the site.  I assume this is because this path is hardcoded or otherwise defined somewhere in the configuration of this software. 

What file or files do I need to update in order to change the DocumentRoot in Apache?

Thanks.

Offline

#2 2023-02-02 20:02:07

bturnbough
Member
Registered: 2023-01-27
Posts: 19

Re: Changing GLPI Document Root

Surely someone has knowledge on what needs to change in order to change the documentroot.  Anyone?

Offline

#3 2023-02-14 19:13:00

bturnbough
Member
Registered: 2023-01-27
Posts: 19

Re: Changing GLPI Document Root

Anyone?  Please?

Offline

#4 2023-02-14 21:30:56

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

Re: Changing GLPI Document Root

The URL of the application is set in Setup > General on the General setup tab.


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

#5 2023-02-14 22:00:44

bturnbough
Member
Registered: 2023-01-27
Posts: 19

Re: Changing GLPI Document Root

I updated the URL as suggested to:  helpdesk.company.com.  I then restarted the server. 

When I pulled up the site using helpdesk.company.com, the apache default page comes up.

I then edited /etc/apache2/sites-enabled/000-default.conf from:

DocumentRoot /var/www/html

To:
DocumentRoot /var/www/html/glpi

I then restarted the server again.

helpdesk.company.com now doesn't load anything at all.

helpdesk.company.com/glpi now also doesn't work as well.

I changed the /etc/apache2/sites-enabled/000-default.conf file back to:
DocumentRoot /var/www/html

And then restarted the webserver.

helpdesk.company.com/glpi works again, but helpdesk.company.com still produces the default Apache page.

Thoughts?

Offline

Board footer

Powered by FluxBB