Archive of the day April 20, 2011

Debian Squeeze: change the memory_limit parameter in / etc/php5/cli/php.ini

Nessun commento » Apache , Debian , PHP , Tips & Tricks No Comments »

On Debian Squeeze all there is to do a correction on the fly to php.ini dedicated to running server-side script (aka command line). The correction is of vital importance, but only if you put in cron php script and do not want the server refuses to run because they require more memory than can be allocated. The problem is due to the parameter:

memory_limit = -1

Since it would seem a flag disabled and then we would expect that there is no limit in the memory can be allocated, but the behavior is quite different:

PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 64 bytes) in /var/www/clients/client21/web54/web/XXXXXX.php on line 212

As a workaround, you should specify which actually is the limit of memory that we intend to impose a php script run from command line. The parameter is in the file:

/etc/php5/cli/php.ini

And the change to be made is as follows:

; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
;memory_limit = -1
memory_limit = 128M

Also sprach Uncle Vanya ;-)

A new website for Silvio "Gnaro" Mondinelli

1 commento » Announcements , News 1 Comment »

For several days is online the new website of Silvio Mondinelli, the legendary Italian mountaineer known to most by his nickname around Brescia Gnaro.

For the few who do not know or layman, remember that Silvio Mondinelli has participated in twenty shipments on "eight thousand", in 16 of them managed to reach the summit. He climbed all the main peaks of the 14 eight thousand of the earth, entering into the restricted album of those who have completed the "race to eight thousand" was the sixth man to succeed in the world without ever making use of supplemental oxygen. In 2001, only 5 months has climbed eight thousand 4: Everest , Gasherbrum I , Gasherbrum II and Dhaulagiri .

The GNARO is also the protagonist of laudable initiatives in the field of international cooperation.

For more information: http://www.gnaromondinelli.it/cms/