Custom httpd php memory limit

burnacid

Verified User
Joined
Jan 10, 2016
Messages
10
So I'm trying to give 1 user a higher memory limit then default through the custom httpd config.
I've added php_value memory_limit 256M to the custom HTTPD within direct admin. Rebuild the config. Restarted the service and all but it still doesn't function if I request a phpinfo()

What am I missing or doing wrong here?
 
Its different with each php processing engine. Do you know how you have php setup? Suphp, ruid, php-fpm, ... etc
 
Hello,

suPHP does not support php_value in httpd.conf or in .htaccess. On servers with suPHP we usually setup individual php.ini per user.
 
That tip fixed it indeed. Created a php.ini for this user and added the following line to it's httpd.conf

SetEnv PHP_INI_SCAN_DIR /usr/local/directadmin/data/users/|USER|/php/

Thanks
 
Back
Top