Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion RHEL/CentOS
  • Search

[Tutorial] Install cache modules on Centos 7

RHEL/CentOS related topics
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
guiditoito
Posts: 8
Joined: Tue Apr 14, 2020 1:52 am

Os: CentOS 6x
Web: apache + nginx
[Tutorial] Install cache modules on Centos 7
  • Quote

Post by guiditoito » Sun Apr 19, 2020 2:36 pm

Hi,
I saw a few tutorials on how to install opcache apcu etc on vesta but unfortunately they were outdated.
I did this one with the best of my knowledge, may be a better way to link modules to Vesta but I think this one is accurate and will suport updates as long as we're on php 7.4
Just choose the section you need depending on your module and copy paste on your shell.

This method works for any other module you need, basically install from the remi repo using the php version and then link the ini file and the .so module

I tested with both fcgid and php-fpm and it works.

You may need to restart apache and php-fpm (if you're on nginx) afterwards.

Code: Select all

#Zend Opcache
yum -y install php74-php-opcache
ln -s /etc/opt/remi/php74/php.d/10-opcache.ini /etc/php.d/10-opcache.ini
ln -s /opt/remi/php74/root/usr/lib64/php/modules/opcache.so /usr/lib64/php/modules/

#IG Binary (redis)
yum -y install php74-php-pecl-igbinary
ln -s /opt/remi/php74/root/usr/lib64/php/modules/igbinary.so /usr/lib64/php/modules/
ln -s /etc/opt/remi/php74/php.d/40-igbinary.ini /etc/php.d/

#PHP APCu
yum -y install php74-php-pecl-apcu
ln -s /etc/opt/remi/php74/php.d/40-apcu.ini /etc/php.d/
ln -s /opt/remi/php74/root/usr/lib64/php/modules/apcu.so /usr/lib64/php/modules/

#REDIS
yum -y install redis
yum -y install php74-php-pecl-redis5
ln -s /opt/remi/php74/root/usr/lib64/php/modules/redis.so /usr/lib64/php/modules
ln -s /etc/opt/remi/php74/php.d/50-redis.ini /etc/php.d/

#MSGPACK (redis)
yum -y install php74-php-pecl-msgpack
ln -s /etc/opt/remi/php74/php.d/40-msgpack.ini /etc/php.d/
ln -s /opt/remi/php74/root/usr/lib64/php/modules/msgpack.so /usr/lib64/php/modules

#BONUS - ImageMagick
yum -y install php74-php-pecl-imagick
ln -s /etc/opt/remi/php74/php.d/40-imagick.ini /etc/php.d/
ln -s /opt/remi/php74/root/usr/lib64/php/modules/imagick.so /usr/lib64/php/modules
Top

desarrollo33
Posts: 9
Joined: Tue Mar 10, 2020 2:57 pm

Os: CentOS 6x
Web: apache + nginx
Re: [Tutorial] Install cache modules on Centos 7
  • Quote

Post by desarrollo33 » Tue Jun 16, 2020 2:52 pm

Give me this error when do the symbolics links and do php -v

Code: Select all

PHP Warning:  Failed loading Zend extension 'opcache' (tried: /usr/lib64/php/modules/opcache (/usr/lib64/php/modules/opcache: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/opcache.so (/usr/lib64/php/modules/opcache.so: undefined symbol: zend_preload_autoload)) in Unknown on line 0
PHP 7.4.3 (cli) (built: Feb 18 2020 11:53:05) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
Top

iotheme
Posts: 12
Joined: Sun May 24, 2020 11:18 am

Os: CentOS 6x
Web: apache + nginx
Re: [Tutorial] Install cache modules on Centos 7
  • Quote

Post by iotheme » Tue Jun 16, 2020 3:04 pm

desarrollo33 wrote: ↑
Tue Jun 16, 2020 2:52 pm
Give me this error when do the symbolics links and do php -v

Code: Select all

PHP Warning:  Failed loading Zend extension 'opcache' (tried: /usr/lib64/php/modules/opcache (/usr/lib64/php/modules/opcache: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/opcache.so (/usr/lib64/php/modules/opcache.so: undefined symbol: zend_preload_autoload)) in Unknown on line 0
PHP 7.4.3 (cli) (built: Feb 18 2020 11:53:05) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
Try this:

Code: Select all

yum --enablerepo=remi,remi-php70 install php-opcache
yum --enablerepo=remi,remi-php71 install php-opcache
yum --enablerepo=remi,remi-php72 install php-opcache
yum --enablerepo=remi,remi-php73 install php-opcache
yum --enablerepo=remi,remi-php74 install php-opcache
systemctl restart httpd
Top

desarrollo33
Posts: 9
Joined: Tue Mar 10, 2020 2:57 pm

Os: CentOS 6x
Web: apache + nginx
Re: [Tutorial] Install cache modules on Centos 7
  • Quote

Post by desarrollo33 » Tue Jun 16, 2020 3:37 pm

Yea, fix it, many thx
Top

samanthaa
Posts: 5
Joined: Tue Jun 25, 2019 7:56 pm
Contact:
Contact samanthaa
Website

Os: CentOS 6x
Web: apache
Re: [Tutorial] Install cache modules on Centos 7
  • Quote

Post by samanthaa » Wed Sep 09, 2020 11:08 pm

Dude!! That's help a lot! Thanks!!
Top

sewem
Posts: 2
Joined: Thu Sep 10, 2020 5:05 am

Os: Debian 8x
Web: apache + nginx
Re: [Tutorial] Install cache modules on Centos 7
  • Quote

Post by sewem » Thu Sep 10, 2020 4:56 pm

i am using PHP cache module here
which i followed this method if anyone need the tutorial
https://www.youtube.com/watch?v=7bXrzWwzgv8 hope this one helps

Sewing Maching Reviews
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “RHEL/CentOS”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password