Tag: CentOS8/PHP
dnf module reset php dnf install @php:remi-7.4 dnf install @php:remi-7.4/devel dnf install php-gd php-mysqlnd php-opcache php-pecl-mysql php-pecl-zip php-pecl-apcu
systemctl start php-fpm systemctl enable php-fpm
<?php phpinfo(); ?>
[Date] date.timezone ="Asia/Tokyo" [mbstring] mbstring.language = Japanese mbstring.internal_encoding = UTF-8 mbstring.http_input = auto mbstring.http_output = UTF-8 mbstring.encoding_translation = On mbstring.detect_order = auto mbstring.substitute_character = none mbstring.func_overload = 1
systemctl restart php-fpm
user = www-data group = www-data listen.owner = www-data listen.group = www-data ;listen.acl_users = apache,nginx
php_value[session.save_handler] = files php_value[session.save_path] = /var/lib/php/session php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache ;php_value[opcache.file_cache] = /var/lib/php/opcache
sudo usermod -aG apache www-data
# chown www-data.www-data /run/php-fpm/www.sock