VPS
Main PagecPanel and DirectAdmin LicensingServer Management PlansVirtual Private ServersDedicated Servers
Control Panel Licensing
ServerTune ResellersResellersSpecial PromotionsServerTune SpecialsHomeAbout ServerTuneContact usTechnical SupportKB
ServerTune Main Page
Space
Space
Our most popular products:

SPECIAL PROMOTION: cPanel License $36 /month. more info

Issues, Tips, and Solutions

Protect your server with Mod Security rules written specifically for your system. more info ...

Space
Search:    Advanced search
Browse by category:
Fatal error: Allowed memory size of 22468 bytes exhausted (tried to allocate 446810 bytes) in /path/file.php
Printer Friendly
email to a friend
Add comment Add comment
Views: 259
Votes: 0
Comments: 0
Posted: 25 Mar, 2008
by: Support T.
* * * * *
Updated: 25 Mar, 2008
by: Support T.

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 :: 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 :: 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



RSS