Jump to content

Recommended Posts

Posted

Hey everyone, I was helping another guy out with a problem and my solution worked for him so I will share it here in snippets.

If you ever get an error like this

Fatal error: Allowed memory size of 33554432 bytes exhausted

on your website while trying to do anything, it is a low memory allowed per script on your server.

To remedy this situation you can get into your local config file and

find

?>

after add

ini_set("memory_limit","16M")

If this does not work, it will if you go to root/.htaccess and add it there instead. If the 16 does not solve your problem you can bump it up some. Please beware that if it is not your server and you are on shared hosting, your host may get a bit upset.

Hope this helps someone again.

Have a great night!

Ray

  • Like 2
  • 2 weeks later...
  • Moderators
Posted

Thanks for getting me in trobule TAV1702!

Lol, joking.

Thank you for that, it works on my ferind;s server. He was limited to his server memeroy.

1+rep

Posted

Glad it helped. ;) And yeah, I have told a few others to do that as the years have gone by only to get their account suspended. That is why it is very important to ask first I guess. But hey, it works! :D

  • 2 months later...
Posted

Now I am gonna sound stupid here but has anyone got my little trick to work and if so what file did you edit? I am trying my hta access and local config and neither is working for me. I never tried it when I posted this.

Guest lorathon
Posted

This is what I put in my local.config.php at the very end

ini_set("memory_limit","512M");

I haven't seen the error in quite awhile now.

Posted

Yeah that's what I tried to and I keep getting internal server 500 error. The host server I am on sucks major a**! Too bad I am too broke to get off of it. My buddy hosts two sites for me for free and he has no clue at all. I urged him to up the memory usage for me slightly to no avail. Come to find out, he is running like 38 LARGE sites off of one box.

I think it would run better on my PC running it off of WAMP. Just not sure how to set up the dns to point to my PC.

  • Moderators
Posted

Yeah that's what I tried to and I keep getting internal server 500 error. The host server I am on sucks major a**! Too bad I am too broke to get off of it. My buddy hosts two sites for me for free and he has no clue at all. I urged him to up the memory usage for me slightly to no avail. Come to find out, he is running like 38 LARGE sites off of one box.

I think it would run better on my PC running it off of WAMP. Just not sure how to set up the dns to point to my PC.

You would need a static ip address or transfer your dns service to dyndns.org there you can fully manage your dns and download a client which if your ipaddress dies change it will update the dns records with the new one but this is not instant their can be a 5 minute delay at max.

What ever you do do not host on winamp, just install apache mysql and php manually, its fairly easy to do it.

Posted

Well, I actually have another box sitting right next to me that I have not fired up in a year or two. I was pondering putting it online and installing Linux on it and going the route you just talked about.

Probably just take the easy way out and go for total broke and swap hosts.

Oh and the funny part of it all is I JUST tried this trick on a phpBB forum on the same server and it worked just fine. Go figure eh? If it werent for bad luck I would have no luck at all. ;)

Take care.

Ray

Posted

Yeah.... It is an old machine. lol its got a whole 786 processor I believe and 128 megs Ram. Funny part is, it will dam near smoke the box I am on now which in its own way is far from anything special.

I may have to look into that after all.

  • 3 years later...
  • 5 months later...
Posted

Hi, I had this error yesterday:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 39 bytes) in/srv/disk3/1817306/www/regionalexpressairlines.ca/core/classes/ezdb/ezdb_mysql.class.php on line 273.

I did contact my host and he lifted my limit from 16mb initially to 128mb, via the php.ini. I did still got the same error, so he lifted it again up to 256mb, and still this error. I do not have the ?> in my config file, and no /.htaccess in my ftp. What do you think is the problem?

Thanks all,

Bernard

regionalexpressairlines.ca

Ok just did everything successful; did edit my config file and augment my host memory up to 256mb, now everything is working fine.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...