Results 1 to 17 of 17
-
11-19-2009, 04:38 PM #1Junior Guru
- Join Date
- Jun 2004
- Location
- New Zealand
- Posts
- 223
Linux VPS Xampp Apache wont start
I have recently installed xampp which comes with apache and when i try to start apache up after installing i get this error poping up in my error console its
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: [1mError 1! Couldn't start Apache![m
XAMPP: [1mStarting diagnose...[m
XAMPP: [1mSorry, I've no idea what's going wrong.[m
XAMPP: [1mPlease contact our forum http://www.apachefriends.org/f/[m
Not sure why i get that ive posted on there but not much of solution can anyone help me out here?
ran this
tail -2 /opt/lampp/logs/error_log
this is what i get back:
httpd: Syntax error on line 511 of /opt/lampp/etc/httpd.conf: Syntax error on line 5 of
/opt/lampp/etc/extra/httpd-xampp.conf: Cannot load /opt/lampp/modules/libphp5.so into server:
/opt/lampp/modules/libphp5.so: cannot make segment writable for relocation: Cannot allocate memory
what does that mean?
looks like i dont have the libphp5 module loaded in apache
how can i load this into xampp apache system?
Can anyone here help me on this please,
Thanks,William
-
11-19-2009, 06:22 PM #2Junior Guru Wannabe
- Join Date
- Nov 2009
- Posts
- 70
The message is telling you that XAMPP was unable to load the PHP module as there is not enough free memory.
"cannot make segment writable for relocation: Cannot allocate memory"
at the shell prompt type in free <enter> and see what it lists for free memory.
-
11-19-2009, 09:30 PM #3Junior Guru
- Join Date
- Jun 2004
- Location
- New Zealand
- Posts
- 223
this is what i get back.
total used free shared buffers cached
Mem: 262144 247988 14156 0 0 0
-/+ buffers/cache: 247988 14156
Swap:
-
11-19-2009, 09:57 PM #4Aspiring Evangelist
- Join Date
- Apr 2008
- Location
- Tulsa, OK, USA
- Posts
- 376
you have 14mb of free memory, which isn't enough to get XAMPP going. you should order more memory from your provider, or investigate what else on your server is using the memory.
-
11-19-2009, 10:01 PM #5Retired Moderator
- Join Date
- Feb 2005
- Location
- Australia
- Posts
- 5,849
Is it a tiny OpenVZ machine? If so you may need some serious optimisation to run a full LAMP stack within the 256MB burst limit. Try "cat /proc/user_beancounters" and post the result.
Chris
"Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter
-
11-19-2009, 11:16 PM #6Junior Guru
- Join Date
- Jun 2004
- Location
- New Zealand
- Posts
- 223
@foobic
This is the result
/$ cat /proc/user_beancounters
Version: 2.5
uid resource held maxheld barrier limit failcnt
4288: kmemsize 2593279 36614003 2147483646 2147483646 0
lockedpages 0 8 999999 999999 0
privvmpages 61970 264227 65536 65536 140000
shmpages 1280 127637 131072 131072 0
dummy 0 0 0 0 0
numproc 29 322 999999 999999 0
physpages 8743 97335 0 2147483647 0
vmguarpages 0 0 131072 2147483647 0
oomguarpages 8743 97335 131072 2147483647 0
numtcpsock 10 165 7999992 7999992 0
numflock 7 138 999999 999999 0
numpty 0 4 500000 500000 0
numsiginfo 0 55 999999 999999 0
tcpsndbuf 244880 5972544 107374592 289400832 0
tcprcvbuf 163840 9047488 107374592 289400832 0
othersockbuf 23200 685952 107374592 289400832 0
dgramrcvbuf 0 202176 107374592 289400832 0
numothersock 23 184 7999992 7999992 0
dcachesize 213153 1243236 2147483646 2147483646 0
numfile 732 35281 23999976 23999976 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
numiptent 14 426
Not sure what that means.
What does that mean?
-
11-19-2009, 11:21 PM #7WHT Addict
- Join Date
- Nov 2009
- Posts
- 135
Your Kmemsize, Privvmpage memory allocation is pretty low, you're definitely going to keep hitting your memory constraints with that. See if your host will up the Kmemsize and Privvmpages, rather than forcing you to change your plan type first.
Keith Mitchell,Dedicated & Virtual Server Engineer,Hosting.com
Check out my Technical Blog - Keithdmitchell.com
-
11-19-2009, 11:28 PM #8Junior Guru
- Join Date
- Jun 2004
- Location
- New Zealand
- Posts
- 223
Okay posted ticket waiting a reply ill post back with an update when i recieve it.
thanks
-
11-19-2009, 11:54 PM #9Retired Moderator
- Join Date
- Feb 2005
- Location
- Australia
- Posts
- 5,849
Congratulations, that's the most thoroughly messed up beancounters I've seen yet.
kmemsize isn't your problem though, only privvmpages. They've given you 256MB burst (privvmpages) for 512MB "guaranteed" (oomguarpages). You need a burst limit significantly higher than your guaranteed memory - most decent providers set it at around double.Last edited by foobic; 11-19-2009 at 11:57 PM.
Chris
"Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter
-
11-20-2009, 12:07 AM #10Web Hosting Guru
- Join Date
- Aug 2006
- Posts
- 323
But they had the best price!
Colbyt
-
11-20-2009, 06:21 AM #11Junior Guru
- Join Date
- Jun 2004
- Location
- New Zealand
- Posts
- 223
Update:
My Host says i'd have to buy more ram but how much ram would i need as the ram is $10 per 128mb of ram so how much ram would i need and also they say this "No. Privvmpages is your allocated memory and cannot be increased for free of charge. Why would you like to increase kmemsize? It has been set to a very optimal value!"
Is there another way round to get xampp apache to work?
Thanks,William
-
11-20-2009, 06:26 AM #12Junior Guru
- Join Date
- Jun 2004
- Location
- New Zealand
- Posts
- 223
so 256mb memory increase?
-
11-20-2009, 08:06 AM #13Retired Moderator
- Join Date
- Feb 2005
- Location
- Australia
- Posts
- 5,849
Just to be clear: Did they sell you this as a 512MB VPS, or 256MB, or something else?
In any case, don't pay them to upgrade it. There are plenty of other hosts out there who do know how to set up a VPS - you'd get far better value for your $20 (or less) with one of them.Chris
"Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter
-
11-20-2009, 02:37 PM #14Junior Guru
- Join Date
- Jun 2004
- Location
- New Zealand
- Posts
- 223
this came on a 256mb ram vps.
-
11-20-2009, 07:30 PM #15Retired Moderator
- Join Date
- Feb 2005
- Location
- Australia
- Posts
- 5,849
Well, I guess that's slightly better than claiming it's 512... They're following a disturbing trend among OpenVZ providers to offer plans based on the burst limit (although others seem to be setting the "guaranteed" limit to the same value).
What you need to know is, the actual / usable memory will be approximately half the burst limit, so if you need 256MB (which is a reasonable minimum for a LAMP stack), go for OpenVZ with at least 512MB burst, or any other technology (Virtuozzo SLM, Xen etc.) with 256MB.
The more traditional / higher quality OpenVZ providers would do this automatically, so when you bought a "256MB" VPS you'd get 256MB guaranteed and at least 512MB burst, but evidently you can't rely on that any more.Chris
"Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter
-
11-23-2009, 10:31 AM #16WHT Addict
- Join Date
- Nov 2009
- Posts
- 135
Agreed. If they offered 512MB when you got the vps, it should have based on the guaranteed limit and not the burst limit. Now if they are forcing you to purchase more memory, you'll need to decide if you want to continue on with this or look for a new VPS host. What was your original offering in your setup? Did you pay for 256MB or 512MB?
Keith Mitchell,Dedicated & Virtual Server Engineer,Hosting.com
Check out my Technical Blog - Keithdmitchell.com
-
11-23-2009, 03:51 PM #17Junior Guru
- Join Date
- Jun 2004
- Location
- New Zealand
- Posts
- 223
the 256mb of ram i know for a fact, i successfully instaled xampp but as soon as i went to other page it instantly said out of memory php error
Similar Threads
-
Linux VPS Xampp Apache wont start
By serversolutions in forum Hosting Security and TechnologyReplies: 1Last Post: 11-20-2009, 12:11 AM -
Cano not start Xampp apache
By archiver in forum VPS HostingReplies: 2Last Post: 06-30-2008, 11:20 AM -
apache wont start
By HW-David in forum Hosting Security and TechnologyReplies: 3Last Post: 04-06-2008, 07:10 PM -
Apache wont start with this dial up client installed
By blackworm in forum Hosting Security and TechnologyReplies: 6Last Post: 07-04-2006, 12:23 PM -
Apache wont start
By jsonline2k3 in forum Hosting Security and TechnologyReplies: 8Last Post: 02-20-2006, 01:04 PM