Posts Tagged ‘package’

Packages: Attempt to free unreferenced scalar

No Comments »

Saw this error while creating packages one day on an old server:

Attempt to free unreferenced scalar

After looking into the CPanel error logs in /usr/local/cpanel/logs/error_log the following error was reported.

(internal warning while parsing [stdin]) Wed Feb 16 13:21:08 2009 [94568] warn: Attempt to free unreferenced scalar.

Head in to the WHM and access the following:

WHM -> Server Configuration -> Tweak Settings Choose the setting for:

The maximum memory a cPanel process can use before it is killed off (in megabytes). Values less than 128 megabytes can not be specified. A value of “0″ will disable the memory limits.

The default is typically 256M and increasing the value to 512MB helped. Becareful what you set the value to as increasing to high can cause issues; the value of 512M should be fine here.