git clone https://gist.github.com/82c107282241c7a52ad9.git serve-php
/etc/nginx/nginx.conf
http {
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
## 추가 부분
include /etc/nginx/sites-enabled/*;
}
chmod 777 seve-php.sh
./serve-php.sh dev.galgulee.com /home/galgulee/dev
위 부분에서 오류가 나는데..
본인의 환경에 맞게 수정 필요
난 이렇게 수정 함
function find_fpm() { d="/etc/init.d/" found=0; # for v in ${PHP_VERSIONS};do # FPM="php${v}-fpm"; # FULL_PATH=${d}"php${v}-fpm"; # if [ -f "${FULL_PATH}" ]; then # echo "${FPM} script found in the '${FULL_PATH}'"; # found=1; # break; # fi; # done FULL_PATH="/usr/lib/systemd/system/php-fpm.service" found=0; if [ ${found} == 0 ];then if [ -f "/usr/lib/systemd/system/php-fpm.service" ];then ## RHEL 7 FPM="php-fpm"; echo "${FPM} script found in the '${FULL_PATH}'"; else echo "php-fpm not found. exiting..."; exit 1; fi; fi; }
cd /etc/nginx/sites-available
위 폴더의 파일을 적당하게 편집…