打开php项目网站,页面显示为空白
Jun 02, 2016 am 11:34 AMphp
环境:apache,php用的是苹果自带的
项目是放在默认DocumentRoot: "/Library/WebServer/Documents"下面
新建的VirtualHost 的DocumentRoot: "/Library/WebServer/Documents/myProject/public"
在public目录下有index.phtml文件
cat public/index.php
/**
- This makes our life easier when dealing with paths. Everything is relative
- to the application root now. */
chdir(dirname(__DIR__));
// Decline static file requests back to the PHP built-in webserver
if (php_sapi_name() === 'cli-server' && is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))) {
return false;
}
// Setup autoloading
require 'init_autoloader.php';
// Run the application!
Zend\Mvc\Application::init(require 'config/application.config.php')->run();
打开网页后,显示空白,错误信息是
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error)
然后我在index.php里面添加了一句phpinfo(),然后页面显示了phpinfo的页面
以上我的情况和问题就是这样,请教各位大神帮我看看问题是出在哪里了!多谢!!
补充:查看了/var/log/apache2/erro_log
显示错误为AsseticWriter : Unable to create a directory

인기 기사

인기 기사

뜨거운 기사 태그

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

드림위버 CS6
시각적 웹 개발 도구

SublimeText3 Mac 버전
신 수준의 코드 편집 소프트웨어(SublimeText3)

뜨거운 주제











Ubuntu 및 Debian용 PHP 8.4 설치 및 업그레이드 가이드

PHP 개발을 위해 Visual Studio Code(VS Code)를 설정하는 방법
