안녕하세요 저는 centos 운영체제에 magento 1.9.x 및 magento2를 설치하려고합니다. 다음 링크는 centos에서 apache2.4, php7 및 mysql5.7을 구성하는 데 도움이됩니다. . 구성 웹 서버, PHP, MySQL은, 마 젠토 파일과 결국Magento가 centos 7에 설치되기 전에 500 내부 서버 오류가 발생했습니다
. magento2 용 데이터베이스를 만듭니다. 위의 링크를 바탕으로 모든 단계를 하나씩 수행했습니다. 브라우저 localhost/magento2/
에서 실행하면 방화 광구 및 빈 브라우저에 500 내부 서버 오류가 발생합니다.
나는에 CentOS의 초보자 및 젠토 오전
제발 내가 지난 이일 지출했다이 문제를 해결하는 방법 중 하나 도움이됩니다.
아파치 오류 로그 :
[Sat Sep 10 14:22:33.728848 2016] [:error] [pid 2809] [client ::1:45432] PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/var/www/html/magento2/var/page_cache" is not writable in /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache.php:209\nStack trace:\n#0 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/var...')\n#1 /var/www/html/magento2/vendor/colinmollenhour/cache-backend-file/File.php(87):
Zend_Cache_Backend_File->setCacheDir('/var/www/html/m...')\n#2 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array)\n#3 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true)\n#4
/var/www/html/magento2/lib/internal/Magento/Framework/App/Cache/Frontend/Factory.php(158): Zend_Cache::factory('Magento\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true)\n#5 /var/www/html/magento2/lib/internal/Magento/Framework/App/Cache/Frontend in /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache.php on line 209
오류는 Apache와 관련되어 있으며 Apache 로그를 보지 않고는 알 수 없습니다. 'http : // localhost/magento2/'페이지를 새로 고치고/var/log 폴더를 확인하고 Apache 로그를 검색하십시오. 또한이 질문은 StackOverflow 대신 ServerFault에서 더 의미가 있습니다. – Marcs
@Marcs var/log 디렉토리를 체크인했습니다. httpd 폴더를 발견했습니다. access_log 파일에 다음 오류가 있습니다. :: 1 - - [10/9/2016 : 11 : 12 : 05 +0530] "GET/magento2/HTTP/1.1 "500 -"- ""Mozilla/5.0 (X11, Linux x86_64, rv : 45.0) Gecko/20100101 Firefox/45.0 ".... –
error_log를 확인하고 오류 로깅에 대한 문서를 확인해야합니다 아파치 문서 : https://httpd.apache.org/docs/2.4/logs.html – Marcs