php7, memcached & opcache

I switched to php7 and admin tools still show php5.6 for memcached and opcache. how do I know if memcached and opcache are working for php7?

Here’s what I did so far…

I followed the procedure here - https://easyengine.io/docs/php7/ - and I got a 500 error.

I found this error in error.log - [error] 22814#0: *21 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class ‘Memcache’ not found in /var/www/domain.com/htdocs/wp-content/object-cache.php on line 372

So, I deleted opcache.php from wp-content and it was all working fine.

I found the 10-opcache.ini and 25-memcached.ini in /etc/php/7.0/fpm/conf.d/ but how can I tell if they are working?

@AndreiChira

Admin tools are running on PHP5.6 which is default PHP version so you will see them showing PHP 5.6 information.

PHP7.0 is experimental version and can be enabled sitewise. So EasyEngine does not run Admin tools on PHP7.0

vi /etc/nginx/site-available/22222

Find location ~ .php$ { try_files $uri =404; include fastcgi_params; fastcgi_pass php;

Change to

fastcgi_pass php7;

1 Like

Thanks, that solved it.