PHP 7.0 설치하기 (아마존 라이트세일 AWS Lightsail)
개발하다 보면 PHP 의 특정 버전을 설치해야 하는 경우가 생깁니다.
아래는 php 7.0 버전을 가장 쉽게 설치하는 방법입니다.
실제 서비스에 적용하려면 여러가지 설정값을 변경해야 하는데 여기서는 설정값을 변경하는 부분에 대한 설명은 하지 않습니다.
Lightsail > 인스턴스 생성 > Linux/Unix > OS 전용 > Amazon Linux (2 버전 아님) > 인스턴스 생성 버튼 클릭
https://lightsail.aws.amazon.com/ls/webapp/home/instances
인스턴스 연결 (shell 접속)
사용자 계정 : ec2-user / 기본키 (사용자키)
(root 접속)
$ sudo su
# yum install -y php70 php70-fpm php70-mysqlnd php70-gd
# yum install -y mysql mysql-server nginx git
(서비스 시작)
# service nginx start ; service mysqld start ; service php-fpm start
(reboot 할때 서비스 되도록)
# chkconfig nginx on ; chkconfig mysqld on ; chkconfig php-fpm on
# cd /usr/share/nginx/html ; git clone https://github.com/gnuboard/gnuboard5.git
# cd gnuboard5 ; mkdir data ; chmod 777 data
# mysql_secure_installation
Change the root password? [Y/n] Y
New password:
Re-enter new password:
Remove test database and access to it? [Y/n] N
웹브라우저에서 http://아이피주소/gnuboard5/
를 실행하고 아래와 같이 입력하세요.
MySQL User : root
MySQL Password : 위에서 입력한 password
MySQL DB : test
그리고 나머지 입력하고 설치하면 끝납니다.
댓글 4개
개발에 대한 감각을 유지하기가 여간 쉽지 않는 일라서 더욱... 멋지십니다.
결국은
지성무식(至誠無息)
이더라구요.
게시판 목록
개발자팁
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 4946 | node.js | 6년 전 | 2607 | ||
| 4945 | node.js | 6년 전 | 2379 | ||
| 4944 | node.js | 6년 전 | 2519 | ||
| 4943 | node.js | 6년 전 | 2269 | ||
| 4942 | node.js | 6년 전 | 2245 | ||
| 4941 | node.js | 6년 전 | 2717 | ||
| 4940 | node.js | 6년 전 | 1867 | ||
| 4939 | node.js | 6년 전 | 1995 | ||
| 4938 | node.js | 6년 전 | 2457 | ||
| 4937 | node.js | 6년 전 | 2247 | ||
| 4936 | node.js | 6년 전 | 2318 | ||
| 4935 | node.js | 6년 전 | 2136 | ||
| 4934 | node.js | 6년 전 | 2440 | ||
| 4933 | node.js | 6년 전 | 2244 | ||
| 4932 | node.js | 6년 전 | 2686 | ||
| 4931 | node.js | 6년 전 | 2070 | ||
| 4930 | node.js | 6년 전 | 1998 | ||
| 4929 | node.js | 6년 전 | 8629 | ||
| 4928 | node.js | 6년 전 | 3749 | ||
| 4927 | node.js | 6년 전 | 2392 | ||
| 4926 | node.js | 6년 전 | 2504 | ||
| 4925 | node.js | 6년 전 | 2081 | ||
| 4924 | node.js | 6년 전 | 3372 | ||
| 4923 | node.js | 6년 전 | 2220 | ||
| 4922 | node.js | 6년 전 | 1989 | ||
| 4921 | node.js | 6년 전 | 2046 | ||
| 4920 | node.js | 6년 전 | 1764 | ||
| 4919 | node.js | 6년 전 | 2029 | ||
| 4918 | node.js | 6년 전 | 2176 | ||
| 4917 | node.js | 6년 전 | 2393 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기