simon1066 Posted February 10, 2009 Share Posted February 10, 2009 I have recently moved my website to a new server and have had to change all the usual bits in configure.php However I still have a few problems:- 1) When opening the database backup page in admin I get "Error: Backup directory does not exist. Please set this in configure.php." Below that it shows the path "Backup Directory: /content/StartupHostPlus/p/a/www.website.co.uk/web/admin/backups/". Now I've looked at lots of articles on this that say to create the directory, 777 etc. but the directory was already set up although admin says it isn't. 2) Also file manager is replaced with the message below... Warning: dir(/content/StartupHostPlus/p/a/www.website.co.uk/web/) [function.dir]: failed to open dir: No such file or directory in /content/StartupHostPlus/s/l/website.co.uk/web/admin/file_manager.php on line 178 Fatal error: Call to a member function on a non-object in /content/StartupHostPlus/s/l/website.co.uk/web/admin/file_manager.php on line 179 3) And define language is replaced with... Warning: dir(/content/StartupHostPlus/p/a/www.slippersatin.co.uk/web/includes/languages/english) [function.dir]: failed to open dir: No such file or directory in /content/StartupHostPlus/s/l/slippersatin.co.uk/web/admin/define_language.php on line 152 Can anyone help?? I'm really stuck with these!!!! Link to comment Share on other sites More sharing options...
Guldstrand Posted January 29, 2010 Share Posted January 29, 2010 I have the exact same problem regarding the backup-directory. Error Error: Backup directory does not exist. Please set this in configure.php. The backup-directory does exist and is chmoded to 777. configure.php define('HTTP_SERVER', 'http://www.doman.se'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', '/'); define('HTTPS_CATALOG_SERVER', '/'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '../'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); 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_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); I am who I am, unfortunately. Link to comment Share on other sites More sharing options...
Guest Posted January 29, 2010 Share Posted January 29, 2010 A few things to both posts above. 1. File manage and define languages should not be used in the admin. They are a security risk and should be removed. See the security threads in these forums. Security 2. If your host requires your directories to be 777, find a new host. They should be no higher than 755. 3. Change define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); to define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']); Link to comment Share on other sites More sharing options...
spooks Posted January 29, 2010 Share Posted January 29, 2010 $DOCUMENT_ROOT may not be valid on your server especially if you have register_globals off (A must these days), try using $_SERVER['DOCUMENT_ROOT'] or set the path manually. OOPS, spotted Brian said that already, oh well, down to the optician!! Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Guldstrand Posted January 29, 2010 Share Posted January 29, 2010 define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']); That did the trick. Thanks! I am who I am, unfortunately. Link to comment Share on other sites More sharing options...
Guest Posted January 29, 2010 Share Posted January 29, 2010 oh well, down to the optician!! Trust me, I know how that goes. :thumbsup: Link to comment Share on other sites More sharing options...
MrPhil Posted January 30, 2010 Share Posted January 30, 2010 Directory or file permissions of 777 are blocked by some hosts, as they are a security risk ("world writable"). Access to it may be blocked by security software, leading to the "does not exist" message. The instructions you see to chmod to 777 are obsolete and dangerous. Read -- 500 error causes http://www.oscommerce.com/forums/topic/345637-internal-server-error/page__view__findpost__p__1442374 -- setting permissions http://www.oscommerce.com/forums/index.php?showtopic=327395&view=findpost&p=1443272 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.