Announcement

Collapse
No announcement yet.

No cache info available. APC does not appear to be running.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • No cache info available. APC does not appear to be running.

    Ive installed apc but its not working

  • #2
    Hello there
    i am facing problems on running apc on cloud linux cpanel server.
    i never faced such thing while running cent os.
    Ive installed apc and ive added .so extension and also apc options to my php.ini but it seems apc is not running.
    im using cagefs also. is there any particular thing that has to be done in order to get apc working on cloudlinux?
    thank u in advance.

    Comment


    • #3
      Did you ran cagefsctl --force-update
      after installing APC/changing php.ini?

      Comment


      • #4
        I did it right now! but the problem still exists! I did update cagefs from whm ui as well before.

        Comment


        • #5
          What is the path where APC is installed? Where does it store its files?
          what do you use when you su into user account, and do:
          php -v
          php -m

          Comment


          • #6
            well you found the problem

            Code:
            PHP Warning:  PHP Startup: Unable to load dynamic library /usr/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so - /usr/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
            the apc is in /usr/local/lib/php/extensions/no-debug-non-zts-20090626
            well one step of installing apc is to make a symlink. Ive did it before, and i did try again! but it still does not work.
            I even changed the extention directory for php in php.ini file to "/usr/local/lib/php/extensions/no-debug-non-zts-20090626" which apc is in there but no difference

            Comment


            • #7
              I got it fixed with running "cagefsctl --force-update " after changing the extension dir of php! the apc is running! but one thing why when i run php -v as user in ssh i get that error!
              i still get the same :

              > PHP Warning: PHP Startup: Unable to load dynamic library /usr/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so - /usr/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0

              Comment


              • #8
                Well something is totally wrong here!
                when i use "/usr/lib/php/extensions/no-debug-non-zts-20090626" in my php.ini configuration apc is not working!
                when i use /usr/lib/php/extensions/no-debug-non-zts-20090626" apc works but 90% of the websites return 500 internal error!
                Ive checked the apache error log and it returnes Premature end of script headers: index.php
                can someone help me here?! this is the first time i am facing such problem and i believe it has something to do with cagefs

                Comment


                • #9
                  did you re-run cagefsctl --force-update after making a link?
                  If you cannot resolve the issue - just submit a ticket to our support department, and they will help you.
                  Or switch to PHP Selector -- this way your users will be able to enable/disable opcode caching depending on their needs.

                  Comment

                  Working...
                  X