CentOS7 PHP 컴파일 설치시 자동으로 버전 업그레이드 되는 현상
-
게시물 수정 , 삭제는 로그인 필요
안녕하세요.
서버 레거시로 인하여 클라우드로 서버 마이그레이션을 진행하고 있습니다.
CentOS 6.2 에서 CentOS 7.8로 넘어왔고, 기존의 설정 그대로 옮기기 위해서 PHP 5.3.8버전을 컴파일 설치하는데 계속해서 5.4.16버전으로 버전업이 되어 질문드립니다.
제가 파악한 내용은 sudo su를 사용 하였을때 계속해서 버전업이 되었고, 사용자 계정으로 설치할때는 버전업이 되지 않았습니다. 또 su - root로 설치하였을때도 버전업이 되지 않았습니다. 왜 그런걸까요 ?
sudo su 는 관리자의 권한만 가져오는걸로 알고 있고
su - root 는 관리자의 권한과 환경설정까지 가져오는걸로 알고 있습니다.
아래는 PHP configure 설정 정보입니다.
./configure --with-apxs2=/usr/local/http/bin/apxs --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/http/conf --with-exec-dir=/usr/local/http/bin --with-zlib --with-zlib-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-gd --with-freetype-dir=/usr --with-gettext --with-kerberos --with-mm=/usr/local --with-mhash=/usr/local --with-mcrypt=/usr/local --with-regex=php --with-curl=/usr --with-xmlrpc --with-openssl --with-openssl-dir=/usr --enable-gd-native-ttf --enable-ftp --enable-sockets --enable-sysvsem --enable-sysvshm --enable-shmop --enable-zip --enable-calendar --enable-sigchild --enable-magic-quotes --enable-intl --enable-bcmath --enable-mbstring
사용자 환경설정 정보 입니다.
/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/local/mysql/bin:/home/centos/.local/bin:/home/centos/bin
sudo su 환경설정 정보 입니다.
/sbin:/bin:/usr/sbin:/usr/bin
su - root 환경설정 정보 입니다.
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/mysql/bin:/root/bin
감사합니다.
#centos7 php 설치 #centos7 php8 설치 #centos7 php7 설치 #centos7 php 삭제 #centos7 phpmyadmin 설치 #centos7 php8 #centos7 php7.4 #centos7 php 버전 확인 #centos7 php.ini #centos7 php 8.2