ServerTune Logo Dedicated Servers Colocation VPS Server Management ServerTune.com
 
ServerTune HomeAbout usContact usHelp DeskKnowledgebaseSpecialLIVE Chat ServerTune
DirectAdmin VPS Server Management

Value, Power, and Performance :: Dedicated Servers starting $89 /month

Dedicated Server Hosting

Click here to view photos from the conferences we attended.   *** Follow ServerTune on: ServerTune is on Facebook ServerTune is on Twitter
 
Browse by category   Search
 


Fatal error: Allowed memory size of 22468 bytes exhausted (tried to allocate 446810 bytes) in /path/file.php
Printer Friendly
email to a friend
Email to friend
Add comment Add comment
Views: 1363
Votes: 0
Comments: 0
Posted: 25 Mar, 2008
by: Customer Service :: S.
* * * * *
Updated: 25 Mar, 2008
by: Customer Service :: S.

By default, Php is configured to limit memory usage per process. To increase the default limit, SSH to the server and using your Linux text editor such as pico or vi, do the following:

  • vi /usr/local/lib/php.ini

Change the following directive from:

memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)

to a higher value, such as 32M. Save, exit, and then restart apache:

  • /sbin/service httpd restart
Other articles in this Category
document HowTo: Tweak php for maximum execution time for scripts
document HowTo :: Install and configure FFmpeg and FFpeg-Php
document Call to unsupported or undefined function mysql_connect
document Php scripts returning errors when using: php_flag and php_value
document FFmpeg :: make: *** [libavcodec/imgresample.o] Error 1
document FFmpeg :: headers not found. Make sure you've built ffmpeg as shared libs
document FFmpeg :: libamrnb.so.2: cannot open shared object file: No such file or directory
document HowTo secure your vBulletin Forum
document FFmpeg :: make: *** [ffmpeg_frame.lo] Error 1



RSS

Control Panel Licensing
cPanel Plesk Miva Merchant