Hi,
I successfuly upgrade Zabbix from 4.x to 5.0.0 using only zabbix-server-pgsql and everything work.
But now, I want to update to 5.0.2 using zabbix-web-deps-scl(recommended way)
What I did
- yum remove php-* to remove old php, i was using newer php version that scl
- yum install zabbix-web-pgsql-scl. Its worked, packages were insalled.
But now, when i try to access frontend I got "You don't have permission to access /zabbix/ on this server"
Probably because different configuration.
Before i Used
with is in file /etc/httpd/conf.d/zabbix.conf but now i probably use /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
How should i change file to Zabbix frontend work?
I successfuly upgrade Zabbix from 4.x to 5.0.0 using only zabbix-server-pgsql and everything work.
But now, I want to update to 5.0.2 using zabbix-web-deps-scl(recommended way)
What I did
- yum remove php-* to remove old php, i was using newer php version that scl
- yum install zabbix-web-pgsql-scl. Its worked, packages were insalled.
But now, when i try to access frontend I got "You don't have permission to access /zabbix/ on this server"
Probably because different configuration.
Before i Used
Code:
# # Zabbix monitoring system php web frontend # Alias /zabbix /usr/share/zabbix <Directory "/usr/share/zabbix"> Options FollowSymLinks AllowOverride None Require all granted <IfModule mod_php7.c> php_value max_execution_time 300 php_value memory_limit 128M php_value post_max_size 16M php_value upload_max_filesize 2M php_value max_input_time 300 php_value max_input_vars 10000 php_value always_populate_raw_post_data -1 php_value date.timezone Europe/Warsaw </IfModule> </Directory> <Directory "/usr/share/zabbix/conf"> Require all denied </Directory> <Directory "/usr/share/zabbix/app"> Require all denied </Directory> <Directory "/usr/share/zabbix/include"> Require all denied </Directory> <Directory "/usr/share/zabbix/local"> Require all denied </Directory>
Code:
[zabbix] user = apache group = apache listen = /var/opt/rh/rh-php72/run/php-fpm/zabbix.sock listen.acl_users = apache listen.allowed_clients = 127.0.0.1 pm = dynamic pm.max_children = 50 pm.start_servers = 5 pm.min_spare_servers = 5 pm.max_spare_servers = 35 php_value[session.save_handler] = files php_value[session.save_path] = /var/opt/rh/rh-php72/lib/php/session/ php_value[max_execution_time] = 300 php_value[memory_limit] = 128M php_value[post_max_size] = 16M php_value[upload_max_filesize] = 2M php_value[max_input_time] = 300 php_value[max_input_vars] = 10000 php_value[date.timezone] = Europe/Warsaw
Comment