1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

eAccelerator, set up but not caching?

Discussion in 'Site & Server Administration' started by Valve-Hosting, Jan 27, 2008.

  1. #1
    Hello, i've switched back to a nice CPanel server for production. Got a bit sick of lighhtpd, anyway, I can't get eAcclerator working properly.

    It loads the module but won't start,

    check my php.info

    http://xopen.tv/php.php

    Any tips an getting it working would be welcome.
     
    Valve-Hosting, Jan 27, 2008 IP
  2. mellow-h

    mellow-h Peon

    Messages:
    750
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Its because you haven't enabled the caching, i can see caching is false in your eaccelerator value of phpinfo.
    Edit your php.ini file with eaccelerator.enable = 1 and optimizer = 1 :)
     
    mellow-h, Jan 27, 2008 IP
  3. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hey, still stuck to eaccelerator? Try out xcache!
     
    agnivo007, Jan 27, 2008 IP
  4. Valve-Hosting

    Valve-Hosting Peon

    Messages:
    1,071
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I have, you're not reading it properly ;)

    They're enabled, but not running :/
     
    Valve-Hosting, Jan 28, 2008 IP
  5. mellow-h

    mellow-h Peon

    Messages:
    750
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Then you are running PHP on CGI. Eaccelerator wont run on some system carrying mode, change the mode to dso, i believe that should fix your problem :D

    Just Saw this:
    So, nothing more can say :D Change this to DSO or SUPHP.
     
    mellow-h, Jan 28, 2008 IP
    Valve-Hosting likes this.
  6. Valve-Hosting

    Valve-Hosting Peon

    Messages:
    1,071
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Cheers for the help, I think i'll just leave it and use WP-Cache, the servers already in use.
     
    Valve-Hosting, Jan 28, 2008 IP
  7. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #7
    suPHP is just a wrapper PHP still runs as a CGI and from what I've read eaccelerator does not work well if at all with suPHP.


    ...

    If you want serious performance I'd look at doing fastCGI and optimizing it (assuming it's only your site).

    You could go DSO with PHP then run eaccelerator but their are disadvantages to this as well. The big one is the ram usage with PHP as a DSO is way up compared to PHP as a CGI. However when PHP is a cgi CPU usage is up due to the PHP interpreter being killed constantly.
     
    InFloW, Jan 28, 2008 IP
    Valve-Hosting likes this.
  8. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #8
    As I said previously, xcache is worth looking at.
     
    agnivo007, Jan 29, 2008 IP
  9. Valve-Hosting

    Valve-Hosting Peon

    Messages:
    1,071
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thanks, I'll give it a look. Will I have to rebuild Apache via CPanel though?
     
    Valve-Hosting, Jan 29, 2008 IP
  10. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Well, just compile the module and add the settings in php.ini :)

    Oh, plain vanilla php as CGI isn't supported by any opcode caching system. Better build php as FCGI or apache module etc.

    http://xcache.lighttpd.net/
     
    agnivo007, Jan 30, 2008 IP
    Valve-Hosting likes this.
  11. Valve-Hosting

    Valve-Hosting Peon

    Messages:
    1,071
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Cheers. I'm not sure how to do that so it will work with CPanel though, know it can be very funny. Although CPanel makes a lot of basic stuff easy, it makes a lot of stuff a lot more tricky.
     
    Valve-Hosting, Jan 31, 2008 IP
    agnivo007 likes this.
  12. mellow-h

    mellow-h Peon

    Messages:
    750
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #12
    You can change your CGI mode from your WHM :)

    WHM >> Configure PHP and Suexec >> Select the Handler dso and save :) That should let your eaccelerator work fine :)

    Have a nice time ;)
     
    mellow-h, Feb 1, 2008 IP
  13. Valve-Hosting

    Valve-Hosting Peon

    Messages:
    1,071
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Thanks for your help everone, I've added rep to everyone now as you've put up with my inane questions.

    I also found this for people wanting to install Xcache in a CPanel enviroment.

    http://www.eth0.us/xcache
     
    Valve-Hosting, Feb 2, 2008 IP