Guest Posted June 29, 2010 Posted June 29, 2010 I've seen the answer to this on the forums somewhere recently but just cannot seem to find it now. Could someone tell me how to go about changing the 'catalog' name to something else? Which files do I have to amend in addition to changing the folder name? Many thanks for any replies :)
Guest Posted June 29, 2010 Posted June 29, 2010 Okay, so I found some posts (after searching on the web - they didn't come up searching here...) and the general guidance is to change the following files: catalog/includes/configure.php catalog/admin/includes/configure.php But in these files, how much exactly needs to be changed? For example in the admin/includes...one there is '/catalog' but also lots of capitalized catalogs like define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); So do I change all the capitalized instances of catalog too? And in the includes/configure.php file I can't find an instance of '/catalog/', so I'm not sure what is supposed to be changed in that file. Any help would be appreciated :)
BryceJr Posted June 29, 2010 Posted June 29, 2010 catalog/includes/configure.php define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); -- to define('DIR_WS_HTTP_CATALOG', '/dali45/'); define('DIR_WS_HTTPS_CATALOG', '/dali45/'); catalog/admin/includes/configure.php define('DIR_WS_CATALOG', '/catalog/'); -- to define('DIR_WS_CATALOG', '/dali45/'); If you decide to install in root, instances of '/catalog/' becomes '/' But in these files, how much exactly needs to be changed? For example in the admin/includes...one there is '/catalog' but also lots of capitalized catalogslike ... So do I change all the capitalized instances of catalog too? NO!
Guest Posted June 30, 2010 Posted June 30, 2010 catalog/includes/configure.php define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); -- to define('DIR_WS_HTTP_CATALOG', '/dali45/'); define('DIR_WS_HTTPS_CATALOG', '/dali45/'); catalog/admin/includes/configure.php define('DIR_WS_CATALOG', '/catalog/'); -- to define('DIR_WS_CATALOG', '/dali45/'); If you decide to install in root, instances of '/catalog/' becomes '/' NO! Thank you so much for your help :)
Guest Posted June 30, 2010 Posted June 30, 2010 Thank you so much for your help :) Well I just tried this, making sure I was changing the name exactly where shown above, but for some reason it's not working and I'm getting the error message: Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /homepages/**/(databasenumber)/htdocs/(storename)/includes/functions/database.php on line 19 Unable to connect to database server! Why would changing the name alter being able to connect to the server? I checked line 19 and it says $$link = mysql_connect($server, $username, $password); but since I haven't changed that file I don't understand why there is an error. Can anyone help?
Guest Posted June 30, 2010 Posted June 30, 2010 I've managed to work out what was wrong :D The problem was that I was overwriting with an uninstalled version of the files, uploading it from my computer. This meant that I didn't see all the places where it said 'catalog' in the installed version of the file in the shop, as the installation fills it in. So for anyone else out there that might have the same problem, or make the same mistake these are the lines that you must change 'catalog' to your chosen name to: In the catalog/admin/includes/configure.php: define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', '/homepages/**/********/htdocs/catalog/'); the ** are just part of the server file path to the catalog folder -you path may look a bit different, just make sure you change 'catalog' at the end In the catalog/includes/configure.php file change catalog in all these lines: define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); and further down: define('DIR_FS_CATALOG', '/homepages/**/********/htdocs/catalog/'); Don't change anything else! Easey when you know how! :D
Recommended Posts
Archived
This topic is now archived and is closed to further replies.