Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [ZendFramework]Zf1 brak Frontcontroller.php
Forum PHP.pl > Forum > PHP > Frameworki
ShadowD
Na localu działa na serverze już nie..

Jak rozumiem szuka w moich bibliotekach Frontcontroller.php, ale w jakim celu? Dodałem ten plik, ale nic to nie zmienia - ten sam błąd nadal.

Cytat
Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear//var/www/virtual/aggo.pl/front/library/Ss/Frontcontroller.php) is not within the allowed path(s): (/var/www/virtual/aggo.pl/:/usr/share/php/) in /var/www/virtual/aggo.pl/library/Zend/Loader.php on line 198 Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear/ZendX/Application/Resource/Frontcontroller.php) is not within the allowed path(s): (/var/www/virtual/aggo.pl/:/usr/share/php/) in /var/www/virtual/aggo.pl/library/Zend/Loader.php on line 198 Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear//var/www/virtual/aggo.pl/front/library/Ss/Layout.php) is not within the allowed path(s): (/var/www/virtual/aggo.pl/:/usr/share/php/) in /var/www/virtual/aggo.pl/library/Zend/Loader.php on line 198 Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear/ZendX/Application/Resource/Layout.php) is not within the allowed path(s): (/var/www/virtual/aggo.pl/:/usr/share/php/) in /var/www/virtual/aggo.pl/library/Zend/Loader.php on line 198 Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear//var/www/virtual/aggo.pl/front/library/Ss/View.php) is not within the allowed path(s): (/var/www/virtual/aggo.pl/:/usr/share/php/) in /var/www/virtual/aggo.pl/library/Zend/Loader.php on line 198 Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear/ZendX/Application/Resource/View.php) is not within the allowed path(s): (/var/www/virtual/aggo.pl/:/usr/share/php/) in /var/www/virtual/aggo.pl/library/Zend/Loader.php on line 198 Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear//var/www/virtual/aggo.pl/front/library/Ss/Db.php) is not within the allowed path(s): (/var/www/virtual/aggo.pl/:/usr/share/php/) in /var/www/virtual/aggo.pl/library/Zend/Loader.php on line 198 Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear/ZendX/Application/Resource/Db.php) is not within the allowed path(s): (/var/www/virtual/aggo.pl/:/usr/share/php/) in /var/www/virtual/aggo.pl/library/Zend/Loader.php on line 198 Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear//var/www/virtual/aggo.pl/front/layouts/helpers/Doctype.php) is not within the allowed path(s): (/var/www/virtual/aggo.pl/:/usr/share/php/) in /var/www/virtual/aggo.pl/library/Zend/Loader.php on line 198 Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear//var/www/virtual/aggo.pl/front/layouts/helpers/HeadTitle.php) is not within the allowed path(s): (/var/www/virtual/aggo.pl/:/usr/share/php/) in /var/www/virtual/aggo.pl/library/Zend/Loader.php on line 198 Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear//var/www/virtual/aggo.pl/front/layouts/helpers/HeadMeta.php) is not within the allowed path(s): (/var/www/virtual/aggo.pl/:/usr/share/php/) in /var/www/virtual/aggo.pl/library/Zend/Loader.php on line 198 Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear//var/www/virtual/aggo.pl/front/layouts/helpers/BaseUrl.php) is not within the allowed path(s): (/var/www/virtual/aggo.pl/:/usr/share/php/) in /var/www/virtual/aggo.pl/library/Zend/Loader.php on line 198 Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear//var/www/virtual/aggo.pl/front/layouts/helpers/HeadLink.php) is not within the allowed path(s): (/var/www/virtual/aggo.pl/:/usr/share/php/) in /var/www/virtual/aggo.pl/library/Zend/Loader.php on line 198 Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear//var/www/virtual/aggo.pl/front/layouts/helpers/HeadScript.php) is not within the allowed path(s): (/var/www/virtual/aggo.pl/:/usr/share/php/) in /var/www/virtual/aggo.pl/library/Zend/Loader.php on line 198 Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear//var/www/virtual/aggo.pl/front/modules/default/controllers/IndexController.php) is not within the allowed path(s): (/var/www/virtual/aggo.pl/:/usr/share/php/) in /var/www/virtual/aggo.pl/library/Zend/Loader.php on line 198 Fatal error: Uncaught exception 'Zend_Controller_Response_Exception' with message 'Cannot send headers; headers already sent in /var/www/virtual/aggo.pl/library/Zend/Loader.php, line 198' in /var/www/virtual/aggo.pl/library/Zend/Controller/Response/Abstract.php:323 Stack trace: #0 /var/www/virtual/aggo.pl/library/Zend/Controller/Response/Abstract.php(341): Zend_Controller_Response_Abstract->canSendHeaders(true) #1 /var/www/virtual/aggo.pl/library/Zend/Controller/Response/Abstract.php(768): Zend_Controller_Response_Abstract->sendHeaders() #2 /var/www/virtual/aggo.pl/library/Zend/Controller/Front.php(992): Zend_Controller_Response_Abstract->sendResponse() #3 /var/www/virtual/aggo.pl/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch() #4 /var/www/virtual/aggo.pl/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() #5 /var/www/virtual/aggo.pl/htdocs/index.php(29): Zend_Application->run() #6 {main} thrown in /var/www/virtual/aggo.pl/library/Zend/Controller/Response/Abstract.php on line 323
cudny
Apache i php nie mają dostępu do zapisu w podanych plikach / katalogach.
Daj sudo chmod -R ( uprawnienia dla apache ) /sciezka do katalogów
ShadowD
Hmm, ciekawe ale którym katalogom mam dać te uprawnienia? :/

