Skip to content

CHICPRO

  • Life Log
  • Cycling Log
  • Photo Log
    • Portrait
    • Landscape
    • Flower
    • Etc
  • Coding Log
  • Information

CentOS 7 + Laravel 그 삽질의 기록

2020-07-30 by 편리

업무상 당장 필요한 것은 아니지만.. 최근에 오라클 클라우드에 무료 vps 를 생성했기에 그냥 두기에는 뭔가 아쉬운 느낌이 들어서 Laravel(이하 라라벨)을 공부하는 것으로 하면 좋겠다 싶어 세팅을 시작했다. 그리고 이 포스트는 그 삽질의 기록이다. 이제 겨우 라라벨 초기 화면만 본 상태이니.. 앞으로의 삽질이 기대(?)되지 않는가?

0. APM 설치

# yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
# yum -y install epel-release yum-utils
# yum-config-manager --enable remi-php74
# yum install httpd
# yum install php php-cli php-bcmath php-bz2 php-common php-curl php-dba php-gd php-json php-mbstring php-opcache php-readline php-soap php-xml php-xmlrpc php-zip php-ctype php-pdo php-redis php-mysql php-imagick php-intl
# vim /etc/yum.repos.d/MariaDB.repo
# MariaDB 10.4 CentOS repository list - created 2020-07-24 05:20 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
# yum install MariaDB-server MariaDB-client
# systemctl enable httpd
# systemctl enable mariadb
# firewall-cmd --add-service=http --permanent
# firewall-cmd --add-service=https --permanent
# firewall-cmd --reload
# firewall-cmd --list-all
# setsebool -P httpd_enable_homedirs true
# systemctl start httpd
# systemctl start mariadb
# mysql_secure_installation

1. Composer 설치

# curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/bin/
# ln -s /usr/bin/composer.phar /usr/bin/composer

2. Git 2.x 설치

# rpm -Uvh http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
# yum --enablerepo=WANdisco-git --disablerepo=base,updates info git
# yum install git

3. timezone 설정

# timedatectl set-timezone Asia/Seoul

4. 라라벨 인스톨러 설치 및 경로 설정

$ composer global require laravel/installer
$ echo 'export PATH="$PATH:$HOME/.config/composer/vendor/bin"' >> ~/.bashrc
$ source .bashrc

5. 라라벨 신규 프로젝트 생성

$ laravel new study
$ cd study/storage
$ find . -type f -exec chmod 0644 {} \;
$ find . -type d -exec chmod 0707 {} \;

6. SELinux 보안 설정

# chcon -R -t httpd_sys_content_t /home/larabel/study
# chcon -R -t httpd_sys_rw_content_t /home/laravel/study/storage

그리고 삽질은 계속 이어진다..

Post navigation

Previous Post:

워드프레스에 Prismjs 적용

Next Post:

블로그 테마 교체

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • SK 세븐모바일 유심 셀프교체
  • php 배열 연산에서 + 와 array_merge 의 차이
  • pcntl_fork 를 이용한 다중 프로세스 실행
  • 아이폰 단축어를 이용하여 주중 공휴일엔 알람 울리지 않게 하기
  • 구글 캘린더 전체일정 재동기화
  • OpenLiteSpeed 웹서버에 HTTP 인증 적용
  • OpenLiteSpeed 웹어드민 도메인 연결
  • WireGuard를 이용한 VPN 환경 구축
  • Ubuntu 22.04 서버에 OpenLiteSpeed 웹서버 세팅
  • 맥 vim 세팅

Recent Comments

  • 편리 on 업무관리용 그누보드 게시판 스킨
  • 임종섭 on 업무관리용 그누보드 게시판 스킨
  • 캐논 5D 펌웨어 | Dslr 펌웨어 업그레이드 방법 82 개의 베스트 답변 on 캐논 EOS 30D 펌웨어 Ver 1.0.6 , EOS 5D 펌웨어 Ver 1.1.1
  • Top 5 캐논 5D 펌웨어 Top 89 Best Answers on 캐논 EOS 30D 펌웨어 Ver 1.0.6 , EOS 5D 펌웨어 Ver 1.1.1
  • 편리 on 워드프레스 애니메이션 gif 파일을 mp4로 변환하여 출력하기
  • 임팀장 on 워드프레스 애니메이션 gif 파일을 mp4로 변환하여 출력하기
  • 편리 on Notepad++ NppFTP 플러그인 수동 설치
  • paul-j on Notepad++ NppFTP 플러그인 수동 설치
  • YS on Windows 10 iCloud 사진 저장 폴더 변경
  • 편리 on Docker를 이용한 Centos7 + httpd + php 5.4 개발환경 구축

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2025 CHICPRO | Built using WordPress and SuperbThemes