Git Product home page Git Product logo

stack's Introduction

php79 stack

PHP 5.3 ~ 7.0 + Nginx + MariaDB + 앱들을 자동 설치합니다.

특징

  • 쉽고 빠른 설치, 운영, 업데이트까지 고려한 설계
  • 쉬운 업데이트 지원. (공식+인기 저장소를 사용하여 yum update 만으로 완료)
  • 기본 설정 파일의 수정을 최소화하여 혼란 예방. (주요 설정 내용을 z-php79.ini 형태의 외부 파일로 분리)
  • PHP 5.3, 5.4, 5.5, 5.6, 7.0 5가지 버전을 지원하며, 하나의 서버에서 2개 이상의 PHP 사용 가능.
  • 시스템 계정, 디비 계정 자동 생성 지원. (user-add.sh)
  • Laravel, WordPress, XE, 그누보드, phpMyAdmin 자동 설치 지원. (app-install.sh)

요약: 더 이상 설치에 시간을 낭비하지 마시고, 여러분의 코딩과 업무에 집중하세요! :)

설치 방법

CentOS 6/7 만 지원됩니다. (minimal 설치 환경 지원)

주의) 서버에 PHP, MariaDB/MySQL, Nginx/Apache 가 설치되지 않은 상태에서만 가능합니다! 서버 OS 설치를 의뢰하실 경우 미리 별도 요청하셔야 합니다. **OS만 설치하고 APM 은 설치하지 마세요.**

git 명령이 없다면, yum install git으로 먼저 설치하셔야 합니다.

cd /root/ \
&& git clone https://github.com/php79/stack.git \
&& cd stack \
&& ./install.sh
  • 기본 설치 옵션은 PHP 7.0 + Nginx + MariaDB 입니다.
  • 설치 화면에서 'y'만 누르면 바로 설치가 진행됩니다.

PHP 7.0

  • PHP 5.3 등 다른 버전을 설치하시겠습니까?
  • 설치화면에서 'n'를 누르고 중단합니다.
  • 그리고 stack.conf 파일을 열어 PHP53=1 으로 활성화시켜주고, 다시 ./install.sh 를 실행하면 됩니다.

PHP 5.3-7.0

  • ./install.sh 는 중복 실행해도 문제없도록 설계되었습니다.
  • 따라서 PHP 7.0 만 설치했다가 차후, PHP 5.3 , 5.4 등을 추가로 설치하실 수 있습니다.

주요 명령

  • 먼저 stack 디렉토리로 이동합니다.
cd /root/stack
  • 설치된 PHP 버전, 설정 파일 경로, 실행 여부, 서비스 재시작 명령 등의 모든 상태 정보를 확인할 수 있습니다.
./status.sh

status.sh

  • Laravel, WordPress, XE, 그누보드, phpMyAdmin 자동 설치를 지원합니다.
  • 시스템 계정, 디비 계정, 웹서버 설정, 앱 자동 설치까지 모두 한 번에 이루어 집니다.
./app-install.sh --user=php79 --password='php79!@' --domain=php79.com --app=laravel51 --php=70
./app-install.sh --user=wordpress --password='php79!@' --domain=wordpress.php79.com --app=wordpress --php=70
  • 기존 사이트 이전이나 수동 설치를 위해, 시스템 계정, 디비 계정만 생성할 수 있습니다.
./user-add.sh --user=php79 --password='php79!@'

경고) 비밀번호는 반드시 변경하여 사용하세요. 특히 시스템 계정(SSH/SFTP)이 생성되므로, 단순한 비밀번호는 절대 안됩니다!!!

  • stack 소스를 최신으로 업데이트합니다.
./self-update.sh

설치시 사용되는 yum 외부 저장소 목록

설치 내역

  • PHP 5.3, 5.4, 5.5, 5.6, 7.0

  • 단, CentOS 7 의 PHP 5.3 공식 저장소가 없어, 소스 컴파일 설치됩니다.

  • composer 설치

  • Nginx 1.10

  • http://nginx.org/en/download.html 의 stable version 으로 설치됩니다.

  • MariaDB 10.1

  • utf8mb4 인코딩 기본 지원. (모바일에서 이모티콘 저장이 잘 됩니다.)

  • 사용 메모리 최적화 설정 지원. (기본 4G)

  • 초기 root 비밀번호 자동 생성

  • 서버 초기 셋팅

  • ntp 시간 자동 동기화. (미래나 과거 날짜가 보여지는 문제는 이제 그만!)

  • SELinux 비활성화. (보다 강력한 보안을 위한 SELinux 사용 방법)

  • 타임존 설정.

  • S.M.A.R.T. 디스크 모니터링 smartd 설치. (선택가능)

  • 하드웨어 센서 모니터링 sensors 설치. (선택가능)

  • 서버 필수 유틸과 점검툴들 설치. (선택가능, rsync wget openssh-clients bind-utils git telnet nc vim-enhanced man ntsysv htop glances iotop iftop sysstat strace lsof mc lrzsz zip unzip bzip2)

방화벽 설정은 지원하지 않으므로, 수작업이 필요합니다.

PHP 확장 모듈 추가 설치

변경 내역

CHANGELOG

License

The MIT License (MIT)

라이선스 한글 번역본 - http://www.olis.or.kr/ossw/license/license/detail.do?lid=1006

stack's People

Contributors

ibin79 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.