Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Website Crashing - Running out of Memory

Featured Replies

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

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

GeneratePress / Elementor / WP Show Posts / Do It Yourself WordPress - Sniffle Valve

 

You want a WordPress website and you want it now - GOOD CHEAP FAST WEBSITES

 

Don't take life too seriously ... nobody has ever gotten out of it alive :)

 

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...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.