TAV1702 Posted November 16, 2010 Report Share Posted November 16, 2010 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 2 Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted November 26, 2010 Moderators Report Share Posted November 26, 2010 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 Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted November 26, 2010 Author Report Share Posted November 26, 2010 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! Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted February 3, 2011 Author Report Share Posted February 3, 2011 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. Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted February 3, 2011 Report Share Posted February 3, 2011 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. Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted February 3, 2011 Author Report Share Posted February 3, 2011 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. Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted February 3, 2011 Moderators Report Share Posted February 3, 2011 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. Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted February 3, 2011 Author Report Share Posted February 3, 2011 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 Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted February 3, 2011 Moderators Report Share Posted February 3, 2011 Even easier if you have a old machine, just download ubuntu server 32bit you will be up and running in an hour or so. Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted February 4, 2011 Author Report Share Posted February 4, 2011 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. Quote Link to comment Share on other sites More sharing options...
alpyeni1 Posted October 26, 2014 Report Share Posted October 26, 2014 I've a 500 INTERNAL SERVER ERROR after editing .htaccess file. I'cant find ?> on my local.config.php file. Quote Link to comment Share on other sites More sharing options...
regexpress Posted April 20, 2015 Report Share Posted April 20, 2015 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.