If you arre getting post_max_size, upload_max_filesize, max_execution_time, max_input_time when installing zabbix on HHVM.
root@noc:/etc/nginx/conf.d# php -r "echo ini_get('post_max_size');" 33554432
But
include/classes/class.frontendsetup.php /** * Checks for minimum PHP post max size. * * @return array */ public function checkPhpPostMaxSize() { $current = ini_get('post_max_size'); var_dump(ini_get('post_max_size')); return array( 'name' => _('PHP option post_max_size'), 'current' => $current, 'required' => mem2str(self::MIN_PHP_POST_MAX_SIZE), 'result' => (str2mem($current) >= self::MIN_PHP_POST_MAX_SIZE) ? self::CHECK_OK : self::CHECK_FATAL, 'error' => _s('Minimum required size of PHP post is %s (configuration option "post_max_size").', mem2str(self::MIN_PHP_POST_MAX_SIZE)) ); } bool(false)
WTF?
The F is:
- https://github.com/facebook/hhvm/issues/4993
- https://github.com/facebook/hhvm/issues/4209
- https://github.com/facebook/hhvm/issues/4124
So it’s not fixed in currnet release at the moment, so I will siply hack in
include/classes/class.frontendsetup.php
ini_get('hhvm.server.max_post_size'); ini_get('hhvm.server.upload.upload_max_file_size'); AND ini_get('hhvm.server.request_timeout_seconds'); instead of PHP max execution time and max input time