PHP/CodeIgniter4

설치하기

6미리 2020. 11. 18. 21:14

 

codeigniter.com/download

 

 

Download CodeIgniter

CodeIgniter comes in three flavors: CodeIgniter 3 (current), CodeIgniter 4 (future) and CodeIgniter 2 (legacy) CodeIgniter 2 CodeIgniter 2.2.6 is the legacy version of the framework. The 2.x branch was originally released January 2011, and the last version

codeigniter.com

코드이그나이터의 공식 사이트에서 다운로드를 받았습니다.

 

코드이그나이터4 의 매뉴얼은 아래 사이트에 있고요 (한국어)

ci4doc.cikorea.net/

 

CodeIgniter4 사용자 가이드 — CodeIgniter 4.0.4 documentation

© Copyright 2019-2020 CodeIgniter Foundation Last updated on Nov 16, 2020.

ci4doc.cikorea.net

 

처음엔 git으로 설치하려고 하였으나. git으로 설치할때 아래와 같은 문구가 있었습니다.

ci4doc.cikorea.net/installation/installing_git.html

 

기여하는데 적합합니다

그래서 저는 실제 앱을 만들려고 하는거기 때문에 다운로드 받아서 설치하였습니다.

 

단순히 다운로드 받아 웹 디렉토리에 올리기만 하면 끝입니다.

다만 

 

ci4doc.cikorea.net/installation/installing_manual.html

 

이 링크에서 보듯이

퍼블릭 폴더

public 디렉토리(폴더)가 웹 루트가 되니까 설정을 조금 변경해주어야 합니다.

 

코드이그나이터3를 설치할때 처럼 웹 루트에 system등 모든 폴더가 있는게 아니라

루트는 public으로

위 그림에서 보듯이 home을 일반적인 프로그램들의 루트로 지정했다면 도메인 https://www.example.com 을 입력하고 들어갈때 보이는 루트는 public 이 되어야 하다는 겁니다.

 

저는 이걸 지나가서 꽤나 많이 헤맸어야 했습니다

다른분들은 헷갈리지 않기를 기원합니다.

 

그렇게 하면 CI4의 기본 화면을 보게 됩니다.