Guest Posted June 4, 2003 Posted June 4, 2003 Hi. Im a newbie, but i seemed to have installed the catalog part no problems. but the admin section im having trouble with. the following is the application_top.php code.. // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', 'http://www.domainname.com.au'); define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT . '/home/virtual/SITENUMBER/var/www/html/'); // where your pages are located on the server.. needed to delete images.. (eg, /usr/local/apache/htdocs) define('DIR_FS_LOGS', '/home/virtual/SITENUMBER/var/log'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_WS_IMAGES', DIR_WS_ADMIN . 'images/'); 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_PAYMENT_MODULES', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG . '/home/virtual/SITENUMBER/var/www/html/catalog/includes/modules/payment/'); define('DIR_FS_SHIPPING_MODULES', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG . '/home/virtual/SITENUMBER/var/www/html/catalog/includes/modules/shipping/'); define('STORE_NAME', 'The Exchange Project'); define('STORE_COUNTRY', 81); // Germany is 81, USA is 223 define('EXIT_AFTER_REDIRECT', 1); // if enabled, the parse time will not store its time after the header(location) redirect - used with tep_tep_exit(); define('STORE_PAGE_PARSE_TIME', 0); // store the time it takes to parse the page define('STORE_PAGE_PARSE_TIME_LOG', DIR_FS_LOGS . 'exchange/parse_time_log'); define('STORE_PARSE_DATE_TIME_FORMAT', '%d/%m/%Y %H:%M:%S'); if (STORE_PAGE_PARSE_TIME == '1') { $parse_start_time = microtime(); } define('STORE_DB_TRANSACTIONS', 0); // define the filenames used in the project define('FILENAME_BACKUP', 'backup.php'); define('FILENAME_CATEGORIES', 'categories.php'); define('FILENAME_CONFIGURATION', 'configuration.php'); define('FILENAME_PAYMENT_MODULES', 'payment_modules.php'); define('FILENAME_SHIPPING_MODULES', 'shipping_modules.php'); define('FILENAME_COUNTRIES', 'countries.php'); define('FILENAME_CUSTOMERS', 'customers.php'); define('FILENAME_DEFAULT', 'default.php'); define('FILENAME_MANUFACTURERS', 'manufacturers.php'); define('FILENAME_ORDERS', 'orders.php'); define('FILENAME_PRODUCTS_ATTRIBUTES', 'products_attributes.php'); define('FILENAME_PRODUCTS_EXPECTED', 'products_expected.php'); define('FILENAME_REVIEWS', 'reviews.php'); define('FILENAME_SPECIALS', 'specials.php'); define('FILENAME_STATS_CUSTOMERS', 'stats_customers.php'); define('FILENAME_STATS_PRODUCTS_PURCHASED', 'stats_products_purchased.php'); define('FILENAME_STATS_PRODUCTS_VIEWED', 'stats_products_viewed.php'); define('FILENAME_TAX_CLASSES', 'tax_classes.php'); define('FILENAME_TAX_RATES', 'tax_rates.php'); define('FILENAME_ZONES', 'zones.php'); define('FILENAME_CURRENCIES', 'currencies.php'); define('FILENAME_LANGUAGES', 'languages.php'); // define our database connection define('DB_SERVER', $HTTP_ENV_VARS['localhost']); define('DB_SERVER_USERNAME', 'USERNAME'); define('DB_SERVER_PASSWORD', 'PASSWORD'); define('DB_DATABASE', 'catalog'); define('USE_PCONNECT', 1); Is there something obvious that im not looking at??? Plus. I looked at application_bottom.php and the database.php and I dont see anything that i need to change.. this is the first time with PHP so i might be missing the obvious.. Anyhelp would be great :D
Guest Posted June 4, 2003 Posted June 4, 2003 the problem is when i hit the following url after uploading the code i get nothing http://www.domainname.com.au/admin/default.php it says the page cannot be displayed.. is that the url that i would need to use..??
prosto Posted June 4, 2003 Posted June 4, 2003 it seems to me that you have mixed up two files here- the code with all DIR_FS and DIR_WS got to be in /catalog/includes/configure.php and the rest in admin/includes/application_top.php Please correct and take a look at catalog/includes/configure.php for the admin directory location (or set it if it was not set. Thanks
Guest Posted June 4, 2003 Posted June 4, 2003 it seems to me that you have mixed up two files here- the code with all DIR_FS and DIR_WS got to be in /catalog/includes/configure.php and the rest in admin/includes/application_top.php Please correct and take a look at catalog/includes/configure.php for the admin directory location (or set it if it was not set. Thanks THanks for replying. The problem is that under catalog/includes, there is no file called configure.php. but the catalog section is working.. the code i posted was for the admin section.. if i misunderstood, could you pin point it for me? Also, in the intructions it mentions that under the "local" folder a configuration file is ment to be there and that is missing too. I wonder if there is an easy step by step guides for the newbies .. :D
prosto Posted June 4, 2003 Posted June 4, 2003 Well, I would go ahead and start off fresh then. I would remove all these files from your server, redownload 2.2 MS1 (just make sure your download did not get corrupt), upload files to the server and run installation via browser. It is automatic and all you have to know is DB name, DB username and pwd - everything else script detects automatically Thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.