• 200
  • More

Fatal error: require_once(): Failed opening required ....inc/header.inc.php on line 159

Hello,

I have this error just after permission reversal:

*******************************

Fatal error: require_once(): Failed opening required

'.........../htdocs/inc/version.inc.php'

(include_path='.:/usr/share/php') in /htdocs/website dot tld /inc/header.inc.php on line 159

*******************************

More explanation in my first reply

Replies (3)
    • in the the first step:

      **************

      Warning: file_exists(): open_basedir restriction in effect.

      File(/usr/local/bin/php) is not within the allowed path(s):

      (/HTDOCS:/htdocs:......./htdocs:....../tmp:....../exec_dir:....../php-session:/var/lib/lws/:/usr/base/var/lib/lws:/var/lib/apps/:/usr/base/var/lib/apps:/htdocs:/tmp:/exec_dir:/php-session:/usr/share/php:/etc/pki/tls/certs:/etc/ssl/certs:....../log/access.log:....../log/access.log:....../log/error.log:....../log/error.log)

      in /htdocs/website tld/install/index.php on line 285

      Warning: file_exists(): open_basedir restriction in effect.

      File(/usr/bin/php) is not within the allowed path(s):

      (/HTDOCS:/htdocs:....../htdocs:....../tmp:....../exec_dir:....../php-session:/var/lib/lws/:/usr/base/var/lib/lws:/var/lib/apps/:/usr/base/var/lib/apps:/htdocs:/tmp:/exec_dir:/php-session:/usr/share/php:/etc/pki/tls/certs:/etc/ssl/certs:....../log/access.log:....../log/access.log:....../log/error.log:....../log/error.log)

      in /htdocs/website tld/install/index.php on line 286

      Warning: popen() has been disabled for security reasons in /htdocs/website tld/install/index.php on line 287

      ******************

      In the second step

      Path to php binary : /usr/local/bin/php not found


      ******

      ine the Third step

      inc : Writable (I can change it) So I click on NEXT


      ****

      in the step just after:

      I have error:

      *******************************

      Fatal error: require_once(): Failed opening required

      '.........../htdocs/inc/version.inc.php'

      (include_path='.:/usr/share/php') in /htdocs/website dot tld /inc/header.inc.php on line 159

      *******************************







      • I've read tips that talk about changing the root, but where or how?

        Thanks

        • Hello @aghilas !

          This is the usual deal of the shared hosting. You need to have the include_path parameter's value like include_path='' . Ask your hosting support about it.

          Not logged in users can't 'Comments Post'.
          aghilas
          •  ·  Standard
          • 148 views
          3
          1