Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress ignoring HHVM upload max file size

I am having the following problem, I am running NGINX and HHVM (VM 3.9.1 rel):

Wordpress ignores my /etc/hhvm/php.ini configuration file which has the following directives:

;php options
session.save_handler = files
session.save_path = /var/lib/hhvm/sessions
session.gc_maxlifetime = 1440
memory_limit = 600M
upload_max_filesize = 128M
post_max_size = 128M
max_input_time = 60
max_execution_time = 300

When I run phpinfo() I can see my upload file size reflected there.. however, when I try to upload any file through Wordpress, I receive an error that the maximum upload size is 0kb.

Any help will be greatly appreciated.

like image 882
Fernando Perez Gomez Avatar asked Feb 18 '26 18:02

Fernando Perez Gomez


1 Answers

This sounds like you might be running into https://github.com/facebook/hhvm/issues/4993. Try setting hhvm.enable_zend_ini_compat=false and see if that helps. (Also try setting it to true... I've forgotten what the default is, and which setting is supposed to help here.)

If that helps, please add a comment on this answer; if this issue is still the root cause of issues in 3.9, I'd like to change the default moving forward -- this was supposed to have been fixed.

like image 72
Josh Watzman Avatar answered Feb 21 '26 14:02

Josh Watzman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!