728x90
반응형
전체 글(342)
-
PHP 7.4 mongodb.dll 프로시저 시작 지점 에러
PHP 7.4 mongodb.dll 프로시저 시작 지점 에러 다운받은 몽고DB dll이 PHP 버전과 맞지 않는 것이므로 https://pecl.php.net/package/mongodb/ 에서 자신의 버전에 맞는 dll 찾아 다운받을 것 https://pecl.php.net/package/mongodb/1.13.0/windows PHP 7.4.29의 경우 1.13.0 dll로 하니 됐음 Cf. https://life-with-coding.tistory.com/70
2023.07.20 -
[EC2 Laravel8] storage/logs/laravel.log" could not be opened in append mod
UnexpectedValueException The stream or file "/home/asdf/www/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied The exception occurred while attempting to log 로그와 session, view cache 등이 저장되는 storage 디렉터리와 bootstrap 디렉터리는 laravel 을 구동하는 웹 서버가 읽고 쓸 수 있도록 설정해야 합니다. // 현재 상태 drwxrwxr-x 5 asdf asdf 46 Apr 12 2022 storage //apache 그룹에게 storage 와 boots..
2023.07.20 -
[EC2 Laravel8] Composer 설치
출처: sudo curl -sS https://getcomposer.org/installer | sudo php # curl -sS 옵션 = curl --silent --show-error # Run curl in silent mode, and show no output unless there is an error. All settings correct for using Composer Downloading... Composer (version 2.5.4) successfully installed to: /home/ec2-user/composer.phar Use it: php composer.phar sudo mv composer.phar /usr/local/bin/composer sudo ln -s /..
2023.07.20 -
[EC2] 사용자별 홈 디렉토리 설정, 가상호스트 설정
'* 가상호스트(Virtual host) ? 하나의 웹 서버로 여러 웹 사이트를 운영할 수 있는 기술. 클라이언트가 요청을 보내는 여러 IP, 도메인, 포트번호에 대해 각각 다른 웹 사이트를 띄우기 위한 기술. 추후 확장성을 고려해 가상 호스트를 사용하면서 단일 웹 사이트를 제공하려면 메인 서버 설정에서 DocumentRoot 및 지시자를 모두 주석 처리한 후, 각 웹 사이트에 대한 설정은 httpd-vhosts.conf 파일에서만 하는 것이 더 깔끔하다. 출처: cd /etc/httpd/conf vi httpd.conf # 내용수정 시작 Options Indexes FollowSymLinks AllowOverride None Require all granted Include /etc/httpd/conf..
2023.07.20 -
[EC2] 사용자 추가 및 키 생성
// 새로운 사용자 추가 sudo useradd -m "아이디" // sudo useradd -m gnu // 해당 사용자로 로그인 sudo su "아이디" // 해당 사용자 home 으로 이동 cd /home/"아이디" // 키파일 생성 ssh-keygen // .ssh는 ssh-keygen 하면 자동으로 생성되는 디렉토리이므로 따로 손댈 필요 X. 괜히 생성했다가 권한 문제로 ppk 접속 못함 // 생성한 키 파일 열어서 내용 복사 cd ./ssh vi id_rsa.pub // 공개키 vi authorized_keys // 공개키값 붙여넣고 저장 // 똑같은 내용 .pem 으로 만들어서 윈도우 로컬에서 사용 chmod 600 authorized_keys
2023.07.20 -
Laravel8 migrate command
https://medium.com/@rakshithvasudev/laravel-migrations-what-are-they-why-use-them-how-to-use-203769a917c3 https://stackoverflow.com/questions/49056542/how-does-laravels-migration-up-and-down-method-work php artisan migrate will run your up() method. php artisan migrate:rollback will run your down() method. example-app>php artisan make:migration create_user_table Created Migration: 2022_11_14_071..
2023.07.20