Your .htaccess file doesn't look right to me.
Have you tried this?
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
-----Original Message-----
From: dele454 [mailto:[EMAIL PROTECTED]
Sent: 09 December 2008 12:33
To: [email protected]
Subject: Re: [fw-general] ZF live settings
Any help out there still? I havent being able to resolve it yet!!
dele454 wrote:
>
> Hi,
>
> I am trying to move my files over to the remote server but my pages
> appear blank. I have tried everything i know to rectify this from
> setting my include path, config files etc but nothing is working.
> Checked the apache error log file but nothing captured on what am
> experiencing. not logging it.
>
> I am just attaching all my files here for any help/assistance. Am so
> tired been battling with this since last night and i can't still
> figure out why this is so. Please i will appreciate any help!!! Am on
> a linux VPS platform
>
> .HTACCESS
>
> RewriteEngine on
> RewriteCond %{SCRIPT_FILENAME} !-f
> RewriteCond %{SCRIPT_FILENAME} !-d
> RewriteRule ^(.*)$ index.php/$1
>
> ExpiresActive On
> ExpiresByType image/gif A0
> ExpiresByType image/png A0
> ExpiresByType image/jpg A0
>
>
> index.php on public_html folder:
>
> require_once 'Bootstrap.php';
> Bootstrap::run();
>
>
> BOOTSTRAP:
>
> require_once 'Zend/Loader.php';
> require_once 'Zend/Session.php';
>
>
> class Bootstrap{
>
> public static $front = null;
>
> public static function run()
> {
> try {
> self::setupEnvironment();
> self::prepare();
> $response = self::$front->dispatch();
> self::sendResponse($response);
> self::$front->dispatch();
> } catch(Exception $e) {
>
>
> }
> }
>
> public static function setupEnvironment()
> {
> error_reporting(E_ALL|E_STRICT);
> ini_set('display_errors', true);// should be set to false
> after deployment
> date_default_timezone_set('Africa/Johannesburg');
> }
>
> public static function prepare()
> {
> self::setupController();
> self::setupView();
> }
>
> public static function setupController()
> {
>
> // load the Zend Components
> Zend_Loader::registerAutoload();
>
> //add the setting declared in settings.ini
> $config = new Zend_Config_Ini('config/settings.ini',
'development');
> Zend_Registry::set('config', $config);
>
> //create an instance of the front controller
> self::$front = Zend_Controller_Front::getInstance();
> self::$front->throwExceptions(true);
> self::$front->returnResponse(true);
>
>
> // Set the default controller directory:
> self::$front->setControllerDirectory(array('default' =>
> $config->paths->data . '/controllers',
>
'admin' => $config->paths->data .
> '/modules/admin/controllers'));
> Zend_Layout::startMvc(array('layoutPath' =>
$config->paths->data .
> '/views/layouts'));
>
>
> // setup database connection variables
> $params = array(
> 'host' => $config->database->hostname,
> 'username' => $config->database->username,
> 'password' => $config->database->password,
> 'dbname' => $config->database->database);
>
> $db = Zend_Db::factory($config->database->type, $params);
> Zend_Db_Table_Abstract::setDefaultAdapter($db);
> Zend_Registry::set('db', $db);
>
>
>
>
> }
>
> public static function setupView()
> {
> $view = new Zend_View;
>
>
> $view->setEncoding('UTF-8');
> $viewRenderer = new
> Zend_Controller_Action_Helper_ViewRenderer($view);
> Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
> }
>
> public static function sendResponse(Zend_Controller_Response_Http
> $response)
> {
>
> $response->setHeader('Content-Type', 'text/html;
charset=UTF-8', true);
> $response->sendResponse();
> }
>
>
>
> }
>
>
> FOLDER STRUCTURE:
> http://www.nabble.com/file/p20911516/Untitled-1.jpg
>
>
> SETTINGS.INI file:
>
> [development]
>
> database.type = pdo_mysql
> database.hostname = mydomain.co.za
> database.username = mydb007
> database.password = mypass
> database.database = mydb
>
> paths.data = /usr/local/lib/apps
> paths.modules.admin = /usr/local/lib/apps/modules/admin
>
>
> PHP>INI file(includes):
>
> ; UNIX: "/path1:/path2"
> include_path =
>
".:/usr/lib/php:/usr/local/lib/php:/usr/local/lib/apps:/usr/local/lib/apps/l
ib:/usr/local/lib/apps/models"
>
-----
dee
--
View this message in context:
http://www.nabble.com/ZF-live-settings-tp20911516p20913835.html
Sent from the Zend Framework mailing list archive at Nabble.com.
________________________________________________________________________
This email has been scanned for all known viruses by the MessageLabs Email
Security Service and the Macro 4 plc internal virus protection system.
________________________________________________________________________
________________________________________________________________________
This email has been scanned for all known viruses by the MessageLabs Email
Security Service and the Macro 4 plc internal virus protection system.
________________________________________________________________________