Results 1 to 7 of 7
-
12th May 2010, 12:26 PM #1OPMember
Fixing "Fatal Error: Allowed memory size of xxxxxxxx bytes exhausted..."
Error: (Just an example. File name, memory size, etc. can vary)
Code:Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home/xxxxxxxx/public_html/search.php on line 1155
1. On a shared server
Open your .htaccess file and enter this line into it
Code:php_value memory_limit 32M
2. On a VPS/Dedicated server
First step for this is to locate your php.ini file in the server and to see what is the memory limit (this is shown in the error message). Create a file with the below code and name it something like ?test.php?
Code:<?php phpinfo(); ?>
Then you can use putty, SSH client, login to putty and locate the file php.ini and edit the memory limit.
Code:Log in as root. Type the following and hit enter: vi /usr/local/lib/php.ini Now that you?re in vi, hit escape a few times then type the following and hit enter: /memory_limit That basically does a ?find? in the file you?re editing. Press the ?i? key. This puts you in ?insert? mode, which basically allows you to edit things. Change the current setting (probably 32M) to 64M (or whatever you want). Press escape, then type :wq and hit enter. That says ?save the file and quit.?
If you dont have WHM installed then use this command
Code:/etc/rc.d/init.d/httpd restart
iFlames Reviewed by iFlames on . Fixing "Fatal Error: Allowed memory size of xxxxxxxx bytes exhausted..." Error: (Just an example. File name, memory size, etc. can vary) Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home/xxxxxxxx/public_html/search.php on line 1155 How to fix it: 1. On a shared server Open your .htaccess file and enter this line into it php_value memory_limit 32M Rating: 5
-
12th May 2010, 12:32 PM #2Pure Awesomeness!
Nice tutorial m8, here is another solution if u use wordpress
Add this line of code in your Wordpress WP-CONFIG.PHP file. Add it before any other values. (My preferred choice)
Code:define('WP_MEMORY_LIMIT', '64M');
Source: Bloggista
-
12th May 2010, 12:35 PM #3OPMember
thanks RT
-
12th May 2010, 12:40 PM #4Member
Nice, Thanks
-
12th May 2010, 12:55 PM #5MemberWebsite's:
hostreal.netNice guide, will keep this guide to give to other new vps users.
-
12th May 2010, 03:06 PM #6MemberWebsite's:
CodeSociety.netno this is a stupid fix! This does not fix the problem and only masks it briefly. SOMETIMES this is necessary but you should find out why your scripts are requiring that much memory to run.
-
13th May 2010, 07:23 AM #7OPMember
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
ERROR: Allowed memory size of 33554432 bytes exhausted
By Darlos in forum WordpressReplies: 4Last Post: 3rd Jan 2012, 04:06 PM -
Getting "PHP Fatal Error" during installing Mihalism image hosting Script
By MiTU? in forum Server ManagementReplies: 6Last Post: 6th Jul 2011, 11:40 PM -
RL - FS download plugin Memory Fatal Error Help
By zyberakuma in forum Technical Help Desk SupportReplies: 2Last Post: 4th Dec 2010, 09:43 PM -
Pre-orders open for "infinite" usb memory drive
By The Viper in forum News & Current EventsReplies: 7Last Post: 3rd Aug 2010, 04:40 PM -
Help!! Fatal error: Out of memory?
By rdeguz5 in forum Technical Help Desk SupportReplies: 8Last Post: 21st Jun 2010, 04:36 AM
themaCreator - create posts from...
Version 3.46 released. Open older version (or...