PDA

View Full Version : WHm server: PHP memory_limit per cpanel account change



Fli
11-16-2014, 07:19 PM
Hello,


how to change PHP "memory_limit" value for one cpanel (http://instantcpanelhosting.com/) user or one just directory / its subdirectories? (as a WHM server admin)


i have php, suexec, suhosin


----
I tried to add "suhosin.memory_limit 128M" and "suhosin.memory_limit 128" into php.ini in that script directory and after reloading phpinfo(), still same limit.. (64M)


// Update: i think i found it, but not sure if its the best solution. Adding into global php.ini (in my case: /usr/local/lib/php.ini) this at the very end of file:


[PATH=/home/useraccountname/public_html/subdomainname]
memory_limit = 128M

PS i also listen about "suhosin.memory_limit 64"