Not really an answer just a follow question, and the comments section is too small.
My root .htaccess file is the same as above.
RewriteEngine On
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{REQUEST_URI} =""
RewriteRule ^.*$ /public/index.php [NC,L]
RewriteCond %{REQUEST_URI} !^/public/.*$
RewriteRule ^(.*)$ /public/$1
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [NC,L]
RewriteRule ^public/.*$ /public/index.php [NC,L]
My ./public/index.php contains
<?php
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors', 'on');
// define the base path
define('BASE_PATH', realpath(dirname(__FILE__) . '/../'));
// Define path to application directory
define('APPLICATION_PATH', BASE_PATH . '/application');
// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
set_include_path(
implode(PATH_SEPARATOR,
array(
realpath(BASE_PATH . '/library'),
realpath(BASE_PATH . '/application'),
get_include_path()
)
)
);
// echo get_include_path();
/** Zend_Application */
require_once 'Zend/Loader/AutoLoader.php';
Zend_Loader_Autoloader::getInstance();
// Create application, bootstrap, and run
$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap()->run();
?>
My /public/.htaccess file has
SetEnv APPLICATION_ENV development
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
I've been developing on XP, but when i deploy to a linux server i get this exception.
Warning: require_once(Zend/Loader/AutoLoader.php) [function.require-once]: failed to open stream: No such file or directory in home/bhaa1/public_html/members/public/index.php on line 28
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader/AutoLoader.php' (include_path='/home/bhaa1/public_html/members/library:/home/bhaa1/public_html/members/application:.:/usr/local/php52/pear') in /home/bhaa1/public_html/members/public/index.php on line 28
I can see that the lib and app dir's are on the path, and I've checked the permissions on various files and folders in my lib's dir and the default 755. Not sure what i'm missing.