sadly this didn’t work here. also on centos 7 starting to get frustrating
Works fine at me.
hi,
what worked for me was to change the configuration on /etc/php/7.0/cli/php.ini and /etc/php/7.0/apache2/php.ini.
seems like both locations al related and can’t work without the same configuration on both files.
i hope this helps for y’all
I make this and works for me very well
sudo apt-fast update
sudo apt-fast install php7.0-dev git -y
cd /tmp
git clone https://github.com/krakjoe/apcu
cd apcu
phpize
./configure
make
sudo make install
echo "extension = apcu.so" | sudo tee -a /etc/php/7.0/mods-available/apcu.ini
sudo ln -s /etc/php/7.0/mods-available/apcu.ini /etc/php/7.0/fpm/conf.d/30-apcu.ini
sudo ln -s /etc/php/7.0/mods-available/apcu.ini /etc/php/7.0/cli/conf.d/30-apcu.ini
sudo nano /etc/php/7.0/mods-available/apcu.ini
extension=apcu.so
apc.shm_size = “50M”
sudo nano /etc/php/7.0/fpm/pool.d/www.conf
env[PATH] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
sudo nano /etc/php/7.0/fpm/php.ini
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.revalidate_freq=1
opcache.save_comments=1
sudo nano /usr/share/nginx/nextcloud/config/config.php
‘memcache.local’ => ‘\OC\Memcache\APCu’,
sudo systemctl reload php7.0-fpm
sudo systemctl reload nginx
For Centos 7:
I was getting the same issue in centos7 but now it’s resolved. If you are getting this issue in centos machine then open the file:
sudo vi etc/php.d/10-opcache.ini and search the given parameter and change the values accordingly.
Now restart the httpd service as:
sudo systemctl restart httpd