Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Mar 27, 2011 8:56 pm 
Offline
Junior Member

Joined: Sun Jan 20, 2008 8:20 pm
Posts: 25
I'm just installing an Ubuntu 10.10 LAMP server. I'm following along with the installation doc for the Aegir Drupal Project (http://community.aegirproject.org/node/ ... figuration). On the point to edit the /etc/php5/cli/php.ini memory limit up to 192M I was surprised to see the existing value for it as "-1". I have not installed a LAMP server since Ubuntu 8.10, but I don't ever recall seeing a value like that before...
I'm wondering if it is a method of stating 'no limit' or some such thing? Which I suppose would mean I could just leave it be rather than edit it to 192M. Can anyone shine some light on it?
Thanks


Top
   
 Post subject:
PostPosted: Sun Mar 27, 2011 10:01 pm 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
I'd change it to prevent your PHP scripts from running away with all your RAM.

-1 means no memory limit:
http://php.net/manual/en/ini.core.php

Quote:
This sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent poorly written scripts for eating up all available memory on a server. Note that to have no memory limit, set this directive to -1.


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


Who is online

Users browsing this forum: No registered users and 3 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