• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Enable APCu

Hi Oliver,
Need your help, i have ubuntu 14.04 with Plesk 12, PHP .5.5 and 5.6. i would like to install APCu and opcache, can you please help me to give me easy instractions?

Regards
 
Hi All
Have the same Problem like "Digitalberg". My Server Ubuntu 14.04.3 LTS‬ - 12.5.30 Update #8 with PHP 5.5 and 5.6.
I want also Install APCu and /or opcache, need it for OwnCLoud. But in the introductions is for an other Server typ.
How can i install it, without an Server Crash.

Regards and Thanks for any help.
 
Hi Voodoomaster,

if you don't use "yum" ( as for CentOS/RHEL... -based systems ), you are able to use "apt-get" or "aptitude" instead, which leads to the first command of the process, described as example at:


=> The first command for Debian/Ubuntu... - based systems would be: apt-cache search plesk-php devel
... and instead of "yum install", the command to install packages is "apt-get install" or "aptitude install"​


You can now follow previous suggestions in this thread, as for example:
Are you sure, that you have installed apcu in the context of the desired php version?

E.g. (for php 5.6.10, untested):

1. Install the corresponding php devel-package
2. Install apcu in the context of the right php-version:

cd /opt/plesk/php/5.6/bin
./pecl config-set php_ini /opt/plesk/php/5.6/etc/php.ini
./pecl config-set php_bin /opt/plesk/php/5.6/bin/
./pear config-set php_suffix ""
./pecl install --force apcu

3. Include the apcu-extension

echo "extension=apcu.so" > /opt/plesk/php/5.6/etc/php.d/apcu.ini

4. Restart Apache

service httpd restart
or
service apache2 restart

5. Configure the desired vhost to use apcu

apc.enabled = 1
...

... or:
The devel packages are not available via package manager - just tested it again in my test-vm.
So you would have to do it manually.

Example for PHP 5.6.10:

#1 - Open http://autoinstall.plesk.com/PHP_5.6.10/ in your browser and determine the full url of the devel-package for your distribution, e.g. CentOS 7:

http://autoinstall.plesk.com/PHP_5....hp56-devel-5.6.10-centos7.15061519.x86_64.rpm

#2 - Download & install

cd /tmp
wget http://autoinstall.plesk.com/PHP_5....hp56-devel-5.6.10-centos7.15061519.x86_64.rpm
yum install plesk-php56-devel-5.6.10-centos7.15061519.x86_64.rpm

Note: If you are running debian or a debian based distribution, the command would be 'dpkg -i ...'

Please make sure to use the correct "deb" - packages ( instead of "rpm" for CentOS/Rhel... - based systems ) for YOUR operating system. As already described, you would choose your operating system and the depending package for manual installation, using "dpkg", at http://autoinstall.plesk.com/PHP_5.6.10/

If you experience any issues/problems, please consider to post WHAT you did, WHICH commands you used, WHAT the error/issue was and WHERE you already looked at, to search for resolutions.
 
anyone have issues compiling APCU?

/tmp/apcu/apc.c:41:31: error: zend_smart_str.h: No such file or directory
/tmp/apcu/apc.c: In function ‘apc_flip_hash’:
/tmp/apcu/apc.c:336: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type
/opt/plesk/php/5.6/include/php/Zend/zend_hash.h:182: note: expected ‘void **’ but argument is of type ‘struct Bucket **’
/tmp/apcu/apc.c:336: error: too few arguments to function ‘zend_hash_get_current_data_ex’
/tmp/apcu/apc.c:338:61: error: macro "zend_hash_update" requires 6 arguments, but only 3 given
/tmp/apcu/apc.c:338: error: ‘zend_hash_update’ undeclared (first use in this function)
/tmp/apcu/apc.c:338: error: (Each undeclared identifier is reported only once
/tmp/apcu/apc.c:338: error: for each function it appears in.)
/tmp/apcu/apc.c:340:68: error: macro "zend_hash_index_update" requires 5 arguments, but only 3 given
/tmp/apcu/apc.c:340: error: ‘zend_hash_index_update’ undeclared (first use in this function)
/tmp/apcu/apc.c:345: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/opt/plesk/php/5.6/include/php/Zend/zend_variables.h:51: note: expected ‘struct zval **’ but argument is of type ‘struct zval *’
make: *** [apc.lo] Error 1
ERROR: `make' failed
 
I just tried this with a brand new server/plesk install and it fails. same error.

/tmp/apcu/apc.c:41:31: fatal error: zend_smart_str.h: No such file or directory
# include "zend_smart_str.h"
^
compilation terminated.
make: *** [apc.lo] Error 1
ERROR: `make' failed
 
Back
Top