Announcement

Collapse
No announcement yet.

New Installation - Open Basedir restriction

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • New Installation - Open Basedir restriction

    Hi,
    I installed the software and I have a problem to go to the admin page:


    Debug: Error

    chdir(): open_basedir restriction in effect. File(./../) is not within the allowed path(s): (/var/www/vhosts/badzine.fr/httpdocs:/tmp)
    occurred in file /var/www/vhosts/badzine.fr/httpdocs/core/admincp/global.php on line 33
    Trace
    • Function handleError in file line
    • Function chdir in file /var/www/vhosts/badzine.fr/httpdocs/core/admincp/global.php line 33
    • Function require_once in file /var/www/vhosts/badzine.fr/httpdocs/core/admincp/index.php line 25
    • Function require_once in file /var/www/vhosts/badzine.fr/httpdocs/includes/api/interface/collapsed.php line 104
    • Function relay in file /var/www/vhosts/badzine.fr/httpdocs/includes/vb5/frontend/controller/relay.php line 29
    • Function admincp in file line
    • Function call_user_func_array in file /var/www/vhosts/badzine.fr/httpdocs/index.php line 119
    The site is on a dedicated server Plesk 9.5 (linux) ... and I can not configure the httpd.conf to set the "open basedir" to the admin page works ...
    Mod_rewrite is ok on server.

    Thanks for your help

    Jeff

  • #2
    You might find this setting in php.ini. Don't forget to restart the apache after changing values in php.ini
    No private support, only PM me when I ask for it. Support in the forums only.

    Comment


    • #3
      Originally posted by Hartmut View Post
      You might find this setting in php.ini. Don't forget to restart the apache after changing values in php.ini
      Thanks Hartmut

      I found the solution :

      In the httpd.include file (/var/www/vhosts/yourdomainename/conf/httpd.include)

      Replace :

      <IfModule sapi_apache2.c>
      php_admin_flag engine on
      php_admin_flag safe_mode off
      php_admin_value open_basedir "/var/www/vhosts/yourdomainename/httpdocs:/tmp"
      </IfModule>
      <IfModule mod_php5.c>
      php_admin_flag engine on
      php_admin_flag safe_mode off
      php_admin_value open_basedir "/var/www/vhosts/yourdomainename/httpdocs:/tmp"
      </IfModule>

      By :

      <IfModule sapi_apache2.c>
      php_admin_flag engine on
      php_admin_flag safe_mode off
      php_admin_value open_basedir none
      </IfModule>
      <IfModule mod_php5.c>
      php_admin_flag engine on
      php_admin_flag safe_mode off
      php_admin_value open_basedir none
      </IfModule>


      And restart httpd service (service httpd restart)

      Jeff

      Comment


      • #4
        Thanks for letting us know
        No private support, only PM me when I ask for it. Support in the forums only.

        Comment

        Related Topics

        Collapse

        Working...
        X