반응형
진행했던 프로젝트의 매뉴얼을 만들라고 하셨다..
인수인계용으로ㅎ,ㅎ
매뉴얼 만드는 겸 추후 또 설치할때 애로사항을 겪지 않게 하기위해 포스팅을 한다.
환경은 Window 10, 설치할 버전은 Laravel Framwork 5.8.X
미리 깔려있어야 하는 프로그램은 apache, php, mysql.
위를 한번에 설치 및 관리해주는 프로그램인 Bitnami를 까는것을 추천
Composer 설치
https://getcomposer.org/Composer-Setup.exe
1. Composer-Setup.exe 파일 다운로드 후 Composer 실행
2. Install for all users(recommended) 클릭
3. Developer mode 선택 후 Next 클릭
4. composer를 설치할 디렉토리 설정 후 Next클릭
5. Browse 클릭
6. php.exe 선택(Bitnami의 경우, C:\Bitnami\wampstack-버전\php 에 파일이 있다.) , next 클릭
7. 인터넷 연결시 프록시 서버를 이용 여부 및 프록시 url입력후 Next, 프록시 서버를 이용하지 않는다면 바로 Next 클릭.
8. Install 클릭
9. 계속 진행하기전에 주의사항을 알려준다.
대충
니 컴 환경세팅 정보가 바껴서 커맨드 창을 띄워야 하는데, 작동하지 않으면 열려있는 파일 탐색기를 모두 닫고 다시 해보던가, 컴퓨터를 로그오프한 뒤에 로그온을해서 해봐라.
그래도 안되면 아예 재시작을 해라
라는 얘기
Next클릭한다.
10. Finish 끝
composer 사용하려면 커맨드창에서 composer를 타이핑하라고 친절하게 알려준다.
Finish 클릭
11. composer 설치 확인
cmd창에 아래 커맨드 명령어로 composer 설치 확인
composer
결과 창은 대략 아래와 같이 나온다.
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
/_/
Composer version 2.3.5 2022-04-13 16:43:00
Usage:
command [options] [arguments]
Options:
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
--profile Display timing and memory usage information
--no-plugins Whether to disable plugins.
--no-scripts Skips the execution of all scripts defined in composer.json file.
-d, --working-dir=WORKING-DIR If specified, use the given directory as working directory.
--no-cache Prevent use of the cache
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
about Shows a short information about Composer.
archive Creates an archive of this composer package.
browse [home] Opens the package's repository URL or homepage in your browser.
check-platform-reqs Check that platform requirements are satisfied.
clear-cache [clearcache|cc] Clears composer's internal package cache.
completion Dump the shell completion script
config Sets config options.
create-project Creates new project from a package into given directory.
depends [why] Shows which packages cause the given package to be installed.
diagnose Diagnoses the system to identify common errors.
dump-autoload [dumpautoload] Dumps the autoloader.
exec Executes a vendored binary/script.
fund Discover how to help fund the maintenance of your dependencies.
global Allows running commands in the global composer dir ($COMPOSER_HOME).
help Display help for a command
init Creates a basic composer.json file in current directory.
install [i] Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.
licenses Shows information about licenses of dependencies.
list List commands
outdated Shows a list of installed packages that have updates available, including their latest version.
prohibits [why-not] Shows which packages prevent the given package from being installed.
reinstall Uninstalls and reinstalls the given package names
remove Removes a package from the require or require-dev.
require Adds required packages to your composer.json and installs them.
run-script [run] Runs the scripts defined in composer.json.
search Searches for packages.
self-update [selfupdate] Updates composer.phar to the latest version.
show [info] Shows information about packages.
status Shows a list of locally modified packages.
suggests Shows package suggestions.
update [u|upgrade] Updates your dependencies to the latest version according to composer.json, and updates the composer.lock file.
validate Validates a composer.json and composer.lock.
composer로 Laravel 설치
1. Laravel installer download
composer global require laravel/installer
2. 환경변수 등록
1. 시스템 환경변수 편집>환경변수>시스템 변수>Path선택>편집
2. 새로만들기> " C:\Users\[사용자 명]\AppData\Roaming\Composer\vendor\bin "
3.Laravel 버전 확인
cmd창에 아래 명령어 입력
laravel --version
4. Laravel 5.8.X 버전으로 설치
설치 원하는 폴더에 가서 cmd창에 아래 명령어 입력
만약 5.8버전이 아니라 다른버전으로 설치를 원한다면 아래 명령어의 5.8.* 부분을 변경하면 된다.
composer create-project laravel/laravel 프로젝트명 --prefer-dist "5.8.*"
결과 창 => 설치한 패키지들, 설치 위치 등을 보여준다.
Creating a "laravel/laravel" project at "원하는 위치"
Info from https://repo.packagist.org: #StandWithUkraine
Installing laravel/laravel (v5.8.35)
- Downloading laravel/laravel (v5.8.35)
- Installing laravel/laravel (v5.8.35): Extracting archive
Created project in 프로젝트 절대 경로
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies
Lock file operations: 85 installs, 0 updates, 0 removals
- Locking beyondcode/laravel-dump-server (1.3.0)
- Locking dnoegel/php-xdg-base-dir (v0.1.1)
- Locking doctrine/inflector (1.4.4)
- Locking doctrine/instantiator (1.4.1)
- Locking doctrine/lexer (1.2.3)
- Locking dragonmantank/cron-expression (v2.3.1)
- Locking egulias/email-validator (2.1.25)
- Locking erusev/parsedown (1.7.4)
- Locking fideloper/proxy (4.4.1)
- Locking filp/whoops (2.14.5)
- Locking fzaninotto/faker (v1.9.2)
- Locking hamcrest/hamcrest-php (v2.0.1)
- Locking laravel/framework (v5.8.38)
- Locking laravel/tinker (v1.0.10)
- Locking league/flysystem (1.0.46)
- Locking mockery/mockery (1.3.5)
- Locking monolog/monolog (1.27.0)
- Locking myclabs/deep-copy (1.11.0)
- Locking nesbot/carbon (2.57.0)
- Locking nikic/php-parser (v4.13.2)
- Locking nunomaduro/collision (v3.2.0)
- Locking opis/closure (3.6.3)
- Locking paragonie/random_compat (v9.99.100)
- Locking phar-io/manifest (1.0.3)
- Locking phar-io/version (2.0.1)
- Locking php-parallel-lint/php-console-color (v0.3)
- Locking php-parallel-lint/php-console-highlighter (v0.5)
- Locking phpdocumentor/reflection-common (2.2.0)
- Locking phpdocumentor/reflection-docblock (5.3.0)
- Locking phpdocumentor/type-resolver (1.6.1)
- Locking phpoption/phpoption (1.8.1)
- Locking phpspec/prophecy (v1.15.0)
- Locking phpunit/php-code-coverage (6.1.4)
- Locking phpunit/php-file-iterator (2.0.5)
- Locking phpunit/php-text-template (1.2.1)
- Locking phpunit/php-timer (2.1.3)
- Locking phpunit/php-token-stream (3.1.3)
- Locking phpunit/phpunit (7.5.20)
- Locking psr/container (1.1.2)
- Locking psr/log (1.1.4)
- Locking psr/simple-cache (1.0.1)
- Locking psy/psysh (v0.9.12)
- Locking ramsey/uuid (3.9.6)
- Locking sebastian/code-unit-reverse-lookup (1.0.2)
- Locking sebastian/comparator (3.0.3)
- Locking sebastian/diff (3.0.3)
- Locking sebastian/environment (4.2.4)
- Locking sebastian/exporter (3.1.4)
- Locking sebastian/global-state (2.0.0)
- Locking sebastian/object-enumerator (3.0.4)
- Locking sebastian/object-reflector (1.1.2)
- Locking sebastian/recursion-context (3.0.1)
- Locking sebastian/resource-operations (2.0.2)
- Locking sebastian/version (2.0.1)
- Locking swiftmailer/swiftmailer (v6.3.0)
- Locking symfony/console (v4.4.40)
- Locking symfony/css-selector (v5.4.3)
- Locking symfony/debug (v4.4.37)
- Locking symfony/deprecation-contracts (v2.5.1)
- Locking symfony/error-handler (v4.4.40)
- Locking symfony/event-dispatcher (v4.4.37)
- Locking symfony/event-dispatcher-contracts (v1.1.12)
- Locking symfony/finder (v4.4.37)
- Locking symfony/http-client-contracts (v2.5.1)
- Locking symfony/http-foundation (v4.4.39)
- Locking symfony/http-kernel (v4.4.40)
- Locking symfony/mime (v5.4.7)
- Locking symfony/polyfill-ctype (v1.25.0)
- Locking symfony/polyfill-iconv (v1.25.0)
- Locking symfony/polyfill-intl-idn (v1.25.0)
- Locking symfony/polyfill-intl-normalizer (v1.25.0)
- Locking symfony/polyfill-mbstring (v1.25.0)
- Locking symfony/polyfill-php72 (v1.25.0)
- Locking symfony/polyfill-php73 (v1.25.0)
- Locking symfony/polyfill-php80 (v1.25.0)
- Locking symfony/process (v4.4.40)
- Locking symfony/routing (v4.4.37)
- Locking symfony/service-contracts (v2.5.1)
- Locking symfony/translation (v4.4.37)
- Locking symfony/translation-contracts (v2.5.1)
- Locking symfony/var-dumper (v4.4.39)
- Locking theseer/tokenizer (1.2.1)
- Locking tijsverkoyen/css-to-inline-styles (2.2.4)
- Locking vlucas/phpdotenv (v3.6.10)
- Locking webmozart/assert (1.10.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 85 installs, 0 updates, 0 removals
- Downloading symfony/polyfill-php72 (v1.25.0)
- Downloading symfony/var-dumper (v4.4.39)
- Downloading phpoption/phpoption (1.8.1)
- Downloading vlucas/phpdotenv (v3.6.10)
- Downloading symfony/css-selector (v5.4.3)
- Downloading tijsverkoyen/css-to-inline-styles (2.2.4)
- Downloading symfony/routing (v4.4.37)
- Downloading symfony/process (v4.4.40)
- Downloading symfony/polyfill-intl-idn (v1.25.0)
- Downloading symfony/mime (v5.4.7)
- Downloading symfony/http-foundation (v4.4.39)
- Downloading symfony/http-client-contracts (v2.5.1)
- Downloading symfony/event-dispatcher-contracts (v1.1.12)
- Downloading symfony/event-dispatcher (v4.4.37)
- Downloading psr/log (1.1.4)
- Downloading symfony/debug (v4.4.37)
- Downloading symfony/error-handler (v4.4.40)
- Downloading symfony/http-kernel (v4.4.40)
- Downloading symfony/finder (v4.4.37)
- Downloading symfony/console (v4.4.40)
- Downloading symfony/polyfill-iconv (v1.25.0)
- Downloading doctrine/lexer (1.2.3)
- Downloading egulias/email-validator (2.1.25)
- Downloading swiftmailer/swiftmailer (v6.3.0)
- Downloading paragonie/random_compat (v9.99.100)
- Downloading ramsey/uuid (3.9.6)
- Downloading psr/simple-cache (1.0.1)
- Downloading opis/closure (3.6.3)
- Downloading symfony/translation-contracts (v2.5.1)
- Downloading symfony/translation (v4.4.37)
- Downloading nesbot/carbon (2.57.0)
- Downloading monolog/monolog (1.27.0)
- Downloading league/flysystem (1.0.46)
- Downloading erusev/parsedown (1.7.4)
- Downloading dragonmantank/cron-expression (v2.3.1)
- Downloading doctrine/inflector (1.4.4)
- Downloading laravel/framework (v5.8.38)
- Downloading beyondcode/laravel-dump-server (1.3.0)
- Downloading fideloper/proxy (4.4.1)
- Downloading fzaninotto/faker (v1.9.2)
- Downloading nikic/php-parser (v4.13.2)
- Downloading php-parallel-lint/php-console-color (v0.3)
- Downloading php-parallel-lint/php-console-highlighter (v0.5)
- Downloading dnoegel/php-xdg-base-dir (v0.1.1)
- Downloading psy/psysh (v0.9.12)
- Downloading laravel/tinker (v1.0.10)
- Downloading hamcrest/hamcrest-php (v2.0.1)
- Downloading mockery/mockery (1.3.5)
- Downloading filp/whoops (2.14.5)
- Downloading nunomaduro/collision (v3.2.0)
- Downloading webmozart/assert (1.10.0)
- Downloading phpdocumentor/reflection-common (2.2.0)
- Downloading phpdocumentor/type-resolver (1.6.1)
- Downloading phpdocumentor/reflection-docblock (5.3.0)
- Downloading phpunit/php-token-stream (3.1.3)
- Downloading sebastian/version (2.0.1)
- Downloading sebastian/resource-operations (2.0.2)
- Downloading sebastian/recursion-context (3.0.1)
- Downloading sebastian/object-reflector (1.1.2)
- Downloading sebastian/object-enumerator (3.0.4)
- Downloading sebastian/global-state (2.0.0)
- Downloading sebastian/exporter (3.1.4)
- Downloading sebastian/environment (4.2.4)
- Downloading sebastian/diff (3.0.3)
- Downloading sebastian/comparator (3.0.3)
- Downloading phpunit/php-timer (2.1.3)
- Downloading phpunit/php-text-template (1.2.1)
- Downloading phpunit/php-file-iterator (2.0.5)
- Downloading theseer/tokenizer (1.2.1)
- Downloading sebastian/code-unit-reverse-lookup (1.0.2)
- Downloading phpunit/php-code-coverage (6.1.4)
- Downloading doctrine/instantiator (1.4.1)
- Downloading phpspec/prophecy (v1.15.0)
- Downloading phar-io/version (2.0.1)
- Downloading phar-io/manifest (1.0.3)
- Downloading myclabs/deep-copy (1.11.0)
- Downloading phpunit/phpunit (7.5.20)
- Installing symfony/polyfill-php80 (v1.25.0): Extracting archive
- Installing symfony/polyfill-php72 (v1.25.0): Extracting archive
- Installing symfony/polyfill-mbstring (v1.25.0): Extracting archive
- Installing symfony/var-dumper (v4.4.39): Extracting archive
- Installing symfony/polyfill-ctype (v1.25.0): Extracting archive
- Installing phpoption/phpoption (1.8.1): Extracting archive
- Installing vlucas/phpdotenv (v3.6.10): Extracting archive
- Installing symfony/css-selector (v5.4.3): Extracting archive
- Installing tijsverkoyen/css-to-inline-styles (2.2.4): Extracting archive
- Installing symfony/routing (v4.4.37): Extracting archive
- Installing symfony/process (v4.4.40): Extracting archive
- Installing symfony/polyfill-php73 (v1.25.0): Extracting archive
- Installing symfony/polyfill-intl-normalizer (v1.25.0): Extracting archive
- Installing symfony/polyfill-intl-idn (v1.25.0): Extracting archive
- Installing symfony/deprecation-contracts (v2.5.1): Extracting archive
- Installing symfony/mime (v5.4.7): Extracting archive
- Installing symfony/http-foundation (v4.4.39): Extracting archive
- Installing symfony/http-client-contracts (v2.5.1): Extracting archive
- Installing symfony/event-dispatcher-contracts (v1.1.12): Extracting archive
- Installing symfony/event-dispatcher (v4.4.37): Extracting archive
- Installing psr/log (1.1.4): Extracting archive
- Installing symfony/debug (v4.4.37): Extracting archive
- Installing symfony/error-handler (v4.4.40): Extracting archive
- Installing symfony/http-kernel (v4.4.40): Extracting archive
- Installing symfony/finder (v4.4.37): Extracting archive
- Installing psr/container (1.1.2): Extracting archive
- Installing symfony/service-contracts (v2.5.1): Extracting archive
- Installing symfony/console (v4.4.40): Extracting archive
- Installing symfony/polyfill-iconv (v1.25.0): Extracting archive
- Installing doctrine/lexer (1.2.3): Extracting archive
- Installing egulias/email-validator (2.1.25): Extracting archive
- Installing swiftmailer/swiftmailer (v6.3.0): Extracting archive
- Installing paragonie/random_compat (v9.99.100): Extracting archive
- Installing ramsey/uuid (3.9.6): Extracting archive
- Installing psr/simple-cache (1.0.1): Extracting archive
- Installing opis/closure (3.6.3): Extracting archive
- Installing symfony/translation-contracts (v2.5.1): Extracting archive
- Installing symfony/translation (v4.4.37): Extracting archive
- Installing nesbot/carbon (2.57.0): Extracting archive
- Installing monolog/monolog (1.27.0): Extracting archive
- Installing league/flysystem (1.0.46): Extracting archive
- Installing erusev/parsedown (1.7.4): Extracting archive
- Installing dragonmantank/cron-expression (v2.3.1): Extracting archive
- Installing doctrine/inflector (1.4.4): Extracting archive
- Installing laravel/framework (v5.8.38): Extracting archive
- Installing beyondcode/laravel-dump-server (1.3.0): Extracting archive
- Installing fideloper/proxy (4.4.1): Extracting archive
- Installing fzaninotto/faker (v1.9.2): Extracting archive
- Installing nikic/php-parser (v4.13.2): Extracting archive
- Installing php-parallel-lint/php-console-color (v0.3): Extracting archive
- Installing php-parallel-lint/php-console-highlighter (v0.5): Extracting archive
- Installing dnoegel/php-xdg-base-dir (v0.1.1): Extracting archive
- Installing psy/psysh (v0.9.12): Extracting archive
- Installing laravel/tinker (v1.0.10): Extracting archive
- Installing hamcrest/hamcrest-php (v2.0.1): Extracting archive
- Installing mockery/mockery (1.3.5): Extracting archive
- Installing filp/whoops (2.14.5): Extracting archive
- Installing nunomaduro/collision (v3.2.0): Extracting archive
- Installing webmozart/assert (1.10.0): Extracting archive
- Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
- Installing phpdocumentor/type-resolver (1.6.1): Extracting archive
- Installing phpdocumentor/reflection-docblock (5.3.0): Extracting archive
- Installing phpunit/php-token-stream (3.1.3): Extracting archive
- Installing sebastian/version (2.0.1): Extracting archive
- Installing sebastian/resource-operations (2.0.2): Extracting archive
- Installing sebastian/recursion-context (3.0.1): Extracting archive
- Installing sebastian/object-reflector (1.1.2): Extracting archive
- Installing sebastian/object-enumerator (3.0.4): Extracting archive
- Installing sebastian/global-state (2.0.0): Extracting archive
- Installing sebastian/exporter (3.1.4): Extracting archive
- Installing sebastian/environment (4.2.4): Extracting archive
- Installing sebastian/diff (3.0.3): Extracting archive
- Installing sebastian/comparator (3.0.3): Extracting archive
- Installing phpunit/php-timer (2.1.3): Extracting archive
- Installing phpunit/php-text-template (1.2.1): Extracting archive
- Installing phpunit/php-file-iterator (2.0.5): Extracting archive
- Installing theseer/tokenizer (1.2.1): Extracting archive
- Installing sebastian/code-unit-reverse-lookup (1.0.2): Extracting archive
- Installing phpunit/php-code-coverage (6.1.4): Extracting archive
- Installing doctrine/instantiator (1.4.1): Extracting archive
- Installing phpspec/prophecy (v1.15.0): Extracting archive
- Installing phar-io/version (2.0.1): Extracting archive
- Installing phar-io/manifest (1.0.3): Extracting archive
- Installing myclabs/deep-copy (1.11.0): Extracting archive
- Installing phpunit/phpunit (7.5.20): Extracting archive
78 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: beyondcode/laravel-dump-server
Discovered Package: fideloper/proxy
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Package manifest generated successfully.
53 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan key:generate --ansi
Application key set successfully.
5. Laravel 버전 확인
1. Laravel 설치 폴더로 이동
cd larvel설치 경로
2. 라라벨 버전 확인
아래 명령어 입력
php artisan --version
이렇게 라라벨 5.8.X 버전으로 설치하는 방법을 알아보았다.
도움이 됐으면 공감 부탁드립니다.
반응형
'개발일지 > 기타' 카테고리의 다른 글
[web hacking] 프록시 도구(Burp Suite)를 이용한 웹 해킹 및 대응 (0) | 2022.04.28 |
---|---|
[Laravel] 라라벨 디버그 바, 디버그 페이지 정리 (0) | 2022.04.20 |
[Linux] JAVA 환경변수 설정(Web Applicaion) (0) | 2022.04.15 |
[Linux] 방화벽 설정 (0) | 2022.04.15 |
[VSCODE] visual studio code와 git 연동하기 (0) | 2021.05.13 |
댓글