charmed-imsure Posted December 13, 2008 Share Posted December 13, 2008 I've a serious issue with my includes/configure.php file. My site was moved to a new server so that my Contact-Us part would work (which it now does yey!). I tweaked my 2 configure files so that they point to the right server location because half of my Admin was kind of missing. I re-uploaded the new configure.php file to admin/includes/configure.php but when I came to upload to includes/configure.php, I have a serious problem. I can't overwrite, I can't delete it. I tried to rename it & then upload the new file which worked, however, the new file isn't being read. I've changed permissions etc (which immediately revert back to 700 no matter what I do). My host has reset my FTP permissions also & it still hasn't worked. I get the following error on my FTP program when I try to delete the file: 226-Options: -a -l 226 24 matches total DELE configure.php 550 Could not delete configure.php: Is a directory I can't overwrite it because it says it then says it's an 'invalid argument'. I doubt this is a permission setting issue, I'm flumoxed as to what it could be. I can't operate my site at all now, the website shows fine but I've got no admin section at all. I tried completely reinstalling the OSCommerce software but the only file that wouldn't upload is (da da daaaaa) includes/configure.php Any suggestions? Link to comment Share on other sites More sharing options...
activeweb Posted December 13, 2008 Share Posted December 13, 2008 Give top level directory write permission for a while, delete or etc. ur file and then set default permissions to that directory Link to comment Share on other sites More sharing options...
charmed-imsure Posted December 13, 2008 Author Share Posted December 13, 2008 That didn't work, still the same problem. I've just read another forum that suggests that includes/configure.php is not a file that you can change because it's not 'owned' by you which is why you can't change permissions. I don't know what to do, I've lost my admin completely so I can't operate without it. The error that comes up (I use IPswitch) when I try to overwrite is: Can't open that file: Invalid argument If I go to my admin page this is the error that comes up: Parse error: syntax error, unexpected T_STRING in E:\domains\j\just-keyrings.co.uk\user\htdocs\admin\includes\configure.php on line 22 That line 22 is the following: define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); Aggghhhh!!! Any other suggestions? Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted December 13, 2008 Share Posted December 13, 2008 Try using the filemanager / permissions control from your ISP's admin panel. not the shop admin panel. Sometimes filezilla/cuteftp just will not change permissions. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
charmed-imsure Posted December 13, 2008 Author Share Posted December 13, 2008 Try using the filemanager / permissions control from your ISP's admin panel. not the shop admin panel. Sometimes filezilla/cuteftp just will not change permissions. I have no difficulty changing permissions on any other file. My ISP reset all my permissions for me too but I still can't change this particular file. I can't delete it either. I can rename it but it make no difference because when I upload the file that needs to be there, it doesn't seem to be being read. I'm not trying to do anything via my shop admin panel - reason being is because I have no admin panel - this is what the problem is, I can not get into my admin, I get the error as mentioned before. Have a look: www.just-keyrings.co.uk/admin That's all I see now & it's because (I believe) this configure.php file can't be changed, at the moment it's looking at the wrong server, I can't change it. Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted December 13, 2008 Share Posted December 13, 2008 Do you have a configure file in /admin/includes/local? Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
charmed-imsure Posted December 13, 2008 Author Share Posted December 13, 2008 Do you have a configure file in /admin/includes/local? No I don't! Should there be one there? I have 1 readme file and that's all. Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted December 13, 2008 Share Posted December 13, 2008 Post lines 20 to 24 of you configure.php Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
charmed-imsure Posted December 13, 2008 Author Share Posted December 13, 2008 Post lines 20 to 24 of you configure.php Line 20: define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); Line 24 is blank! But line 25 which would be 24 if I take the break out reads: define('DB_SERVER', '213.171.200.54'); Link to comment Share on other sites More sharing options...
charmed-imsure Posted December 13, 2008 Author Share Posted December 13, 2008 Line 20: define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); Line 24 is blank! But line 25 which would be 24 if I take the break out reads: define('DB_SERVER', '213.171.200.54'); Here's my whole congifure.php file, I've not posted the last 6 lines as that all includes my personal details, but here's the rest. <?php define('HTTP_SERVER', 'http://www.just-keyrings.co.uk'); define('HTTPS_SERVER', 'http://www.just-keyrings.co.uk'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'www.just-keyrings.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'www.just-keyrings.co.uk'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); 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', 'pub/'); define('DIR_FS_CATALOG', '\\IIS6119\domains\j\just-keyrings.co.uk\user\htdocs\'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); I've successfully uploaded this into admin/includes but just can not overwrite or delete that darn includes/ one... that config file is currently the original file that comes with OScommerce so it's pointing to everything incorrectly. Link to comment Share on other sites More sharing options...
charmed-imsure Posted December 13, 2008 Author Share Posted December 13, 2008 Line 20: define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); Line 24 is blank! But line 25 which would be 24 if I take the break out reads: define('DB_SERVER', '213.171.200.54'); This is also what my .htaccess file says - is this all correct? this one is in includes/ # $Id: .htaccess 1739 2007-12-20 00:52:16Z hpdl $ # # This is used with Apache WebServers # The following blocks direct HTTP requests in this directory recursively # # For this to work, you must include the parameter 'Limit' to the AllowOverride configuration # # Example: # #<Directory "/usr/local/apache/htdocs"> # AllowOverride Limit # # 'All' with also work. (This configuration is in your apache/conf/httpd.conf file) # # This does not affect PHP include/require functions # # Example: http://server/catalog/includes/application_top.php will not work <Files *.php> Order Deny,Allow Deny from all </Files> Link to comment Share on other sites More sharing options...
charmed-imsure Posted December 13, 2008 Author Share Posted December 13, 2008 Just to quickly point out: My ISP has also attempted to delete this configure.php from their server end & they also encounter the same problem... Link to comment Share on other sites More sharing options...
charmed-imsure Posted December 13, 2008 Author Share Posted December 13, 2008 Just to quickly point out:My ISP has also attempted to delete this configure.php from their server end & they also encounter the same problem... I've partially resolved this now. I have my admin back. I just took the original admin/includes/configure.php from oscommerce, changed the script so it points to the right server & re-uploaded it to that location, my admin came back, however, I've still got terrible errors in that I have no file manager & can not do back ups. I think this is the bit where the other configure file comes into play??? Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted December 13, 2008 Share Posted December 13, 2008 Here's my whole congifure.php file, I've not posted the last 6 lines as that all includes my personal details, but here's the rest. <?php define('HTTP_SERVER', 'http://www.just-keyrings.co.uk'); define('HTTPS_SERVER', 'http://www.just-keyrings.co.uk'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'www.just-keyrings.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'www.just-keyrings.co.uk'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); 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', 'pub/'); define('DIR_FS_CATALOG', '\\IIS6119\domains\j\just-keyrings.co.uk\user\htdocs\'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); I've successfully uploaded this into admin/includes but just can not overwrite or delete that darn includes/ one... that config file is currently the original file that comes with OScommerce so it's pointing to everything incorrectly. Lets stick to one problem at a time. Is this configure.php above currently up on your site in E:\domains\j\just-keyrings.co.uk\user\htdocs\admin\includes\configure.php? Because that is the one with the error. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
Guest Posted December 13, 2008 Share Posted December 13, 2008 This is also what my .htaccess file says - is this all correct? this one is in includes/ I do not think that htaccess works on windows servers. Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted December 13, 2008 Share Posted December 13, 2008 I just tried this in google htaccess windows 2 million odd hits The first one contains this... It is quite simple to use .htaccess on Windows. Simple instructions with screenshots here. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
Guest Posted December 13, 2008 Share Posted December 13, 2008 I just tried this in google htaccess windows 2 million odd hits The first one contains this... It is quite simple to use .htaccess on Windows. Simple instructions with screenshots here. That refers to apache (which is the same as using XAMP or WAMP), what about IIS? Link to comment Share on other sites More sharing options...
charmed-imsure Posted December 13, 2008 Author Share Posted December 13, 2008 Lets stick to one problem at a time. Is this configure.php above currently up on your site in E:\domains\j\just-keyrings.co.uk\user\htdocs\admin\includes\configure.php? Because that is the one with the error. This what my admin/includes configure file looks like now & I now have my admin back but I have loads of errors in it. Reason being is because the other configure.php file still points to the old server which was nas32ent, it should now be pointing to IIS6119 but I can't do anything with that file & there lies my problem... Here's the new updated admin/includes/configure.php though & this gave me my admin section back (stars in place of my personal info) <?php /* $Id: configure.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', ''); // 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', '/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/'); // define our database connection define('DB_SERVER', '213.171.200.54'); define('DB_SERVER_USERNAME', '************'); define('DB_SERVER_PASSWORD', '************'); define('DB_DATABASE', '**********'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted December 13, 2008 Share Posted December 13, 2008 Window/apache/htaccess work. IIS and htaccess do not work together. For IIS and access control you could try this link http://ask.metafilter.com/66260/Easiest-wa...trol-with-IIS-6 Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
Guest Posted December 13, 2008 Share Posted December 13, 2008 Window/apache/htaccess work. IIS and htaccess do not work together. For IIS and access control you could try this link http://ask.metafilter.com/66260/Easiest-wa...trol-with-IIS-6 Only mentioned it because the OP had define('DIR_FS_CATALOG', '\\IIS6119\domains\j\just-keyrings.co.uk\user\htdocs\'); in the configure.php file and asked about htaccess. I don't think the absolute paths are specified correctly, but will leave that for you to sort out. Link to comment Share on other sites More sharing options...
charmed-imsure Posted December 13, 2008 Author Share Posted December 13, 2008 Right - I have my admin back but I have lost a lot of files & I no longer have file manager or images etc. They are all plagued with errors. My payment, shipping & all sorts of modules have disappeared. I know exactly the problem but I can't find a fix. The problem is with this: <?php define('HTTP_SERVER', 'http://www.just-keyrings.co.uk'); define('HTTPS_SERVER', 'http://www.just-keyrings.co.uk'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'www.just-keyrings.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'www.just-keyrings.co.uk'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); 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', 'pub/'); define('DIR_FS_CATALOG', '//nas32ent/domains/j/just-keyrings.co.uk/user/htdocs/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DB_SERVER', '**********); define('DB_SERVER_USERNAME', '*********'); define('DB_SERVER_PASSWORD', '************'); define('DB_DATABASE', '************'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> That nas32ent needs to be IIS6119. The rest point to the right server, the IPaddress of the server is correct, it's just that line that's causing all the problems. Now, I can change it, I can do what I like to it but I can't overwrite the file currently in htdocs/includes (where it needs to be). I can't change permissions, I can't do a thing. I can't delete it. I can rename & upload a correct file, but everything still tried to look at this original file. I completely messed up while this file is incorrect. My ISP can not change or delete it either, they get the same errors. Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted December 13, 2008 Share Posted December 13, 2008 Try using the filemanager / permissions control from your ISP's admin panel. not the shop admin panel. Sometimes filezilla/cuteftp just will not change permissions. Have you done this yourself? Or did you rely on your ISP? Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
charmed-imsure Posted December 13, 2008 Author Share Posted December 13, 2008 Have you done this yourself? Or did you rely on your ISP? The ISP had to get an engineer to reset my FTP permissions so I have full control & I should be able to set them now myself. This one file can not be changed at all & I'm stuck. I use IPswitch Pro as my FTP program & never had a problem. When you initially install OSCommerce, you have to tell it your server name, user & password etc... this is saved into the htdocs/includes/configure.php file. This is the one I can't change. It's currently looking at the old server but I need it to point to the new one. My problem is, I can't do anything with this file, can't delete it, overwite it or anything. I renamed it to b*ll*cks.php, uploaded the correct configure.php & everything is still being guided by the old b*ll*cks.php. So even renaming it made no difference. Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted December 13, 2008 Share Posted December 13, 2008 Try putting your config files in admin/includes/local and /includes/local Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
charmed-imsure Posted December 13, 2008 Author Share Posted December 13, 2008 Try putting your config files in admin/includes/local and /includes/local Done - no difference at all, still the same :-( Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.