Foutmelding na toevoegen database.

Pagina: 1
Acties:

  • Alicos
  • Registratie: Juni 2006
  • Laatst online: 05-08-2023
Foutmelding na toevoegen database.
Hallo,

Ik heb een website proberen te uploaden naar de server. alles ging goed alleen na het toevoegen van de database is er het onderstaande fout opgetreden.

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/.) is not within the allowed path(s): (/home/deb10058n2/:/tmp:/usr/local/lib/php/) in /usr/home/deb10058n2/domains/acem-autos.nl/public_html/occasions.php on line 201

Nou ben ik zelf niet de ontwerper van deze website maar heb wel alles volgens boekje gedaan!..

-config.php aangepast met me eigen database gegevens
-Daarna de .sql database importeren in de database die ik heb gemaakt.

volledige link naar de site is : http://www.acem-autos.nl/occasions.php

Anyone? Plz

  • gassiepaart
  • Registratie: April 2004
  • Laatst online: 03-02 21:22
Dit lijkt me niet echt een windows probleem....

Het lijkt er ook dat je verwijzingen ergens in de code hebt die verwijzen naar een niet bestaande/ toegankelijke locatie.

  • Turdie
  • Registratie: Maart 2006
  • Laatst online: 20-08-2024
Alicos schreef op woensdag 03 september 2008 @ 21:42:
Foutmelding na toevoegen database.
Hallo,

Ik heb een website proberen te uploaden naar de server. alles ging goed alleen na het toevoegen van de database is er het onderstaande fout opgetreden.

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/.) is not within the allowed path(s): (/home/deb10058n2/:/tmp:/usr/local/lib/php/) in /usr/home/deb10058n2/domains/acem-autos.nl/public_html/occasions.php on line 201

Nou ben ik zelf niet de ontwerper van deze website maar heb wel alles volgens boekje gedaan!..

-config.php aangepast met me eigen database gegevens
-Daarna de .sql database importeren in de database die ik heb gemaakt.

volledige link naar de site is : http://www.acem-autos.nl/occasions.php

Anyone? Plz
Quote vanaf php.net
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. If the file doesn't exist then the symlink couldn't be resolved and the filename is compared to (a resolved) open_basedir .

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/"

The default is to allow all files to be opened.
Waarschijnlijk is dus op jouw server geen basedir gespecificeerd en dat je /. hebt gebruikt waar dat niet mag