IIS 7 and Above
migration from apache to IIS cause error "Allowed memory size exhaus...
Last post Sep 17, 2018 10:17 AM by Terry Peng
Sep 14, 2018 01:03 PM|mikamika|LINK
I made an little application on Apache and it works well. I have set the memory_conf at 256M in php.ini.
Today i tried to migrate from apache to IIS, and i got this error "Allowed memory size exhausted". I do not understand why the same php configuration do not work on IIS.
Is there something i missed ?
window server 2012R2
php 7.1.22 NTS VC14 X64
Sep 17, 2018 10:17 AM|Terry Peng|LINK
"Allowed memory size exhausted" is usually related to the memory_limit setting. Are you sure you are setting "memory_conf"? If yes, please try to edit memory_limit instead of memory_conf.
Usually the error message's format is "Fatal Error: Allowed memory size of xxxxxx bytes exhausted". xxxxx should be the memory limit(bytes) you set. For your setting 256M, the number should be 268435456. Please check if you got such number. If not, please
try to check the value of your memory_limit. If you change the setting, will the xxxxx number changed?