Fatal error: Allowed memory size of 8388608 bytes exhausted

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Fatal error: Allowed memory size of 8388608 bytes exhausted
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
I just started receiving this error, and was a little perplexed to say the least. It started after adding a few hundred images to my Gallery.

I did a little searching and found a solution, and I was wondering if the PHP and MySQL gurus here on Codezwiz would give me their two cents on how "safe" it is to use this.

The fix is simple, just add the following to the .htaccess file:

php_value memory_limit 16M


The problem went away, and all of a sudden my page loads dropped to almost nothing. My site sped up quite a lot.

Now here are the questions.

1. I have several sites running off of a single dedicated server. With this effect any other site? The normal memory value for php is 8M, so I have doubled it.

2. Any security issues with this in the .htaccess file?

Any thoughts would be appreciated.



_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,440
   
Nope that shouldnt affect anything. 8m is just the "factory standard".




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 20 year's 20 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
OMG...i have no idea what happened but I created an htaccess file in the root and added that bit of code and all my posts came back that I've been fighting to find all day. Thanks a ton!!!!




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum