helcim
helcim

Reputation: 829

How to increase PHP memory_limit in Debian Jessie?

I need to temporarily increase memory_limit on my Debian Jessie server. And no, I cannot make my script use less memory, as it is not my script and I really need to run it. Setting memory_limit and suhosin.memory_limit in php.ini does not have any effect.

Is there any other solution apart from recompiling PHP?

Upvotes: 0

Views: 7044

Answers (3)

pamekar
pamekar

Reputation: 739

Run php --ini on terminal to get the php.ini file for php-cli.

Also check phpinfo() for the php.ini file. You should edit these two files and restart apache service apache2 restart.

Upvotes: 4

ld57
ld57

Reputation: 1

Really strange, I just changed my memory limit on Jessie, restarted apache, and phpinfo now shows the correct number.

Maybe your limit is set in a .htaccess file or via an ini_set() function?

Upvotes: 0

venca
venca

Reputation: 1222

Is your script running in CLI or HTTP? Are you sure if you changed settings in php.ini correctly?

Upvotes: 0

Related Questions