Ok so I've searched and searched and nothing that I have found solves the issue. I have a site that was set up locally and then I moved it to a server. I have been trying to set up the Zend library but I just can't seem to get it. Here is my index.php file.
<?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();
I keep getting the error message "Warning: require_once(Zend/Version.php): failed to open stream: No such file or directory in /var/www/vhosts/mywebsite.com/directory/index.php on line 17 Fatal error: require_once(): Failed opening required 'Zend/Version.php' (include_path='/var/www/vhosts/mywebsite.com/directory/application/library/') in /var/www/vhosts/mywebsite.com/directory/index.php on line 17"
Any help or guidance would be much appreciated. Thanks,
Updated code and I am now getting this error "Warning: require_once(Zend/Application.php): failed to open stream: No such file or directory in /var/www/vhosts/mysite.com/directory/index.php on line 19 Fatal error: require_once(): Failed opening required 'Zend/Application.php' (include_path=':.:') in /var/www/vhosts/mysite.com/directory/index.php on line 19 "
*Note - My index.php and htaccess file are located in /var/www/vhosts/mysite.com/directory/ rather than the /var/www/vhosts/mysite.com/directory/public/ directory.