• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Plesk 10.3 & APC

Michael Goeller

New Pleskian
How do I get APC running? I simply can't get it to work.

Code:
# pecl install apc
downloading APC-3.1.9.tgz ...
Starting to download APC-3.1.9.tgz (155,540 bytes)
..........................done: 155,540 bytes
running: phpize
sh: phpize: command not found
ERROR: `phpize' failed

Ok, this seems that php-devel isn't installed so we install that!
But you know what happens not, due to

Code:
--> Finished Dependency Resolution
php53-sqlite2-5.3.2-11041315.i386 from installed has depsolving problems
  --> Missing Dependency: php53 >= 5.3.0 is needed by package php53-sqlite2-5.3.2-11041315.i386 (installed)
Error: Missing Dependency: php53 >= 5.3.0 is needed by package php53-sqlite2-5.3.2-11041315.i386 (installed)

I do not know where to go on from here, so I tried a different approach

and did a
Code:
# install yum php-pecl-apc
[...]
Installed:
  php-pecl-apc.i386 0:3.1.9-2.el5.art

Complete!

The installation created the file /etc/php.d/apc.ini with all settings ...
Code:
[22-Sep-2011 06:49:46] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/apc.so' - /usr/lib/php/modules/apc.so: undefined symbol: php_pcre_exec in Unknown on line 0

I also have no clue how to fix this, uninstalling php-prce would also remove psa, etc ... so I am not sure of that is the best option :D

Does anyone have a solution for this?
 
I reinstalled my server today and Plesk. But still can't seem to get it running.

Since I have a fresh install now, any advice on how to set up APC properly? Thanks.
 
I got APC installed now, but I am running into problems with APC enabled

To install I did:

Code:
yum install php-pear httpd-devel pcre-devel
pecl install apc

then edited /etc/php.d/apc.ini

/etc/php.d/apc.ini said:
extension = apc.so
apc.enabled = 1
apc.shm_size = 256M
apc.include_once_override = 1
apc.mmap_file_mask = /tmp/apc.XXXXXX
apc.shm_segments = 1
apc.ttl = 3600
apc.user_ttl = 3600
Selective caching

and restarted apache ...

after the restart I ran into problems, horde for example displays only a blank page under https://webmail.
and my caching tool complains that suddenly

W3TotalCache said:
It appears Page Cache URL rewriting is not working. If using apache, verify that the server configuration allows .htaccess or if using nginx verify all configuration files are included in the configuration.

It appears Minify URL rewriting is not working. If using apache, verify that the server configuration allows .htaccess or if using nginx verify all configuration files are included in the configuration.

When I comment apc.ini out everything works fine, any suggestions?
 
by trial and error I found "apc.include_once_override = 1" to be the culprit

In case anyone if looking for a complete list:

Installing APC on a Fresh Centos 5 & Plesk 10.3

Code:
yum install php-pear httpd-devel pcre-devel
pecl install apc

edit/create /etc/php.d/apc.ini
/etc/php.d/apc.ini said:
extension = apc.so
apc.enabled = 1
apc.shm_size = 256M
apc.mmap_file_mask = /tmp/apc.XXXXXX
apc.shm_segments = 1
apc.ttl = 3600
apc.user_ttl = 3600
Selective caching

Code:
/etc/init.d/httpd restart

hope that helps someone who was having the same issue

Michael
 
Brilliant!

I have been searching for this for a day or so, worked straight away, only me checking took the time.

Thanks very much!
 
This worked for me.

http://drupal.org/node/1116054

I took the that this gave and it worked and Plesk is still in tacked.


by trial and error I found "apc.include_once_override = 1" to be the culprit

In case anyone if looking for a complete list:

Installing APC on a Fresh Centos 5 & Plesk 10.3

Code:
yum install php-pear httpd-devel pcre-devel
pecl install apc

edit/create /etc/php.d/apc.ini


Code:
/etc/init.d/httpd restart

hope that helps someone who was having the same issue

Michael
 
Back
Top