php 헛다리/CI4 헛다리

ci4 수동설치

후닝요 2024. 10. 9. 14:52
728x90

 

 

ci4 수동설치

환경 - centos7 , php8.2 , apache 2.4

intl,mbstring,json 설치필요

#> sudo yum install -y php-{intl,mbstring,json}



2. 프로젝트 생성

ssh 접속

#> cd /home

#> useradd ci01

#> chmod 755 ci01


3. ftp로 다운받은 파일업로드

업로드 경로 - /home/ci01/public_html/


4. vhost 설정

프로젝트의 root 경로는 public

<VirtualHost *:80>

# root 경로 설정

DocumentRoot /home/ci01/public_html/public/

# 도메인,2차도메인 ***

ServerName ci01.jhun.co.kr

ErrorLog "logs/ci01_A01-error_log"

CustomLog "logs/ci01_A01-access_log" common

#================================

# 이부분 없으면 Testing 123.. 에러남 sss

# apache 2.4

<Directory /home/ci01>

Options Indexes FollowSymLinks

AllowOverride None

Require all granted

</Directory>

# 이부분 없으면 Testing 123.. 에러남 eee

#================================

</VirtualHost>

위 화면 뜨면

/app/Config/Boot/production.php

// ini_set('display_errors', '0'); 을 ini_set('display_errors', '1'); 로 변경

ini_set('display_errors', '1');


위 에러시 writable/cache 폴더 777 변경

#> cd /프로젝트

#> chmod 777 -R writable/cache


이런 화면 뜨면 성공!! 끝!!

728x90