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 Web Server
  • Search

PHP Caching ? Topic is solved

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
jodumont
Posts: 26
Joined: Fri Jan 05, 2018 3:03 pm

Os: Debian 8x
Web: nginx + php-fpm
PHP Caching ?
  • Quote

Post by jodumont » Thu Mar 01, 2018 8:36 am

H;

I just install VestaCP (again) on CentOS (I specify because it might not the case on other OS)
I just realise, at least after an update to PHP7

PHP have no cache module like : opcache, apc, apcu, memcache or memcached.

My 1st question is why ?
My 2nd question is why not ?

Why It have no cache; Caching is very benefic for drupal, wordpress and others php apps which VestaCP propose WebTemplates.
I'm not talking about Redis or memcached which better to have a 3rd parties server for them but simply stuff like opcache and or apc/apcu which already increase performance for at least wordpress, nextcloud and drupal.

So I wonder Why not including opcache and apcu in VestaCP deployment ?


Thank and o plaisir to read you about this :)
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: PHP Caching ?
  • Quote

Post by mehargags » Thu Mar 01, 2018 11:34 am

What version of PHP 7 did you install ? 7.1 or 7.2 ?

Also OPcache is intgrated into PHP7 and should be enabled, however if not then you can enable it in your Php.ini

here is a good discussion to follow. https://www.digitalocean.com/community/ ... he-on-php7
Top

jodumont
Posts: 26
Joined: Fri Jan 05, 2018 3:03 pm

Os: Debian 8x
Web: nginx + php-fpm
Re: PHP Caching ?
  • Quote

Post by jodumont » Tue Apr 10, 2018 9:35 am

I have PHP 7.2.4 on CentOS

I don't think opCache is by default because
opcache-status and/or opcache-gui say : You do not have the Zend OPcache extension loaded
also opcache is not there when I do a

Code: Select all

php -m
and so even after an install

Code: Select all

yum install php72-php-opcache
systemctl restart php-fpm nginx
I also followed this tuto which it's ending with :
PHP 7.2.1 (cli) (built: Jan 3 2018 07:51:38) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.2.1, Copyright (c) 1999-2017, by Zend Technologies
but I still without ZendOPcache
php -v
PHP 7.2.4 (cli) (built: Mar 27 2018 17:23:35) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

I wonder if it's because VestaCP use ioCube ?
Top

sandy
Posts: 90
Joined: Sat Apr 07, 2018 7:06 pm
Contact:
Contact sandy
Website

Os: CentOS 6x
Web: nginx + php-fpm
Re: PHP Caching ?
  • Quote

Post by sandy » Tue Apr 10, 2018 1:52 pm

simple easy installation guide for installaing opcache, APC/APCu, memcached and redis under centos :
https://www.mysterydata.com/how-to-inst ... cp-centos/
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Web Server”



  • 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