m1) php codeigniter (CI) 설치 (설정) (feat.homebrew) 수정중

~ brew update
~ brew list php # php확인
~ brew search php #php search
~ brew install php #없으면 원하는 버전 설치
~ brew list httpd # httpd 확인
~ brew search httpd # repo 확인
~ brew istall httpd # httpd 설치
~ brew info httpd # document root 확인

[result]

httpd: stable 2.4.53 (bottled)
Apache HTTP server
https://httpd.apache.org/
/opt/homebrew/Cellar/httpd/2.4.53 (1,662 files, 31.8MB) *
  Poured from bottle on 2022-03-25 at 22:01:22
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/httpd.rb
License: Apache-2.0
==> Dependencies
Required: apr ✔, apr-util ✔, brotli ✔, libnghttp2 ✔, openssl@1.1 ✔, pcre ✔
==> Caveats
DocumentRoot is /opt/homebrew/var/www.

The default ports have been set in /opt/homebrew/etc/httpd/httpd.conf to 8080 and in
/opt/homebrew/etc/httpd/extra/httpd-ssl.conf to 8443 so that httpd can run without sudo.

To restart httpd after an upgrade:
  brew services restart httpd
Or, if you don't want/need a background service you can just run:
  /opt/homebrew/opt/httpd/bin/httpd -D FOREGROUND
==> Analytics
install: 40,952 (30 days), 105,683 (90 days), 328,661 (365 days)
install-on-request: 25,190 (30 days), 68,296 (90 days), 230,571 (365 days)
build-error: 244 (30 days)

 

CodeIgniter-3.0.6 버전:

https://github.com/Cazcode/Codeigniter-3.0.6

 

GitHub - Cazcode/Codeigniter-3.0.6: Template de Codeigniter con modificaciones propias

Template de Codeigniter con modificaciones propias - GitHub - Cazcode/Codeigniter-3.0.6: Template de Codeigniter con modificaciones propias

github.com

 

CodeIgniter 최신버전:

https://codeigniter.com/download

 

Welcome to CodeIgniter

CodeIgniter 4 is the latest version of the framework, intended for use with PHP 7.3+ (including 8.1). The initial release was February 24, 2020. The current version is v4.1.9. You *could* download this version of the framework using the button below, but w

codeigniter.com

다운받아서 압축풀고 내용물을 DocumentRoot 에 넣어준다

 

그담 터미널에서 서버재시작

~ sudo apachectl stop # apache 가 실행되고 있으면 꺼준다
~ brew services stop httpd # httpd 종료
~ brew services start httpd # httpd 시작
# 혹은 걍 재시작
~ brew services restart httpd
# 혹은 cordigniter 경로에서
php -S localhost:8080 # 8080->[port]

 

브라우저에서 접속하여 codeigniter (CI) 가 작동하는지 확인 info 에서도 나오지만 default port로 젒속한다

php -S 라면 주소창에서  localhost:8080 ([port])

작동화면

 

코드이그나이트 한국포럼

https://cikorea.net/

 

CodeIgniter 한국사용자포럼

 

cikorea.net

코드이그나이터 한글매뉴얼

 

코드이그나이터 3.0 한글매뉴얼

© Copyright 2014 - 2016, British Columbia Institute of Technology. Last updated on Mar 21, 2016.

www.ciboard.co.kr

 

Comment