• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Request for instruction on correctly installing APC on Plesk 12

Peter12

New Pleskian
Hi,

I would like to install APCu (Alternative PHP Cache) & ZendOptimizer on plesk v12, I just wanted to know
if there is any instructions for installing it correctly in a manner that will not
cause issues with plesk updates.

Would appreciate some feedback


Pete..
 
Last edited:
lol and while at it, here my install notes ;) (without comment)

Install php 5.5.17
source
http://www.ceromedia.dk/installing-php-5-5-14-on-plesk-12-ubuntu-12-04/

configure
./configure –disable-debug –disable-rpath –enable-bcmath –enable-calendar –enable-exif –enable-ftp –enable-fpm –enable-gd-native-ttf –enable-intl –enable-mbregex –enable-mbstring –enable-opcache –enable-pcntl –enable-pdo –enable-shmop –enable-soap –enable-sockets –enable-sysvmsg –enable-sysvsem –enable-sysvshm –enable-wddx –enable-xmlreader –enable-xmlwriter –enable-zip –prefix=/usr/local/php-5.5.17 –with-bz2 –with-config-file-path=/usr/local/php-5.5.17/etc –with-config-file-scan-dir=/usr/local/php-5.5.17/php.d –with-curl –with-freetype-dir=/usr/local/php-5.5.17 –with-gd –with-gettext –with-gmp –with-iconv –with-imap –with-imap-ssl –with-jpeg-dir=/usr/local/php-5.5.17 –with-kerberos –with-libdir=lib64 –with-libxml-dir=/usr/local/php-5.5.17 –with-mcrypt –with-mysql –with-mysqli –with-openssl –with-pcre-regex –with-pdo-mysql –with-pic –with-png-dir=/usr/local/php-5.5.17 –with-snmp –with-xmlrpc –with-xsl –with-zlib –without-gdbm

custom.ini
date.timezone = Europe/Copenhagen
post_max_size = 32M
upload_max_filesize = 32M
zend_extension=/usr/local/php-5.5.17/lib/php/extensions/no-debug-non-zts-20121212/opcache.so
opcache.memory_consumption=64
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=2001
opcache.revalidate_freq=5
opcache.fast_shutdown=1
opcache.enable_cli=0
opcache.enable=1

Install php 5.6.1
source
https://gist.github.com/Stayallive/dbb91ffa6f0fc6ca6ac3

configure
./configure \
–with-libdir=lib64 \
–cache-file=./config.cache \
–prefix=/usr/local/php-5.6.1 \
–with-config-file-path=/usr/local/php-5.6.1/etc \
–disable-debug \
–with-pic \
–disable-rpath \
–with-bz2 \
–with-curl \
–with-freetype-dir=/usr/local/php-5.6.1 \
–with-png-dir=/usr/local/php-5.6.1 \
–enable-gd-native-ttf \
–without-gdbm \
–with-gettext \
–with-gmp \
–with-iconv \
–with-jpeg-dir=/usr/local/php-5.6.1 \
–with-openssl \
–with-pspell \
–with-pcre-regex \
–with-zlib \
–enable-exif \
–enable-ftp \
–enable-sockets \
–enable-sysvsem \
–enable-sysvshm \
–enable-sysvmsg \
–enable-wddx \
–with-kerberos \
–with-unixODBC=/usr \
–enable-shmop \
–enable-calendar \
–with-libxml-dir=/usr/local/php-5.6.1 \
–enable-pcntl \
–with-imap \
–with-imap-ssl \
–enable-mbstring \
–enable-mbregex \
–with-gd \
–enable-bcmath \
–with-xmlrpc \
–with-ldap \
–with-ldap-sasl \
–with-mysql=/usr \
–with-mysqli \
–with-snmp \
–enable-soap \
–with-xsl \
–enable-xmlreader \
–enable-xmlwriter \
–enable-pdo \
–with-pdo-mysql \
–with-pear=/usr/local/php-5.6.1/pear \
–with-mcrypt \
–without-pdo-sqlite \
–with-config-file-scan-dir=/usr/local/php-5.6.1/php.d \
–without-sqlite3 \
–enable-intl \
–enable-opcache \
–enable-fpm

custom.ini
date.timezone = Europe/Copenhagen
post_max_size = 32M
upload_max_filesize = 32M
zend_extension=/usr/local/php-5.6.1/lib/php/extensions/no-debug-non-zts-20131226/opcache.so
opcache.memory_consumption=64
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=2001
opcache.revalidate_freq=5
opcache.fast_shutdown=1
opcache.enable_cli=0
opcache.enable=1

Install APCu
download
http://pecl.php.net/package/APCu

v 4.0.6

install
$ gunzip -c apcu_x.y.tar.gz | tar xf –
$ cd apcu_x.y
$ /path/to/phpize
$ ./configure [--with-php-config=/path/to/php-config]
$ make
$ make install

config
Suggested Configuration (in your php.ini file)
———————————————-
extension=apcu.so
apc.enabled=1
apc.shm_size=32M
apc.ttl=7200
apc.enable_cli=1
 
Many thanks once again Martin,

I'll give it a try

Peter.
P.S Any install notes on ZendOptimizer? and if so should I install it first?
 
Back
Top