The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Vbulletin won't read PHP Maximum Upload Size correctly when using HHVM
My hosting suggested using hhvm as a better alternative to apache+php, or rather less prone to exploits and able to handle more load. Anyway atm we are using hhvm-fastcgi-nginx combination. Using VB 3.8.7. PHP: 5.6.99-hhvm
Even though upload_max_filesize in php.ini is set to 60M vbulletin seems to have uploads limited to 10MB. In admin panel main page it reads: Code:
PHP Max Post Size N/A PHP Maximum Upload Size N/A Code:
Pertinent PHP Settings file_uploads: On open_basedir: None safe_mode: Off upload_tmp_dir: /tmp upload_max_filesize: 10.00 MB |
#2
|
||||
|
||||
If you search the code you will see it simply does an ini_get('upload_max_filesize').
|
#3
|
||||
|
||||
You can try adding a php.ini file with the max upload size right in the root directory of your domain. This works in some servers. You can also try htaccess.
If you made changes to php.ini in your server and you are not seeing changes make and use a php.info file or view php info in your vbulletin cpanel to make sure you are changing the correct php.ini.. |
Благодарность от: | ||
In Omnibus |
#4
|
||||
|
||||
Quote:
And php.info doesn't mention upload_max_filesize anywhere. Is there anything I could change in vbulletin code that could trick it to read a different directive from php.ini for "upload_max_filesize". Like this one for example which shows up fine in php.info: hhvm.server.upload.upload_max_file_size. Or just have it not fetch the value from php.ini at all and set it to something to my desire. It is a dedicated server btw. Btw running this example script in browser also doesn't read the vale: Code:
http://php.net/manual/en/function.ini-get.php @RichieBoy67, thanks for your suggestions but I've tried similar things already. htaccess wouldn't work as it is nginx server but I've tried .user.ini file that should allow per folder override but no help. It think it just a bug with hhvm that won't allow fetching some of the ini directives properly while others read fine. |
#5
|
||||
|
||||
Quote:
It can only display the information returned to it. Obviously there is an issue with whatever HHVM is passing incorrect information back to php. |
#6
|
||||
|
||||
Quote:
Anyway I can't seem to find ini_get calls in vbulletin's attachment.php but I imagine it is used somewhere in the code to fetch the server's upload size limit. So any help please on telling me where and if I could change it to call hhvm.server.upload.upload_max_file_size instead of upload_max_filesize. |
#7
|
||||
|
||||
Did you check your attachment settings in Vbulletin?
|
#8
|
||||
|
||||
Yes they are all fine. We had no issues before on the same server with apache running. It is just since the switch to hhvm+nginx that this appeared.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|