Visualizzazione dei risultati da 1 a 7 su 7

Discussione: errore pear

  1. #1

    errore pear

    mentre stavo eseguendo test.php per l'installazione di horde..


    Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/home/httpd/vhosts/xxx.net/httpsdocs:/tmp) in /home/httpd/vhosts/xxx.net/httpsdocs/horde/lib/core.php on line 26

    Warning: main(PEAR.php): failed to open stream: Operation not permitted in /home/httpd/vhosts/xxx.net/httpsdocs/horde/lib/core.php on line 26

    Warning: main(): Failed opening 'PEAR.php' for inclusion (include_path='/home/httpd/vhosts/xxx.net/httpsdocs/horde/lib:.:/usr/share/pear') in /home/httpd/vhosts/xxx.net/httpsdocs/horde/lib/core.php on line 26

    Warning: main(Log.php): failed to open stream: No such file or directory in /home/httpd/vhosts/xxx.net/httpsdocs/horde/lib/Horde.php on line 3

    Warning: main(): Failed opening 'Log.php' for inclusion (include_path='/home/httpd/vhosts/xxx.net/httpsdocs/horde/lib:.:/usr/share/pear') in /home/httpd/vhosts/xxx.net/httpsdocs/horde/lib/Horde.php on line 3
    Horde Version

    * Horde: 3.0.5

    cosa sarebbe e cosa dovrei fare?

  2. #2
    Moderatore di Server Apache L'avatar di marketto
    Registrato dal
    Sep 2001
    Messaggi
    5,858
    buona lettura

    --------------------------------------------------
    Modalità sicura (Safe mode):
    "open_basedir string

    Limit the files that can be opened by PHP to the specified directory-tree, including the file itself. This directive is NOT affected by whether Safe Mode is turned On or Off.

    When a script tries to open a file with, for example, fopen() or gzopen(), the location of the file is checked. When the file is outside the specified directory-tree, PHP will refuse to open it. All symbolic links are resolved, so it's not possible to avoid this restriction with a symlink.

    The special value . indicates that the working directory of the script will be used as the base-directory. This is, however, a little dangerous as the working directory of the script can easily be changed with chdir().

    In httpd.conf, open_basedir can be turned off (e.g. for some virtual hosts) the same way as any other configuration directive with "php_admin_value open_basedir none".

    Under Windows, separate the directories with a semicolon. On all other systems, separate the directories with a colon. As an Apache module, open_basedir paths from parent directories are now automatically inherited.

    The restriction specified with open_basedir is actually a prefix, not a directory name. This means that "open_basedir = /dir/incl" also allows access to "/dir/include" and "/dir/incls" if they exist. When you want to restrict access to only the specified directory, end with a slash. For example: "open_basedir = /dir/incl/"

    Nota: Support for multiple directories was added in 3.0.7.

    The default is to allow all files to be opened."
    think simple think ringo

  3. #3
    ma non posso toccare la configurazione del server

  4. #4
    Moderatore di Server Apache L'avatar di marketto
    Registrato dal
    Sep 2001
    Messaggi
    5,858
    Originariamente inviato da osvi
    ma non posso toccare la configurazione del server
    ti conviene contattare l'hoster, infatti il file /usr/share/pear/PEAR.php non si trova nella directory consentita da open_basedir (adesso sono /home/httpd/vhosts/xxx.net/httpsdocs e /tmp) nell'attuale configurazione di php...


    think simple think ringo

  5. #5

  6. #6
    visto che fa

    Codice PHP:
    /* PEAR base class. */
    include_once 'PEAR.php'
    e se tipo gli copio PEAR.php dentro alla cartella dove viene incluso il file?

  7. #7
    copiando il file va, o quasi


    Warning: main(Log.php): failed to open stream: No such file or directory in /home/httpd/vhosts/.com/httpsdocs/horde/lib/Horde.php on line 3

    Warning: main(): Failed opening 'Log.php' for inclusion (include_path='/home/httpd/vhosts/.com/httpsdocs/horde/lib:.:/usr/share/pear') in /home/httpd/vhosts/.com/httpsdocs/horde/lib/Horde.php on line 3

    Notice: Undefined index: horde in /home/httpd/vhosts/.com/httpsdocs/horde/lib/Horde/Registry.php on line 146

    Notice: Use of undefined constant PEAR_LOG_EMERG - assumed 'PEAR_LOG_EMERG' in /home/httpd/vhosts/.com/httpsdocs/horde/lib/Horde.php on line 204

    Notice: Undefined index: log in /home/httpd/vhosts/.com/httpsdocs/horde/lib/Horde.php on line 49



Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.