Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][Zend]Przeniesieni z windowsa na ubuntu.
cykcykacz
post
Post #1





Grupa: Zarejestrowani
Postów: 550
Pomógł: 9
Dołączył: 29.05.2009
Skąd: Ostrów Wielkopolski

Ostrzeżenie: (0%)
-----


Witam,
przeniosłem projekt stworzony w systemie operacyjnym Windows na Linuxa Ubuntu. Jednak mam problem z działaniem projektu.
Kod
Warning: include_once(Zend/Application/Module/AutoLoader.php): failed to open stream: No such file or directory in /usr/share/php/libzend-framework-php/Zend/Loader.php on line 146 Warning: include_once(): Failed opening 'Zend/Application/Module/AutoLoader.php' for inclusion (include_path='/var/www/testy/application/../library:/var/www/testy/library:/var/www/testy/application::/usr/share/php/libzend-framework-php') in /usr/share/php/libzend-framework-php/Zend/Loader.php on line 146 Fatal error: Class 'Zend_Application_Module_AutoLoader' not found in /var/www/testy/application/Bootstrap.php on line 9

Proszę o pomoc.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
cykcykacz
post
Post #2





Grupa: Zarejestrowani
Postów: 550
Pomógł: 9
Dołączył: 29.05.2009
Skąd: Ostrów Wielkopolski

Ostrzeżenie: (0%)
-----


Do katalogu "library" mam dowiązanie, coś na wzór:
Kod
sudo ln -s /usr/share/php/libzend-framework-php/Zend /home/user/Zend/project/library/ , gdzie folder /home/user/Zend/project/ jest z twoim projektem;

Teraz skopiowałem katalog Zend do katalogu aplikacji "library" jednak nie pomogło.
Tutaj na skrinie widać strukturę moich katalogów http://yfrog.com/f/83zrzutekranuppap/

Po dodaniu zmian dostaję taki komunikat:
Kod
Warning: require_once(Zend/Application.php): failed to open stream: No such file or directory in /var/www/testy/public/index.php on line 22 Fatal error: require_once(): Failed opening required 'Zend/Application.php' (include_path='/var/www/testy/public/library:/var/www/testy/public/application/configs') in /var/www/testy/public/index.php on line 22

Mój plik index.php
Kod
<?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'));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(dirname(__FILE__) . '/../library'),
    realpath(dirname(__FILE__) . '/../application'),
    get_include_path(),
)));

$path = dirname($_SERVER['SCRIPT_FILENAME']);
ini_set('include_path', $path . "/library:". $path . "/application/configs");

/** 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()
            ->ru


W bootstrap.php zakomentowałem:
Kod
;includePaths.library = APPLICATION_PATH "/../library"


Coś musiałem namieszać z tymi PATH. (IMG:style_emoticons/default/smile.gif)

Ten post edytował cykcykacz 19.08.2010, 17:35:45
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 27.12.2025 - 22:06