본문 바로가기

Operating Systems/Linux

[ Linux ] PHP 설치

PHP Download

[ PHP 설치 서버 ]

yum install gcc glibc glibc-common gd gd-devel -y

yum -y install libxml2-devel

yum -y install sqlite-devel

yum -y install make

mkdir -p /app/install/

wget https://www.php.net/distributions/php-8.0.9.tar.gz -O /app/install/php8.0.9.tar.gz

mkdir -p /app/temp/php/8.0.9

tar xvfz /app/install/php8.0.9.tar.gz -C /app/temp/php/8.0.9 --strip-components=1

cd /app/temp/php/8.0.9

mkdir -p /app/dkit/php/8.0.9

./configure --prefix=/app/dkit/php/8.0.9

make

make install

rm -rf "/app/temp/php/8.0.9"

ln -Tfs /app/dkit/php/8.0.9 /app/dkit/php/release

ln -Tfs /app/dkit/php/release/bin/php /usr/bin/php

php -version

'Operating Systems > Linux' 카테고리의 다른 글

[ Linux ] CENTOS7 설치 [임시작성]  (0) 2021.08.07
[ Linux ] HEREDOC 활용  (0) 2021.08.07
[ Linux ] WORDPRESS 설치  (0) 2021.08.06
[ Linux ] PYTHON 설치  (0) 2021.08.01
[ Linux ] APACHE ↔ TOMCAT 연동  (0) 2021.08.01