Jump to content
xt:Commerce Community Forum
Sign in to follow this  
Key.C

config.php

Recommended Posts

Huhu,

Ich habe ein Problem mit der Config.php...

Fehler:

Warning: main() [function.main]: open_basedir restriction in effect. File(/www/web28/htdocs/shop/includes/filenames.php) is not within the allowed path(s): (/home/www/web28/html/:/home/www/web28/phptmp/:/home/www/web28/files/:/home/www/web28/atd/) in /home/www/web28/html/shop/includes/application_top.php on line 57

Warning: main(/www/web28/htdocs/shop/includes/filenames.php) [function.main]: failed to open stream: Operation not permitted in /home/www/web28/html/shop/includes/application_top.php on line 57

Fatal error: main() [function.require]: Failed opening required '/www/web28/htdocs/shop/includes/filenames.php' (include_path='.') in /home/www/web28/html/shop/includes/application_top.php on line 57

Ich glaube das es an der Zeile

23 & 24 liegt welche beinhaltet:

define('DIR_FS_DOCUMENT_ROOT', '/www/web28/htdocs/shop/');

define('DIR_FS_CATALOG', '/www/web28/htdocs/shop/');

Hier die ganze Datei...

Woran kann es liegen...

Ich denke an den Server Pfad...

<?php

/* --------------------------------------------------------------

XT-Commerce - community made shopping

http://www.xt-commerce.com

Copyright © 2003 XT-Commerce

--------------------------------------------------------------

based on:

© 2000-2001 The Exchange Project (earlier name of osCommerce)

© 2002-2003 osCommerce (configure.php,v 1.13 2003/02/10); www.oscommerce.com

Released under the GNU General Public License

--------------------------------------------------------------*/

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://xxxxxxxxxxxxxx.de'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://xxxxxxxxxxxxx.de'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('DIR_WS_CATALOG', '/'); // absolute path required

define('DIR_FS_DOCUMENT_ROOT', '/www/web28/htdocs/shop/');

define('DIR_FS_CATALOG', '/www/web28/htdocs/shop/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ORIGINAL_IMAGES', DIR_WS_IMAGES .'product_images/original_images/');

define('DIR_WS_THUMBNAIL_IMAGES', DIR_WS_IMAGES .'product_images/thumbnail_images/');

define('DIR_WS_INFO_IMAGES', DIR_WS_IMAGES .'product_images/info_images/');

define('DIR_WS_POPUP_IMAGES', DIR_WS_IMAGES .'product_images/popup_images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES',DIR_FS_DOCUMENT_ROOT. 'includes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_FS_CATALOG . 'lang/');

define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

define('DIR_FS_INC', DIR_FS_CATALOG . 'inc/');

// define our database connection

define('DB_SERVER', 'xxxxxxxx'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'xxxxxxxx');

define('DB_SERVER_PASSWORD', 'xxxxxxx');

define('DB_DATABASE', 'xxxxxxx');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

Share this post


Link to post
Share on other sites

Da frag am besten mal bei deinem Provider nach dem "absoluten" Pfad. dieser muss da eingetragen werden Bsp.: bei strato wäre das: /home/strato/www/ersten zwei_buchstaben/www.wunschname.de/htdocs/

Das ist aber bei den einzelnen Providern unterschiedlich.

Share this post


Link to post
Share on other sites

So sieht es bei mir aus wo alles funzt:

<?php

/* --------------------------------------------------------------

XT-Commerce - community made shopping

http://www.xt-commerce.com

Copyright © 2003 XT-Commerce

--------------------------------------------------------------

based on:

© 2000-2001 The Exchange Project (earlier name of osCommerce)

© 2002-2003 osCommerce (configure.php,v 1.13 2003/02/10); www.oscommerce.com

Released under the GNU General Public License

--------------------------------------------------------------*/

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.xxx.de'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.xxx.de'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('DIR_WS_CATALOG', '/'); // absolute path required

define('DIR_FS_DOCUMENT_ROOT', '/var/www/web007/html/shop/');

define('DIR_FS_CATALOG', '/var/www/web007/html/shop/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ORIGINAL_IMAGES', DIR_WS_IMAGES .'product_images/original_images/');

define('DIR_WS_THUMBNAIL_IMAGES', DIR_WS_IMAGES .'product_images/thumbnail_images/');

define('DIR_WS_INFO_IMAGES', DIR_WS_IMAGES .'product_images/info_images/');

define('DIR_WS_POPUP_IMAGES', DIR_WS_IMAGES .'product_images/popup_images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES',DIR_FS_DOCUMENT_ROOT. 'includes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_FS_CATALOG . 'lang/');

define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

define('DIR_FS_INC', DIR_FS_CATALOG . 'inc/');

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'web007');

define('DB_SERVER_PASSWORD', '123456789');

define('DB_DATABASE', 'usr_web007_1');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

?>

Share this post


Link to post
Share on other sites

Hallo eldoctore,

vielen Dank für deine schnelle Antwort. Hab mal ne Nacht drüber geschlafen und hab dann recht bald eine Lösung gefunden :) . Bei mir lag der Fehler in diesen beiden Zeilen:

define('DIR_FS_DOCUMENT_ROOT', '/rootverzeichnis/');

define('DIR_FS_CATALOG', '/catalogverzeichnis/');

Habs irgendwie geschafft die beiden Verweise zu zerbröseln ;)

Vielen Dank noch einmal und schönes WE an alle :)

Share this post


Link to post
Share on other sites

Da frag am besten mal bei deinem Provider nach dem "absoluten" Pfad. dieser muss da eingetragen werden Bsp.: bei strato wäre das: /home/strato/www/ersten zwei_buchstaben/www.wunschname.de/htdocs/

Mojn,

nur zur Vereinfachung:

Den Pfad sieht man, wenn man eine derartige Fehlermeldung hat wie angefragt wurde:

File(/www/web28/htdocs/shop/includes/filenames.php) is not within the allowed path(s): (/home/www/web28/html/:/home/www/web28/phptmp/:/home/www/web28/files/:/home/www/web28/atd/) in /home/www/web28/html/shop/includes/application_top.php on line 57

Gesucht wird in: /www/web28/htdocs/shop/

Tatsächlich stehen tuts in:/home/www/web28/html/shop/

Viele Grüße - Michael

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...