Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Nov 11, 2009 10:01 pm 
Offline
Senior Member

Joined: Sun Sep 20, 2009 3:23 pm
Posts: 52
Website: http://keithnet.dyndns.org/
WLM: keithint37@hotmail.com
Yahoo Messenger: keithint1234
AOL: keithint1234
Location: Prescott, Arizona
Basically, I maintain a mediaWiki setup on my Linode 360.
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 memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file '/srv/www/keithnet.us/
public_html/wiki/maintenance/commandLine.inc', line 238)


How do I fix that? Thanks!


Top
   
 Post subject:
PostPosted: Thu Nov 12, 2009 2:25 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Searching around for that error message seems to point the finger at Suhosin. See the last entry in that thread for a possible fix.


Top
   
 Post subject:
PostPosted: Thu Nov 12, 2009 12:25 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Errm, also that's a PHP script trying to raise its memory limit to 4GB? No PHP script should ever use that much...

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.


Top
   
 Post subject:
PostPosted: Fri Nov 13, 2009 1:34 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Looking at the MediaWiki code, I believe the script is trying to remove the memory limit:
Code:
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.


Top
   
 Post subject:
PostPosted: Fri Nov 13, 2009 5:22 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
That is a supremely bad idea. The limits exist for a reason. I'd suggest changing the MediaWiki code to not make such a dangerous error. It's a one-line fix; just put a reasonable value in the line of code in question.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group