1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

APC installed but not working

Discussion in 'Server Configuration and Hosting' started by Claudio, Nov 26, 2011.

  1. Claudio

    Claudio Well-Known Member

    I follow this guide:http://stevejenkins.com/blog/2011/08/how-to-install-apc-alternative-php-cache-on-centos-5-6/

    The install was successful with no errors, but when I made the test (Build complete.
    Don't forget to run 'make test'.), I got this error:

    So, I dont understand how can I solve this and make APC work

    any idea?
     
  2. Slavik

    Slavik XenForo Moderator Staff Member

    What does your phpinfo file say?
     
  3. Claudio

    Claudio Well-Known Member

  4. Slavik

    Slavik XenForo Moderator Staff Member

    Looks simply like you've not installed it correctly? did you add the apc edits directly into php.ini or loading via extension?
     
  5. Claudio

    Claudio Well-Known Member

  6. Claudio

    Claudio Well-Known Member

    I don´t understand how to do that step
    Is it necessary?
    I dont have that directory, I need to create it but I don´t know which is the command to edit php.ini file
     
  7. Slavik

    Slavik XenForo Moderator Staff Member

  8. Slavik

    Slavik XenForo Moderator Staff Member

    Yes, without loading the module into php it will not run.

    Open up /usr/local/lib/php.ini

    Copy in that large block of code on that guide, save and restart httpd
     
  9. Claudio

    Claudio Well-Known Member

    it asks:

    Do I should press enter in each message?
     
  10. Slavik

    Slavik XenForo Moderator Staff Member

    Yes, dont edit those.
     
  11. Claudio

    Claudio Well-Known Member

    I get this:
    -bash: /etc/php.d/apc.ini: No such file or directory
     
  12. Slavik

    Slavik XenForo Moderator Staff Member

    open up your php.ini file (at /usr/local/lib/php.ini)

    at the bottom copy in

    Code:
    extension=apc.so
    apc.enabled=1
    apc.shm_size=30
     
    
    save then restart httpd
     
    jonatan.wb likes this.
  13. Claudio

    Claudio Well-Known Member

    ready :)

    thank you very much
    pd: will work the same as using only apache? because I have also installed NginxCP
     
  14. Slavik

    Slavik XenForo Moderator Staff Member

    should work fine
     
  15. Slavik

    Slavik XenForo Moderator Staff Member

  16. Claudio

    Claudio Well-Known Member

    thanks very kind, now its time to configure it using Floris guide :D
    any security advice for my php.ini config?
     
  17. Claudio

    Claudio Well-Known Member

    this line is bad, isn´t it?
    So it should be apc.shm_size=128M
     
    jonatan.wb likes this.
  18. Slavik

    Slavik XenForo Moderator Staff Member

    Yea, I just gave you the basic info to get it working, optimise it as you see fit.
     

Share This Page