[CentOS7] laravel 설치

 

  • 의존성 패키지 설치
[root@centos76 ~]# yum install git curl zip unzip

 

  • composer Down
[root@centos76 ~]# curl -sS https://getcomposer.org/installer | php
All settings correct for using Composer
Downloading...

Composer (version 1.9.0) successfully installed to: /root/composer.phar
Use it: php composer.phar
[root@centos76 ~]#

 

  • /usr/bin/composer 로 위치 변경 및 laravel 설치
[root@centos76 ~]# mv composer.phar /usr/bin/composer
[root@centos76 ~]# composer create-project laravel/laravel /var/www/html/laravel

 

  • httpd.conf 수정 및 laravel 권한 수정
[root@centos76 ~]# vi /etc/httpd/conf/httpd.conf
DocumentRoot "/var/www/html/laravel/public"

[root@centos76 ~]# systemctl restart httpd
[root@centos76 ~]# chown -R apache:apache /var/www/html/laravel
[root@centos76 ~]# chmod -R 755 /var/www/html/laravel/storage

 

  • web site 확인

댓글 남기기