LinuxServer?
php (nextCloudのルートフォルダ)/occ log:file
php (nextCloudのルートフォルダ)/occ log:manage --level=info --timezone Asia/Tokyo
sudo yum install php74-php-opcache php74-php-pecl-apcu
find /opt -name "*opcache*"
find /etc -name "*opcache*"
sudo cp /etc/opt/remi/php74/php.d/10-opcache.ini /etc/php.d/ sudo cp /opt/remi/php74/root/usr/lib64/php/modules/opcache.so /usr/lib64/php/modules/
zend_extension=opcache opcache.enable=1 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=10000 opcache.memory_consumption=128 opcache.save_comments=1 opcache.revalidate_freq = 60 opcache.validate_timestamps = 0
PHP 7.4.33 (cli) (built: Apr 10 2024 09:34:29) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies
sudo yum install php74-php-pecl-apcu
find /opt -name "*apcu*"
find /etc -name "*apcu*"
sudo cp /etc/opt/remi/php74/php.d/40-apcu.ini /etc/php.d/ sudo cp /opt/remi/php74/root/usr/lib64/php/modules/apcu.so /usr/lib64/php/modules/
'installed' => true, │ 'default_phone_region' => 'JP', │ 'memcache.local' => '\OC\Memcache\APCu', │ 'memcache.distributed' => '\OC\Memcache\Redis', │ 'memcache.locking' => '\OC\Memcache\Redis', │ 'redis' => [ │ 'host' => 'localhost', │ 'port' => 6379, │ ], │ );
sudo systemctl restart httpd
sudo yum install php74-php-pecl-redis
find /opt -name "*redis.so*"
find /etc -name "*redis*"
sudo cp /etc/opt/remi/php74/php.d/50-redis.ini /etc/php.d/ sudo cp /opt/remi/php74/root/usr/lib64/php/modules/redis.so /usr/lib64/php/modules/
find /opt -name "*igbinary*"
find /etc -name "*igbinary*"
sudo cp /etc/opt/remi/php74/php.d/40-igbinary.ini /etc/php.d/ sudo cp /opt/remi/php74/root/usr/lib64/php/modules/igbinary.so /usr/lib64/php/modules/
find /opt -name "*msgpack*"
find /etc -name "*msgpack*"
sudo cp /etc/opt/remi/php74/php.d/40-msgpack.ini /etc/php.d/ sudo cp /opt/remi/php74/root/usr/lib64/php/modules/msgpack.so /usr/lib64/php/modules/
'installed' => true, 'default_phone_region' => 'JP', 'memcache.local' => '\OC\Memcache\APCu', 'memcache.distributed' => '\OC\Memcache\Redis', 'memcache.locking' => '\OC\Memcache\Redis', 'redis' => [ 'host' => 'localhost', 'port' => 6379, ], );
sudo systemctl restart httpd
opcache.interned_strings_buffer=32
sudo systemctl restart httpd
pm = static pm.max_children = 120 pm.start_servers = 12 pm.min_spare_servers = 6 pm.max_spare_servers = 18
<?php phpinfo(); ?>
sudo chown apache: -R /var/lib/php/session
sudo -u www-data php /var/www/nextcloud/occ user:resetpassword admin
sudo chown apacheUser:ApacheUsers /var/lib/php/sessions -R
sudo gpasswd -a apacheUser redis
systemctl restart redis systemctl restart apache2
/usr/bin/php -f /var/www/nextcloud/cron.php --define apc.enable_cli=1