WEB & WAS/PHP22 PHP-FPM 이란? 보호되어 있는 글 입니다. 2023. 9. 20. Nginx 연동 PHP-FPM 설치 (8.2) ##기본 설정 mkdir -p /usr/local/src/NPM_Setup export SOURCE_DIR=/usr/local/src/NPM_Setup yum install -y vim wget epel-release cd $SOURCE_DIR yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm yum update -y ##디폴트환경변수 echo " " >> /etc/profile echo "####default PATH#####" >> /etc/profile echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:" >> /etc/profile .. WEB & WAS/PHP 2023. 4. 9. Rocky Linux 8 PHP remi 패키지 설치 systemctl disable firewalld && systemctl stop firewalld ##selinux disabled하기 sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config localectl set-locale LANG=ko_KR.utf8 sed s/enabled=0/enabled=1/g -i /etc/yum.repos.d/Rocky-Extras.repo sed s/enabled=0/enabled=1/g -i /etc/yum.repos.d/Rocky-HighAvailability.repo sed.. WEB & WAS/PHP 2023. 3. 27. PHP 7.3~7.4 sqlsrv 모듈 설치 OS : CentOS 7.x PHP : 7.4 / 7.3 1. odbc install #RedHat Enterprise Server 6 curl https://packages.microsoft.com/config/rhel/6/prod.repo > /etc/yum.repos.d/mssql-release.repo #RedHat Enterprise Server 7 curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/mssql-release.repo #RedHat Enterprise Server 8 and Oracle Linux 8 curl https://packages.microsoft.com/config/rhel/8/p.. WEB & WAS/PHP 2023. 3. 26. PHP curl 모듈에 openssl 연동 PHP 서버를 운영하다 보면 curl에 openssl 기능이 있어야 하는 서비스가 필요하다 대부분 PG사 통신할때 CURL에 openssl을 이용하는데 기본으로 설치하게 된다면 curl에는 openssl 이 enable 되어 있지 않다 아래 화면을 보면 기본으로 설치된 php 5.2 버전 이제 CURL에 openssl 을 enable 해 보자 1. curl 파일을 다운로드 후 압축 해제 후 컴파일 진행 # wget mirror.koreaidc.com/curl/curl-7.49.0.tar.gz # tar xvfz curl-7.49.0.tar.gz # cd curl-7.49.0 # ./configure --prefix=/usr/local/curl # make -j && make install # ll /us.. WEB & WAS/PHP 2023. 3. 26. phpmysql 연동 php파일 vi phpmysqltest.php WEB & WAS/PHP 2023. 3. 17. PHP 설치시 오류 모음집 PHP 각오류 날시 경우들 configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation. Fix: yum install net-snmp-devel configure: error: DBA: Could not find necessary header file(s) 일반적으로 # yum install gdbm gdbm-devel 이면 해결되지만 계속해서 나는 경우 # yum install libdb-devel 해준다. configure: error: DBA: Could not find necessary library. # ln -s /usr/lib64/libgdbm_compat.so /usr/loca.. WEB & WAS/PHP 2023. 3. 17. php.ini 설정 1. short_open_tag = On Tells PHP whether the short form () of PHP's open tag should be allowed Off 일땐 WEB & WAS/PHP 2023. 3. 17. CentOS 7 PHP 8.2.33 소스 컴파일 설치 (현재 8.2.4 23/03/17) ## PHP 설치전 선행 작업 cd /usr/local/src/ yum install -y wget vim epel-release yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm yum update -y ## CentOS 7 Default 환경변수설정 echo " " >> /etc/profile echo "####default PATH#####" >> /etc/profile echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:" >> /etc/profile echo "#####################" >> /etc/profile ##.. WEB & WAS/PHP 2023. 3. 17. CentOS 7 PHP 8.1.33 소스 컴파일 설치 (현재 8.1.17 23/03/17) ## PHP 설치전 선행 작업 cd /usr/local/src/ yum install -y wget vim epel-release yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm yum update -y ## CentOS 7 Default 환경변수설정 echo " " >> /etc/profile echo "####default PATH#####" >> /etc/profile echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:" >> /etc/profile echo "#####################" >> /etc/profile ##.. WEB & WAS/PHP 2023. 3. 17. CentOS 7 PHP 8.0.33 소스 컴파일 설치 (현재 8.0.28 23/03/17) ## PHP 설치전 선행 작업 cd /usr/local/src/ yum install -y wget vim epel-release yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm yum update -y ## CentOS 7 Default 환경변수설정 echo " " >> /etc/profile echo "####default PATH#####" >> /etc/profile echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:" >> /etc/profile echo "#####################" >> /etc/profile ##.. WEB & WAS/PHP 2023. 3. 17. CentOS 7 PHP 7.4.33 소스 컴파일 설치 ## PHP 설치전 선행 작업 cd /usr/local/src/ yum install -y wget vim epel-release yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm yum update -y ## CentOS 7 Default 환경변수설정 echo " " >> /etc/profile echo "####default PATH#####" >> /etc/profile echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:" >> /etc/profile echo "#####################" >> /etc/profile ##.. WEB & WAS/PHP 2023. 3. 16. 이전 1 2 다음