problem with httpd

Discussion in 'Installation/Configuration' started by staff007, Jun 26, 2011.

  1. staff007

    staff007 New Member

    Hello,

    in centos-server i have php 5.1.6 with ispconfig3

    yesterday i'm enabled repository with php 5.2.10 and no i'm get this error in php

    Code:
    [Warning] include() [<a href='function.include'>function.include</a>]: open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/clients/client0/web6/web:/var/www/clients/client0/web6/tmp:${DocumentRoot}:/srv/www/domain.com/web:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/var/www/framework) (@line 126 in file ${PradoFramework}/Web/UI/TClientScriptManager.php).
    
    What can by with server wrong ?
     
  2. falko

    falko Super Moderator ISPConfig Developer

    open_basedir is in effect (see http://php.net/manual/en/ini.core.php, especially this section:

    ), and your php file is not in any of the listed directories or their subdirectories:

    /var/www/clients/client0/web6/web:/var/www/clients/client0/web6/tmp:${DocumentRoot}:/srv/www/domain.com/web:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/var/www/framework
     
  3. staff007

    staff007 New Member

    now php show that located in /usr/share/php

    but scripts don't work :( changed open_basedir

    /usr/share/php5 to /usr/share/php
     
  4. staff007

    staff007 New Member

    /usr/share/php

    dir empty

    /usr/share/php5 don't exists
     
  5. falko

    falko Super Moderator ISPConfig Developer

    You have an include statement in your PHP file. make sure that you add the directory of the included file to the open_basedir variable.
     
  6. staff007

    staff007 New Member

    but in php 5.1.6 all configuration work normally, now get this messages :(
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Please read the quote from post #2. That might be the key to your problem.
     
  8. staff007

    staff007 New Member

    i'm read post #2 and changed open_basedir

    Code:
    /var/www/clients/client0/web1/web:/var/www/clients/client0/web1/tmp:${DocumentRoot}:/var/www/domain.com/web:/srv/www/domain.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/var/www/framework/prado:/var/www/framework
    
    Code:
    [Tue Jun 28 11:56:06 2011] [error] [client ] exception 'TPhpErrorException' with message '[Warning] include() [<a href='function.include'>function.include</a>]: open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/clients/client0/web1/web:/var/www/clients/client0/web1/tmp:${DocumentRoot}:/var/www/domain.com/web:/srv/www/domain.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/var/www/framework/prado:/var/www/framework) (@line 126 in file /var/www/framework/prado/Web/UI/TClientScriptManager.php).' in /var/www/framework/prado/PradoBase.php:136, referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] Stack trace:, referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #0 /var/www/framework/prado/Web/UI/TClientScriptManager.php(126): PradoBase::phpErrorHandler(2, 'include() [<a h...', '/var/www/framew...', 126, Array), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #1 /var/www/framework/prado/Web/UI/TClientScriptManager.php(126): TClientScriptManager::registerPradoScriptInternal(), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #2 /var/www/framework/prado/Web/UI/TClientScriptManager.php(111): TClientScriptManager->registerPradoScriptInternal('validator'), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #3 /var/www/framework/prado/Web/UI/WebControls/TValidationSummary.php(241): TClientScriptManager->registerPradoScript('validator'), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #4 /var/www/framework/prado/Web/UI/WebControls/TValidationSummary.php(329): TValidationSummary->renderJsSummary(), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #5 /var/www/framework/prado/Web/UI/WebControls/TWebControl.php(400): TValidationSummary->renderContents(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #6 /var/www/framework/prado/Web/UI/TControl.php(1541): TWebControl->render(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #7 /var/www/framework/prado/Web/UI/TControl.php(1572): TControl->renderControl(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #8 /var/www/framework/prado/Web/UI/WebControls/TWebControl.php(422): TControl->renderChildren(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #9 /var/www/framework/prado/Web/UI/WebControls/TWebControl.php(400): TWebControl->renderContents(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #10 /var/www/framework/prado/Web/UI/TControl.php(1541): TWebControl->render(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #11 /var/www/framework/prado/Web/UI/TControl.php(1572): TControl->renderControl(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #12 /var/www/framework/prado/Web/UI/TControl.php(1554): TControl->renderChildren(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #13 /var/www/framework/prado/Web/UI/TControl.php(1541): TControl->render(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #14 /var/www/framework/prado/Web/UI/TControl.php(1572): TControl->renderControl(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #15 /var/www/framework/prado/Web/UI/TForm.php(77): TControl->renderChildren(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #16 /var/www/framework/prado/Web/UI/TControl.php(1541): TForm->render(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #17 /var/www/framework/prado/Web/UI/TControl.php(1572): TControl->renderControl(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #18 /var/www/framework/prado/Web/UI/TControl.php(1554): TControl->renderChildren(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #19 /var/www/framework/prado/Web/UI/TControl.php(1541): TControl->render(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #20 /var/www/framework/prado/Web/UI/TControl.php(1572): TControl->renderControl(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #21 /var/www/framework/prado/Web/UI/TControl.php(1554): TControl->renderChildren(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #22 /var/www/framework/prado/Web/UI/TControl.php(1541): TControl->render(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #23 /var/www/framework/prado/Web/UI/TPage.php(230): TControl->renderControl(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #24 /var/www/framework/prado/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #25 /var/www/framework/prado/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter)), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #26 /var/www/framework/prado/Web/Services/TPageService.php(444): TPageService->runPage(Object(Contact), Array), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #27 /var/www/framework/prado/TApplication.php(1095): TPageService->run(), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #28 /var/www/framework/prado/TApplication.php(382): TApplication->runService(), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #29 /var/www/clients/client0/web1/web/index.php(32): TApplication->run(), referer: http://domain.com/Services
    [Tue Jun 28 11:56:06 2011] [error] [client ] #30 {main}, referer: http://domain.com/Services
    
    
     
    Last edited: Jun 28, 2011
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the open_basedir path from the open_basedir field in the website settings.
     
  10. staff007

    staff007 New Member

    Code:
    [website_path]/web:[website_path]/tmp:/var/www/[website_domain]/web:/srv/www/[website_domain]/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/var/www/framework/
    
     
  11. staff007

    staff007 New Member

    Code:
    php_admin_value open_basedir /var/www/clients/client0/web1/web:/var/www/clients/client0/web1/tmp:${DocumentRoot}:/var/www/domain.com/web:/srv/www/domain.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/var/www/framework/prado:/var/www/framework
    
    
     
  12. staff007

    staff007 New Member

    how now start httpd normally with open_basedir ?
     
  13. staff007

    staff007 New Member

    can some body really help ? Or no ?
     
  14. staff007

    staff007 New Member

Share This Page