내가 작성한 Laravel 응용 프로그램을 배포하는 중입니다.최대 실행 시간을 설정하면 Laravel이 죽습니다.
응용 프로그램은 Office365를 사용하여 SMTP를 통해 전자 메일을 보냅니다. 불행히도 Office365는 매우 느립니다.
내 로컬 컴퓨터에서 최대 실행 시간을 최대 60 초까지 늘렸으므로 문제가 해결되었습니다.
내가 지금 겪고있는 문제는 회사에서 공유 호스팅을 사용하기 때문에 전체적으로 php.ini
파일을 편집 할 수 없다는 것입니다.
호스트에서 php.ini
파일을 설정하여 이러한 변수 중 일부를 편집 할 수 있습니다.
max_execution_time=60
그러나 아래의 오류에 내 응용 프로그램 결과에 액세스를 시도,이 일 후 :
등으로, 나는 아래의 내용으로 내 응용 프로그램의 공개 디렉토리에 php.ini
파일을 배치했다
Fatal error: Uncaught TypeError: Argument 6 passed to Symfony\Component\HttpFoundation\Request::createRequestFromFactory() must be of the type array, null given, called in /home/grainfat/capture_html/Capture/vendor/symfony/http-foundation/Request.php on line 315 and defined in /home/grainfat/capture_html/Capture/vendor/symfony/http-foundation/Request.php:2014 Stack trace: #0 /home/grainfat/capture_html/Capture/vendor/symfony/http-foundation/Request.php(315): Symfony\Component\HttpFoundation\Request::createRequestFromFactory(Array, Array, Array, Array, Array, NULL) #1 /home/grainfat/capture_html/Capture/vendor/laravel/framework/src/Illuminate/Http/Request.php(62): Symfony\Component\HttpFoundation\Request::createFromGlobals() #2 /home/grainfat/capture_html/Capture/public/index.php(55): Illuminate\Http\Request::capture() #3 {main} thrown in /home/grainfat/capture_html/Capture/vendor/symfony/http-foundation/Request.php on line 2014
php.ini
파일을 삭제하면 사라집니다.
위의 오류가 발생하는 이유는 무엇입니까? 아니면 대안 대안에 대한 제안?