Klekną sprawą jest po co mu takie uprawnienia? Pierwszy raz się z tym spotykam, u mnie na serverze nigdy zend nie dawał po oczach takimi błędami.
cudny
A masz poprawnie skonfigurowane .htaccess i bootstrap.php ?
Bo tam się czepia o ścieżki jednak, a nie prawa do zapisu chyba.
Zobacz czy baseUrl masz poprawnie ustawiony ( chociaż i tak cokolwiek powinien Ci wyświetlić ), a przede wszystkim zobacz czy ścieżki w bootstrapie masz prawidłowe, najlepiej przeklej tutaj bootstrap i podaj ścieżkę do aplikacji

A co do uprawnień to miałem sporo problemów kiedyś z sesjami, bo Zend potrzebuje praw do zapisu

Spróbuj jeszcze zmienić w php.ini i zrestartować apache'a

safe_mode=Off
open_basedir=Off

I zobacz jeszcze to:

http://stackoverflow.com/questions/5314957...dir-restriction
ShadowD
http://wklej.org/id/874796/

I tak jak mówię na localu działa wszystko dobrze, mam trochę nie typowo skonfigurowane ścieżki, biblioteki mam pod katalogiem głównym tak jak i front i admin (katalogi całych projektów).
cudny
Tu masz rozwiązanie:

http://stackoverflow.com/questions/5314957...dir-restriction

U mnie bootstrap wygląda następująco:

  1. PATH_SEPARATOR . ROOT_DIR . '/library/'.
  2. PATH_SEPARATOR . ROOT_DIR . '/application/models/'
  3. );
  4.  
  5. require_once('Zend/Loader.php');
  6. Zend_Loader::loadClass('Zend_Loader_Autoloader');
  7. $autoloader = Zend_Loader_Autoloader::getInstance();
  8. $autoloader->setFallbackAutoloader(true);
  9. $autoloader->registerNamespace('Project');
  10.  
  11. defined('APPLICATION_PATH')
  12. || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
  13.  
  14. // setup controller
  15. $frontController = Zend_Controller_Front::getInstance();
  16. $frontController->setControllerDirectory('./application/controllers');
  17. $frontController->throwExceptions(true);
  18. //$frontController->setBaseUrl('/projects/project');
  19.  
  20. $frontController->dispatch();
  21.  
ShadowD
Dałeś skróconego linka możesz poprawić?
d3ut3r
Pełny link:

http://stackoverflow.com/questions/5314957...dir-restriction

cudny
Cytat(ShadowD @ 19.11.2012, 18:28:20 ) *
Dałeś skróconego linka możesz poprawić?


Sorki, musiałem się offlinować na jakiś czas.
@d3ut3r dzięki za poprawkę smile.gif
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.