托管我的网站后,我遇到了一些配置问题。
警告:require_once (Zend/application.php) [function.require-once]:打开流失败:/ 中没有这样的文件或目录/万维网/*** .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();
什么都不做