[ZBX-16409] PHP config instructions incorrect for Ubuntu Created: 2019 Jun 19 Updated: 2024 Apr 10 Resolved: 2020 Feb 13 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Documentation (D) |
Affects Version/s: | 4.0.9 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | Dan MacDonald | Assignee: | Jurijs Klopovskis |
Resolution: | Won't fix | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Ubuntu (18.04) |
Team: | Team I |
Sprint: | Sprint 56 (Sep 2019), Sprint 55 (Aug 2019), Sprint 54 (Jul 2019), Sprint 57 (Oct 2019), Sprint 58 (Nov 2019), Sprint 59 (Dec 2019), Sprint 60 (Jan 2020), Sprint 61 (Feb 2020) |
Description |
The PHP timezone must be configured before the user is able to start the zabbix server web interface. Both the instructions for Ubuntu on the Zabbix download page:
https://www.zabbix.com/download?zabbix=4.0&os_distribution=ubuntu&os_version=18.04_bionic&db=mysql
and within the manual:
https://www.zabbix.com/documentation/4.0/manual/installation/install_from_packages/debian_ubuntu
Are incorrect, for Ubuntu 18.04 at least but I suspect its wrong for all versions of Ubuntu. The current instructions tell the user to edit /etc/zabbix/apache.conf but the correct path of the file to edit is /etc/php/PHP_VERSION/apache2/php.ini. On my current Ubuntu 18.04 install the file to edit is /etc/php/7.2/apache2/php.ini . Apache needs to be restarted after editing this file, but that is already mentioned. |
Comments |
Comment by Jurijs Klopovskis [ 2020 Feb 13 ] |
Hi, danboid ! /etc/zabbix/apache.conf is the correct path. It is symlinked to /etc/apache2/conf-available/zabbix.conf which in turned is symlinked to /etc/apache2/conf-enabled/zabbix.conf. Then /etc/apache2/conf-enabled/ directory is included into main apache2.conf file. Please check that all three are true on your system. Also /etc/zabbix/apache.conf has sections for both php5 and php7. Make sure that you have edited the correct version. It's php7 in case of bionic. |