We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22640
    • 44 Posts
    Hi everyone,

    I’ve done a search but can’t seem to find any solution.

    We recently upgraded to PHP 5.2.4 and now get an "open_basedir restriction" error when loading the Home Page and the Manager. I’m assuming that I just have to change a configuration variable from a relative path to a absolute path, but I don’t know what setting that would be.

    I have access to phpMyAdmin and I’m also assuming that the table with configuration variables is "modx_system_settings"

    Does anyone know what setting I should change? And do I add the ’http://....." to it?

    Thanks for all your help!
    Glenn

    PHP: 5.2.4
    Apache: 1.3.39 (Unix)

    Here is the error when loading the Home Page:

    Warning: Unknown: open_basedir restriction in effect. File(/home/username/public_html/index.php) is not within the allowed path(s): (/home/miroque/:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0
    
    Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
    
    Fatal error: Unknown: Failed opening required '/home/username/public_html/index.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Looks to me like your problem is in your php.ini file.

      http://il2.php.net/features.safe-mode
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 22640
        • 44 Posts
        Thanks. I’ll take a look.
        Glenn

        Quote from: sottwell at Oct 25, 2007, 12:17 PM

        Looks to me like your problem is in your php.ini file.

        http://il2.php.net/features.safe-mode
          • 19980 ☆ A M B ☆
          • 275 Posts
          Quote from: sottwell at Oct 25, 2007, 12:17 PM

          Looks to me like your problem is in your php.ini file.

          http://il2.php.net/features.safe-mode

          Hi Susan,

          I got safe mode off but MODx Revo Manager path refuse to work ((

          Here is the log:

          [2011-05-24 14:27:18] (ERROR @ /home/nord/domains/site.com/public_html/core/model/modx/modmanagerrequest.class.php : 62) PHP warning: file_exists() [<a href=’function.file-exists’>function.file-exists</a>]: open_basedir restriction in effect. File(/usr/home/nord/domains/site.com/public_html/manager/templates/default/) is not within the allowed path(s): (/home/nord/:/tmp:/var/tmp:/usr/local/lib/php/)



          [2011-05-24 14:27:18] (ERROR @ /home/nord/domains/site.com/public_html/core/model/modx/modmanagerrequest.class.php : 103) PHP warning: include_once() [<a href=’function.include-once’>function.include-once</a>]: open_basedir restriction in effect. File(/usr/home/nord/domains/site.com/public_html/manager/controllers/default/security/login.php) is not within the allowed path(s): (/home/nord/:/tmp:/var/tmp:/usr/local/lib/php/)




          [2011-05-24 14:27:18] (ERROR @ /home/nord/domains/site.com/public_html/core/model/modx/modmanagerrequest.class.php : 103) PHP warning: include_once(/usr/home/nord/domains/site.com/public_html/manager/controllers/default/security/login.php) [<a href=’function.include-once’>function.include-once</a>]: failed to open stream: Operation not permitted



          [2011-05-24 14:27:18] (ERROR @ /home/nord/domains/site.com/public_html/core/model/modx/modmanagerrequest.class.php : 103) PHP warning: include_once() [<a href=’function.include’>function.include</a>]: Failed opening ’/usr/home/nord/domains/site.com/public_html/manager/controllers/default/security/login.php’ for inclusion (include_path=’.:/usr/local/lib/php’)
            modx and ecommerce pro
            • 19980 ☆ A M B ☆
            • 275 Posts
            got PHP Version 5.2.17
            and safe_mode Off


            The php Build Date Apr 11 2011 12:39:36 which is quite more dates when Manger was working last time, but since Apr 14th the manager not works

            Looking forward to your reply , thanks
              modx and ecommerce pro