728x90

SERVER 16

터미널 오류! httpd: Could not reliably determine the server's fully qualified domain name, using {userName} Set the 'ServerName' directive globally to suppress this message

brew에서 지원하는 php-switcher를 사용해서 편하게 Php 버전관리를 하려는 큰 꿈을 가지고있는데, 계속 오류가 발생했다... httpd: Could not reliably determine the server's fully qualified domain name, using {userName}.local. Set the 'ServerName' directive globally to suppress this message 에러는 대충 이러한데 열심히 구글링을 해보니 apache설정에 servername이 잘못된거라는데 나는 apache도 없는데...? 하고 헐... 이러고있는 와중 누군가가 이것도했는데 오류가 나더라... 라는 글에서 단서를 얻어서 발견한건!! 바로 httpd/httpd.con..

SERVER 2022.09.02

The resource owner or authorization server denied the request

오류내용 production.ERROR: The resource owner or authorization server denied the request. {"exception":"[object] (League\\OAuth2\\Server\\Exception\\OAuthServerException(code: 9): The resource owner or authorization server denied the request. at vendor/league/oauth2-server/src/Exception/OAuthServerException.php:243) 해결 app/Exceptions/Handler.php 에 두가지 추가! protected $dontReport = [ // \League\OAuth2\..

The \"\" file does not exist or is not readable 오류 해결

개발환경 ubuntu 20.04 nginx php 7.4 해당 오류는 파일의 크키가 서버설정보다 클 경우에 발생하는 오류로, 서버 파일 업로드 제한을 늘려주어야한다! 참고로 nginx 기본 파일 크기 제한은 1MB 나는 nginx 와 php 를 사용하고있었기 때문에 nginx 와 php 모두 설정을 변경해주어야했다 nginx /etc/nginx/sites-available/default server{ client_max_body_size 50M; nginx 서버 설정해주는 파일에서 서버 아래에 body 사이즈 제한을 1MB가 아닌 다른 원하는 크기로 변경해준다 php /etc/php/7.4/php-fpm/php.ini upload_max_filesize = 50M post_max_size = 50M 사용..

PHP CURL GET방식 POST방식 정리

curl이란? cURL은 다양한 통신 프로토콜을 이용하여 데이터를 전송하기 위한 라이브러리와 명령 줄 도구를 제공하는 컴퓨터 소프트웨어 프로젝트이다. 정의는 위와 같고 php 내부에서 외부에 통신할 일 있을경우 사용하면 통신을 할 수있는데 GET방식과 POST방식으로 나뉘어져있다! GET방식 $headers = array(); $headers[] = 'Authorization:'.$accessToken; $opts = array( CURLOPT_URL => "", CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => $headers, ); curl_setopt_array($ch, $opts); $response = curl_exec($ch); curl_close..

[vue + spring] 스프링 몰라도 vue랑 스프링 연동하기

환경 vuejs Egovment Spring Framework vue 랑 스프링을 연동할 일이 생겼다😢 학생때 스프링 했다가 포기했었는데 일을 하다보니 스프링을 다시 만질일도 있고.. 역시 사람일은 모르는건가보다 하지만 연동만 하면되는거라 생각보다 간단했는데 몇가지 코드만 입력해주면 되는일이었다! 내 프로젝트 디렉토리는 이렇다 스프링 구조는 프로젝트에 따라 다르고 정답은 아니지만 이런 구조를 받았다! 먼저 vue에서 설정을 해주어야되는데 vue vue.config.js 'use strict' var path = require('path') module.exports = { transpileDependencies: [ 'vuetify', ansiRegex ], lintOnSave: false, public..

SERVER/SPRING 2021.02.03

laravel aws redis connect

laravel에서 ElastiCache로 만들어진 redis 연동하는 방법은 아래와 같다. env에는 구성 엔드포인트를 넣으면된다 여기서 중요한건 만들때 클러스터 활성화 모드로 만들어야된다는것! database.php 'redis'=>[ 'cluster' => env('REDIS_CLUSTER', true), 'default' => [ 'host' => env('REDIS_HOST', 'localhost'), 'password' => env('REDIS_PASSWORD', null), 'port' => env('REDIS_PORT', 6379), 'database' => 0, ], 'clusters' => [ 'default' => [ [ 'host' => env('REDIS_HOST', 'localho..

Laravel + vuejs Access to XMLHttpRequest at been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. 오류 해결

환경 php 7.4 laravel vuejs CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. 가 뜨고 3시간인가 4시간 지난 후 오류를 수정했다ㅠㅠ 1. Cors 미들웨어 생성 있으신 분은 그냥 있는거 사용하시면된다! php artisan make:middleware Cors 2. Cors 미들웨어에서 헤더 생성 CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. 이제 그만보고싶다ㅠㅠㅠㅠㅠ app/Http/Middleware/Cors.php

Laravel+vue+vuetify 설정하기

환경 laravel vue vuetify laravel 를 백엔드로 사용하고 vue 를 프론트로 사용하여 개발하던 도중 v-app-bar를 써야되는데 계속 찾을 수없다는 오류가 떠서 이것저것 찾아보면서 시간낭비를 하다가 드디어 추가하는 방법을 알았다ㅠㅠㅠ 1. Npm install vuetify 2. vuetify.js 만들기 app.js가 있는 디렉토리에 plugins 디렉토리를 만들고 vuetify.js 파일을 만들어준뒤, 다음과 같이 작성한다. /resources/js/plugins/vuetify.js import Vue from 'vue' // import '@mdi/font/css/materialdesignicons.min.css' import Vuetify, { VApp, VCard, VCar..

728x90