Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [ZendFramework]Zf1 brak Frontcontroller.php
ShadowD
post 19.11.2012, 17:19:13
Post #1





Grupa: Zarejestrowani
Postów: 1 333
Pomógł: 137
Dołączył: 25.03.2008
Skąd: jesteś??

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


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


--------------------
Mój blog - o wszystkim i niczym ale zazwyczaj związane z informatyką! ;-)
Githube

Usługi spawalnicze i monterskie | Park linowy Lublin i Okunince
Go to the top of the page
+Quote Post
cudny
post 19.11.2012, 17:22:32
Post #2





Grupa: Zarejestrowani
Postów: 387
Pomógł: 66
Dołączył: 31.03.2005
Skąd: Kielce

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


Apache i php nie mają dostępu do zapisu w podanych plikach / katalogach.
Daj sudo chmod -R ( uprawnienia dla apache ) /sciezka do katalogów


--------------------
..::: Jak pomogłem to kliknij pomógł. Tak rzadko używacie tej opcji :( :::..
Go to the top of the page
+Quote Post
ShadowD
post 19.11.2012, 17:27:01
Post #3





Grupa: Zarejestrowani
Postów: 1 333
Pomógł: 137
Dołączył: 25.03.2008
Skąd: jesteś??

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


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.

Ten post edytował ShadowD 19.11.2012, 17:29:25


--------------------
Mój blog - o wszystkim i niczym ale zazwyczaj związane z informatyką! ;-)
Githube

Usługi spawalnicze i monterskie | Park linowy Lublin i Okunince
Go to the top of the page
+Quote Post
cudny
post 19.11.2012, 17:35:46
Post #4





Grupa: Zarejestrowani
Postów: 387
Pomógł: 66
Dołączył: 31.03.2005
Skąd: Kielce

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


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

Ten post edytował cudny 19.11.2012, 17:53:33


--------------------
..::: Jak pomogłem to kliknij pomógł. Tak rzadko używacie tej opcji :( :::..
Go to the top of the page
+Quote Post
ShadowD
post 19.11.2012, 17:52:38
Post #5





Grupa: Zarejestrowani
Postów: 1 333
Pomógł: 137
Dołączył: 25.03.2008
Skąd: jesteś??

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


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).


--------------------
Mój blog - o wszystkim i niczym ale zazwyczaj związane z informatyką! ;-)
Githube

Usługi spawalnicze i monterskie | Park linowy Lublin i Okunince
Go to the top of the page
+Quote Post
cudny
post 19.11.2012, 17:54:53
Post #6





Grupa: Zarejestrowani
Postów: 387
Pomógł: 66
Dołączył: 31.03.2005
Skąd: Kielce

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


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.  


Ten post edytował cudny 19.11.2012, 18:00:04


--------------------
..::: Jak pomogłem to kliknij pomógł. Tak rzadko używacie tej opcji :( :::..
Go to the top of the page
+Quote Post
ShadowD
post 19.11.2012, 18:28:20
Post #7





Grupa: Zarejestrowani
Postów: 1 333
Pomógł: 137
Dołączył: 25.03.2008
Skąd: jesteś??

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


Dałeś skróconego linka możesz poprawić?


--------------------
Mój blog - o wszystkim i niczym ale zazwyczaj związane z informatyką! ;-)
Githube

Usługi spawalnicze i monterskie | Park linowy Lublin i Okunince
Go to the top of the page
+Quote Post
d3ut3r
post 19.11.2012, 18:34:11
Post #8





Grupa: Zarejestrowani
Postów: 709
Pomógł: 176
Dołączył: 24.10.2010

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


Pełny link:

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



--------------------
http://d3ut3r.wordpress.com/ | mysql_* jest przestarzałe UŻYWAJ PDO!
Go to the top of the page
+Quote Post
cudny
post 19.11.2012, 23:08:13
Post #9





Grupa: Zarejestrowani
Postów: 387
Pomógł: 66
Dołączył: 31.03.2005
Skąd: Kielce

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


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


--------------------
..::: Jak pomogłem to kliknij pomógł. Tak rzadko używacie tej opcji :( :::..
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 28.04.2024 - 16:38