[Laravel] LAMP에 라라벨 설치하기
먼저 LAMP부터 구축한뒤에, composer 설치, laravel설치.순서로 하시면 되시겠다.
아 깃이 필요할지도 모른다...(...라라벨 공식문서에는 git을통해 설치하는 방법이 있으니, 그 방법을 쓰실거면 ㄱㄱ)
LAMP구축은 그냥 설렁설렁 대충대충하시고,
composer은 설치할려면
# curl -sS https://getcomposer.org/installer | php
|
입력하면 설치됨.
이걸 이제 전역적으로 사용해야하는데,
# mv composer.phar /usr/bin/composer
|
하면 끝.
설치확인은?
이제 라라벨을 설치해보자.
라라벨은
# composer create-project laravel/laravel --prefer-dist
|
로 설치하면 됨. 뒤에 프로젝트 이름 붙이면 해당 프로젝트 이름으로 프레임웤 생성됨.
# cd 프로젝트명
#chmod 777 -R bootstrap/cache #chmod 777 -R storage
|
만약 안바꾸면 퍼미션 데니 에러창을 보게 될것임 ㅋ
#vi /etc/httpd/conf/httpd.conf
ServerName IP<수정> |
이렇게 바꿔야함. AllowOverride All로 안바꾸면 라우터 안된다함.
# systemctl restart httpd
|
서비스 재시작
그리고 입력한 아이피로 접속하면 라라벨이 쨘!
출처 : https://getcomposer.org/download/
Composer
Download Composer Latest: v1.8.5 To quickly install Composer in the current directory, run the following script in your terminal. To automate the installation, use the guide on installing Composer programmatically. php -r "copy('https://getcomposer.org/ins
getcomposer.org
https://getcomposer.org/doc/00-intro.md#globally
Introduction - Composer
Introduction# Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. Dependency management# Composer is not a package manager in the same sense a
getcomposer.org
https://www.laravel.co.kr/docs/4.x/installation
Laravel Korea
Laravel 프레임워크 Laravel 프레임워크를 사용하는 한국 사용자 모임입니다.
www.laravel.co.kr
+
이런게 있다고 한다......패키지로 다 설치해주는...... 이렁거........
https://github.com/php79/stack
php79/stack
PHP 5.3 ~ 7.2 + Nginx + MariaDB + 앱 자동 설치. Contribute to php79/stack development by creating an account on GitHub.
github.com
저장소는 레미가 좋답니다.