【发布时间】:2012-09-08 07:43:26
【问题描述】:
托管我的网站后,我遇到了一些配置问题。
警告:require_once (Zend/application.php) [function.require-once]:打开流失败://www/ 中没有这样的文件或目录***.com/public/index.php 第 22 行
我把 Zend Framewotk 库放在了www/library
www/application/
www/library/ <--- Zend Framework
www/public/
但是在添加库之后又出现了一个问题:
HTTP 错误 500(内部服务器错误):服务器尝试完成请求时出现意外情况。
public/index.php的脚本
<?php
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
defined('TMP_PATH')
|| define('TMP_PATH', realpath(APPLICATION_PATH . '/../tmp/'));
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../library'),
APPLICATION_PATH . '/models',
APPLICATION_PATH . '/models/generated',
get_include_path(),
)));
/** Zend_Application */
require_once 'Zend/Application.php';
// Create application, bootstrap, and run
$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap()
->run();
$application->bootstrap()->run(); 什么都不做 复出
【问题讨论】:
-
您的服务器日志对错误有什么看法?
标签: php zend-framework web-hosting