需要帮助获取Zend库安装程序



好的,所以我搜索了又搜索,没有找到任何解决问题的方法。我有一个在本地建立的网站,然后我把它移到了服务器上。我一直在尝试设置Zend库,但似乎无法获得。这是我的index.php文件。

<?php
ini_set('display_errors', 1);
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application'));
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') :  'development'));
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../library'),
get_include_path(),
)));

require_once 'Zend/Version.php';
echo 'Zend Framework Version = ' . Zend_Version::VERSION;

require_once 'Zend/Application.php';
$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap()
->run();

我一直收到错误消息"警告:require_one(Zend/Version.php):无法打开流:在第17行的/var/www/vhosts/mywebsite.com/directory/index.php中没有这样的文件或目录致命错误:require_once():未能打开所需的'Zend/Version.php'(include_path='/var/www/vhosts/myweb.com/directory/application/library/')在/var/www/vhosts/mywebsite.com/directory/index.php第17行">

如有任何帮助或指导,我们将不胜感激。谢谢,

更新了代码,我现在收到了这个错误"警告:require_one(Zend/Application.php):无法打开流:在第19行的/var/vhosts/mysite.com/directory/index.php中没有这样的文件或目录致命错误:require_once():未能打开第19行/var/vhosts/mysite.com/directory.index.php中所需的'Zend/Application.php'(include_path='::')">

*注意-我的index.php和htaccess文件位于/var/www/vhosts/mysite.com/directory/,而不是/var/www/v hosts/myite.com/directory/public/目录。

library的路径是/../library/的上一级

https://github.com/ralphschindler/NOLASnowball/blob/master/public/index.php

相关内容

  • 没有找到相关文章

最新更新