Jump to content
The Uniform Server Community
Sign in to follow this  
Sweet Pea

Website Crashing - Running out of Memory

Recommended Posts

Hi. I'm new here, so please bear with me. I am also the user as well as the host, so plain English would be brilliant if anyone replies.

 

My host computer runs Uniform Server on Windows Server 2008.

 

There aren't many sites on the server, but about once a week, my site will just come up with an error page

 

PHP Fatal error out of memory allocated 4194304 tried to allocate 114688 (plus the URL). The memory had been increased to 3Gb just to see if it could sort the problem. The more memory that it's given, it just takes a bit longer to crash, but it does crash. It's almost like it's using the memory, but not releasing it

Share this post


Link to post
Share on other sites

Hi Sweet Pea,

 

The memory referred to in the error is memory allocated to PHP and is not the server memory :)

 

To increase the PHP memory limit:

- stop Apache in the UniServer Control Panel (USCP)

- from the USCP, select PHP > Edit selected configuration file

- this will open the currently in use php.ini file in Notepad

- perform a Find for the word memory

- the first instance will be:

 

; Maximum amount of memory a script may consume (128MB)
memory_limit = 128M
- change 128M to 256M and File > Save
- restart Apache
That should do it :)
Cheers!
Lyle

Share this post


Link to post
Share on other sites

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.   Paste as plain text instead

  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...
Sign in to follow this  

×
×
  • Create New...