Results 1 to 5 of 5
-
05-19-2004, 06:49 AM #1Retired Moderator
- Join Date
- Jan 2003
- Posts
- 9,049
FATAL: emalloc(): Unable to allocate 570958915 bytes
Dear all
Just earlier this week, we have upgraded all our servers to run PHP in CGI mode (PHPSuexec) and since then one of the gallery script stop functioning and is generating a Internal Server 500 error. In the error logs, this is the error:
FATAL: emalloc(): Unable to allocate 570958915 bytes
[Thu May 13 16:25:01 2004] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: /home/xxx/public_html/photos/index.php
It sounds like it's out of RAM or SWAP, but it isn't. The system is fairly healthy. I also tried increasing the memory_limit variable to a value above the number above.
Anyone got any ideas?••• Like us on Facebook to qualify for discounts! •••
••• http://www.sprintserve.net •••
••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting | •••
••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••
-
05-19-2004, 10:24 AM #2Web Hosting Evangelist
- Join Date
- May 2003
- Posts
- 483
Never seen this error myself, but if you search google there are a couple good results. Try checking these sites out:
http://www.internetguru.com.au/igwiki/FATAL:%20emalloc():%20Unable%20to%20allocate.html
Most other sites mention that as you suggested, there is not enough RAM/Swap space available. Once you load up apache, how much free RAM do you have?
-
05-19-2004, 10:28 AM #3Retired Moderator
- Join Date
- Jan 2003
- Posts
- 9,049
I read google. I always go there first and none of them have any real solution, that doesn't need major script amendments. We don't wish to do that.
Our machines are at least 2GB RAM with 2GB of SWAP. So it's definitely not the issue here.
The thing was that, it supposedly work before phpsuexec was installed.••• Like us on Facebook to qualify for discounts! •••
••• http://www.sprintserve.net •••
••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting | •••
••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••
-
05-19-2004, 10:38 AM #4Web Hosting Evangelist
- Join Date
- Jun 2003
- Location
- Texas
- Posts
- 455
If I remember correctly, there's something extra you have to do to have it working with phpsuexec, maybe a permissions problems with the account its in?
................
-
05-19-2004, 10:47 AM #5Retired Moderator
- Join Date
- Jan 2003
- Posts
- 9,049
We have all the permissions, .htaccess issues resolved. It's just this one script.... http://www.photostack.org
••• Like us on Facebook to qualify for discounts! •••
••• http://www.sprintserve.net •••
••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting | •••
••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••