简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM