Ive installed apc but its not working
Announcement
Collapse
No announcement yet.
No cache info available. APC does not appear to be running.
Collapse
X
-
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.
-
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
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
-
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
-
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
-
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
Comment