Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezones wont enable #121

Open
NorsemanLicensing opened this issue Sep 27, 2024 · 3 comments
Open

Timezones wont enable #121

NorsemanLicensing opened this issue Sep 27, 2024 · 3 comments
Labels

Comments

@NorsemanLicensing
Copy link

Just installed the latest docker image and cannot seem to get the time zones function to enable. found the mariadb did not have time zone tables at all so i created the tables and populated them, and I have the time zone set in the environment variables, but glpi still says time zones are not enabled run the php command "php bin/console database:enable_timezones" to enable. however i cannot find how to run this in docker.

any suggestions?

@DiouxX
Copy link
Owner

DiouxX commented Oct 8, 2024

Hello,

To run the command in your GLPI docker container, you can use the following:

docker exec <YOUR GLPI CONTAINER> 'php bin/console database:enable_timezones'

@DiouxX DiouxX added the question label Oct 8, 2024
@graanto
Copy link

graanto commented Feb 19, 2025

I'm new to glpi and docker. Have everything up and running using portainer to create compose. Tried above command but getting error that file does not exist. im guessing it's not in standard volume. Any tips or suggestions on how to find right place to run command?

@DiouxX
Copy link
Owner

DiouxX commented Feb 20, 2025

The bin folder is in the glpi folder.
By default, the location is /var/www/html/glpi.

Maybe you need to set the full path to execute the command

docker exec <YOUR GLPI CONTAINER> '/var/www/html/glpi/bin/console database:enable_timezones'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants