herb69 Posted March 3, 2003 Share Posted March 3, 2003 I recently changed my DIR structure and need to edit configure.php, but I'm having trouble understanding it. :oops: I've been trying to fix it on my own, but it's not working. I would appreciate some help....I will include the default configure.php for admin first, then for Catalog. My DIR is setup as follows /public_html/ public_html/ CVS Admin Admin CVS cgi-bin backups download images images includes includes pub scgi-bin *php files* this is configure.php for admin 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', '/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/'); this is for catalog define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); 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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_FS_DOCUMENT_ROOT', $HTTP_SERVER_VARS['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_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Thanks!!! Link to comment Share on other sites More sharing options...
toolcrazy Posted March 3, 2003 Share Posted March 3, 2003 define('DIR_WS_CATALOG', '/catalog/'); to: define('DIR_WS_CATALOG', '/'); Is all you need to do. Steve ------------------------- Link to comment Share on other sites More sharing options...
herb69 Posted March 3, 2003 Author Share Posted March 3, 2003 everything works except when I am in admins and click on mdules and then payments it says Module Directory: /home/mrsfield/public_html/includes/modules/payment/ and nothing else Link to comment Share on other sites More sharing options...
Ajeh Posted March 3, 2003 Share Posted March 3, 2003 Change this to your real path: 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) Link to comment Share on other sites More sharing options...
chfields Posted March 3, 2003 Share Posted March 3, 2003 1st, what would be the "real path". And 2nd the problem is only with that one part of the module. It's not displaying anything. Everything else is working well. Link to comment Share on other sites More sharing options...
herb69 Posted March 3, 2003 Author Share Posted March 3, 2003 I found the problem, I didn't have the permissions set properly... :oops: Link to comment Share on other sites More sharing options...
Ajeh Posted March 3, 2003 Share Posted March 3, 2003 Example, my setting that I use is: define('DIR_FS_DOCUMENT_ROOT', '/home/mylinkto/public_html') When the $DOCUMENT_ROOT is used, on many servers, this breaks the relationship to the modules in the Admin. The other common reason is that Search Engine Friendly URLs is turned on and does not work right with your server. ie. Turn them off. :D Link to comment Share on other sites More sharing options...
Ajeh Posted March 3, 2003 Share Posted March 3, 2003 Note: A quick way to determin this is go to Admin ... Tools ... Server Info ... Search for: document_root (without the $) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.