Issues while executing commands with the php shell script
For whatever reason, when I run a script with: php (scriptName) (Options)
I get this, and wondered what it meant?
Thanks very much for any help!
The error I am getting (and trying to fix or get to go completely away if at all possible, is thus:
ALERT - script tried to increase memorylimit to 4294967295 bytes which is above the allowed value (attacker 'REMOTEADDR not set', file '/srv/www/keithnet.us/
public_html/wiki/maintenance/commandLine.inc', line 238)
How do I fix that? Thanks!
4 Replies
Suhosin
While Suhoshin is setting the limit, it is correct in saying that a PHP script requesting 4GB of RAM (the default limit in PHP is 16MB) is insane and should be stopped.
memory limit
ini_set( 'memory_limit', -1 );
I don't know if suhosin.memory_limit can similarly be set to -1 or if you need to pick a defined value.