0

I am trying to install Zabbix and the following errors appeared during pre-installation

enter image description here

I proceeded to change the setting in PHP.ini file to the minimum requirements

enter image description here enter image description here

The problem is that though i have made the changes to the PHP.ini file , it is not being reflected and I am still getting the error. I have tried restarting the apache server but the changes are not reflected

Computernerd
  • 1,401

2 Answers2

4

Lines starting with ; are comments, used for examples and explanations. You need to add the "actual" entries, for example

date.timezone = "Asia/Tokyo"

instead of

;date.timezone = "Asia/Tokyo"

I'd recommend to add your entries instead of editing the existing, out-commented entries. So you can go back to the default just by deleting your own additions.

Additionally, there may be multiple php.ini files. You need to check which one is used. It mostly depends on the method you chose to integrate PHP with your webserver (probably Apache http server). If you're using the mod_php module, you need to look for php.ini in a subdirectory "apache2". Other subdirectories for other integration methods may be "cgi" (CGI), "cli" (PHP on the command line), "fpm" (php-fpm) and others.

You can see which php.ini is used in the output of PHP's phpinfo() function.

0

Lines starting with semicolon (;) are ignored in php.ini file. Just delete this character if You want to activate a directive.