?>
11.PHP5.xはサポートがおわったので、PHP7.xにVerUpして、その手順を記しておく まず >yum install epel-release をおこなう 次に >rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm をおこなう 更に >rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm 更に >cp /etc/php.ini /etc/php-v5.ini 現在のPHPをけして >yum remove php-* PHP7.3のRepoを指定し >yum install --disablerepo=* --enablerepo=epel,remi,remi-safe,remi-php73 php >yum install --disablerepo=* --enablerepo=epel,remi,remi-safe,remi-php73 php-gd php-mbstring php-mysql php-pdo >php -v PHP 7.3.10 (cli) (built: Sep 24 2019 09:20:18) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.10, Copyright (c) 1998-2018 Zend Technologies その後>vi /etc/php.ini memory_limit = 256M realpath_cache_size = 256k realpath_cache_ttl = 3600 upload_max_filesize = 20M post_max_size = 64M date.timezone = "Asia/Tokyo" default_charset = "UTF-8" mbstring.language = Japanese mbstring.internal_encoding = UTF-8 mbstring.http_input = UTF-8 mbstring.encoding_translation = On 終に >service httpd restart 正常にPHPがHTTPから起動できれば完了です。
↑ PAGE TOP