Results 1 to 17 of 17
  1. #1
    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: Error 1! Couldn't start Apache!
    XAMPP: Starting diagnose...
    XAMPP: Sorry, I've no idea what's going wrong.
    XAMPP: Please contact our forum http://www.apachefriends.org/f/

    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

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

  3. #3
    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:

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

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

  6. #6
    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?

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

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

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

  10. #10
    Join Date
    Aug 2006
    Posts
    323
    But they had the best price!
    Colbyt

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

  12. #12
    Join Date
    Jun 2004
    Location
    New Zealand
    Posts
    223
    so 256mb memory increase?

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

  14. #14
    Join Date
    Jun 2004
    Location
    New Zealand
    Posts
    223
    this came on a 256mb ram vps.

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

  16. #16
    Quote Originally Posted by foobic View Post
    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).
    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

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

  1. Linux VPS Xampp Apache wont start
    By serversolutions in forum Hosting Security and Technology
    Replies: 1
    Last Post: 11-20-2009, 12:11 AM
  2. Cano not start Xampp apache
    By archiver in forum VPS Hosting
    Replies: 2
    Last Post: 06-30-2008, 11:20 AM
  3. apache wont start
    By HW-David in forum Hosting Security and Technology
    Replies: 3
    Last Post: 04-06-2008, 07:10 PM
  4. Apache wont start with this dial up client installed
    By blackworm in forum Hosting Security and Technology
    Replies: 6
    Last Post: 07-04-2006, 12:23 PM
  5. Apache wont start
    By jsonline2k3 in forum Hosting Security and Technology
    Replies: 8
    Last Post: 02-20-2006, 01:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •