PHP 설치 버전별 설치
Remark:
CentOS 에서 PHP 를 피요한 버전으로 설치 해 보자.
1. install yum-utils & enable epel repository
1 2 3 |
# yum install epel-release yum-utils -y |
2. Install remirepo using yum command
1 2 3 |
# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm |
3. configure the PHP 7.x repository
1 2 3 |
yum-config-manager --enable remi-php74 |
4. Install PHP 7.4 along with dependencies
1 2 3 |
yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql -y |
4. php -v
1 2 3 |
php -v |