memory_limit

arash

Verified User
Joined
Aug 1, 2021
Messages
5
Hello,

in phpinfo() I can see the memory limit is 1024MB, and the Configuration File (php.ini) Path is /usr/local/php74/lib/php.ini but the memory limit in that file is 128MB, how is this possible ? how can i find correct php.ini file and edit it ? also there is nothing in .htaccess about memory_limit
 
I findout it use memory_limit in this path php/php-fpm74.conf from user directory
the problem is i don't know how to change this value from admin panel ?
I'm trying to change this value from "Custom HTTPD Configurations" in admin panel but it don't delete "php_value[memory_limit] = 1024M" line and only add new line after this one with new memory_limit value and i think its has some problem. how can i fix this ? should i change this manually using text editor ?
 
but those settings not work when you run php from crontab or console.

I tried both /usr/bin/php and /usr/local/php74/bin/php, it still use global value.

Any clue ?
 
Back
Top