D_W Posted January 24, 2007 Posted January 24, 2007 I have had this problem too and have solved it from the advice given above, thanks v much. Probably a daft question however just so I understand what is going on, why do the two configuration.php files need to be protected, as only I have the passwords to ftp the server, and the admin part of the website is also password protected. I guess my question is what danger I am protecting myself against? DW
gkygrl Posted March 27, 2007 Posted March 27, 2007 I was having this same problem with multiple instances. The 444 finally offers an easy solution. Thanks GKYGRL Ask me about my OSCommerce Site which offers discounted Magazine Subscriptions!
drmad Posted March 30, 2007 Posted March 30, 2007 To explain things a little about setting permissions. The CHMOD command used via FTP is only of use on Apache servers with a Unix/Linux operating system. CHMOD is an Apache command and does not work on Windows. If you're on a Windows server then you can CHMOD the files as much as you like via FTP and the settings wil appear to change whilst in reality they remain the same. If you have not already done so you should try using the File Manager in your web hosting control panel to reset permissions. You can also try this method: Create a new text file on your desktop and rename it to chmod.php (ignore the warning about changing the file type). Then put the code below into it, and upload to the root of your osCommerce website. Once you've done that go to the root of your website in your browser and add 'chmod.php' onto the address e.g. http://www.yourdomain.com/chmod.php You won't see anything on the screen but the permissions should have been changed. <?php chmod ("includes/configure.php", 0444); ?> If that doesn't do it then get onto your hosting company. Don't leave the chmod.php file on the server. Vger Great TIP. Worked just fine. I did realise that the CHMOD option through FTP was not changing to 444 (from 644) but I had no idea what was wrong.
FusionControlCentre Posted June 4, 2007 Posted June 4, 2007 Thankyou so much for this! I made a simple change to my config file, uploaded it, and voila! A nice security banner I had never seen before! arrrg. A quick google and here I am. Downloaded that controbution, easy to install and worked great! No more security banner! I tried changing it manually via an FTP client, and it said "CMHOD changes successful" but no dice. This worked awesome. Big pat on the back for you guys. :thumbsup:
e-master Posted June 23, 2007 Posted June 23, 2007 Just want to share what worked for me! I've tried everything on this forum, changing de chmod with my ftp soft, and by the way my server is apache linux, and didn't work I've notice that when i change the permissions with the ftp soft it didn't really change, so I did my last try and it works! I change the permissions using the cpanel>File Manager and bang!! there's no warning sign anywhere in my page! Hope this will help someone! God Bless! :D
cruz.dre Posted October 26, 2007 Posted October 26, 2007 Just a quick note to Vger, you are a legend!! thanks so much for the lil' chmoding code! Thanks again :):)
wandringa Posted November 2, 2007 Posted November 2, 2007 I added a contribution to manage this. http://www.oscommerce.com/community/contributions,2137 I am having this Warning Message issue on one of my sites. This is my second site with the same host provider and I did not have this issue with the first one. My current provider has not been the best to work with on things like this so I installed this contribution. It installed fine and even seems to operate fine, it gives me the Successful message after hitting Update, but the warning message is still there and utility contribution just flips back to Unsecured for both the configure.php and the admin. So I have 2 different questions: 1. I am not a really web site guru, and I have not been able to find the answer or understand the answer from this thread. Does anyone have a suggestion for me? I see a lot about doing a CMHOD on the file to change the premissions and I am not sure how to do this with the host service we use, XO Communication. 2. Can anyone recommend a Hosting service that is well priced, supports osCommerce enough to be helpful and offers a good user interface to manage the admin of the host services? This is what I have liked about XO to this point but the lack of support has killed my loyalty.
Guest Posted December 25, 2007 Posted December 25, 2007 Solution: Change the permissions right on the server, not via an ftp client. Use the file manager your site's control panel to change the permissions if you don't have command line access. This was a bit maddening - I've used OSC a few times and only recently had this problem on a new store. According to my FTP client the permissions were set right, and i was still getting the error. When I went into the control panel I found the config files still had 644 despite what my ftp client was telling me. I set both to 444 on the server and that worked. Thanks to those above that suggested doing it via the control panel - i was starting to think i was losing my mind seeing the error there yet the permissions right in ftp.
mattih5 Posted January 31, 2008 Posted January 31, 2008 If you're using Windows as your test server and you get this error... just do the following: Right click on 'includes/configure.php' Select 'Properties' (A new box will appear...) Select/Tick 'Read-only' Click 'Ok' (Don't forget to do this for both your 'catalog' and 'admin' directories. Viola! All better... Cheers, Tony Cheers, been trying to figure this out for ages. Why does selecting it to "read-only" work, surely if OS Commerce needs to write to it, the file should have this unticked?
Guest Posted January 31, 2008 Posted January 31, 2008 Cheers, been trying to figure this out for ages. Why does selecting it to "read-only" work, surely if OS Commerce needs to write to it, the file should have this unticked? That why is it not ticked for installation.
perthmetro Posted February 21, 2008 Posted February 21, 2008 i set mine to 444 using my cpanel file manager... my ftp client couldn't change it
Guest Posted April 22, 2008 Posted April 22, 2008 Hi- I get the same error message on top when the config.php file is set to 644. So I try and changing it to 444 but it always reverts back to 644. Same with any other ftp program. Any thoughts? thanks in advanced
Guest Posted April 22, 2008 Posted April 22, 2008 Hi-I get the same error message on top when the config.php file is set to 644. So I try and changing it to 444 but it always reverts back to 644. Same with any other ftp program. Any thoughts? thanks in advanced I answered my own question. Go to the servers Cpanel and change the permission there to 444
Guest Posted April 25, 2008 Posted April 25, 2008 sorry i'm a little new to this can someone explain in step by step instructions how to change the permission settings via the admin login.
Guest Posted June 3, 2008 Posted June 3, 2008 quick fix for window users: http://www.oscommerce.com/community/contributions,3131
arunns Posted August 19, 2008 Posted August 19, 2008 Thank you tony If you're using Windows as your test server and you get this error... just do the following: Right click on 'includes/configure.php' Select 'Properties' (A new box will appear...) Select/Tick 'Read-only' Click 'Ok' (Don't forget to do this for both your 'catalog' and 'admin' directories. Viola! All better... Cheers, Tony
caravelle Posted December 5, 2008 Posted December 5, 2008 hmm i allso have tryed to edit the permits but its going back to the 644 both files i have used 3 diffrent FTP programs ...heeelp :rolleyes:
Indy Magnoli Posted March 25, 2009 Posted March 25, 2009 <?php chmod ("includes/configure.php", 0444); ?> I just did this (to both config files) to eliminate this error and now none of my catagories nor items are showing up! What now??? Kind regards, Indy
Indy Magnoli Posted March 25, 2009 Posted March 25, 2009 Bump... Have a look at magnoliclothiers dot com / catalog to see what I mean... Need to fix this asap. Thanks! Kind regards, Indy
bluecell Posted July 6, 2009 Posted July 6, 2009 Hi All I haven't read all the replies above so this may have already been posted. I found this a useful workaround if your FTP client isnt allowing you to CHMOD: http://forum.powweb.com/archive/index.php/t-33359.html Enjoy!
alexander85 Posted July 6, 2009 Posted July 6, 2009 Hi, I have the osCommerce store setup on a Windows based server with IIS6. I have set the permissions to Read for both files. The one for admin/includes/configure.php went away but the one for includes/configure.php still shows. I have looked for answers for some time now on many sites and have yet to find one. Most of the information is for Linux based servers if CHMOD doesn't work, but what to do on Windows server if you have set the permissions correctly yet error still shows? Does anyone know how to fix this?
ahmedraza Posted May 25, 2010 Posted May 25, 2010 If you're using Windows as your test server and you get this error... just do the following: Right click on 'includes/configure.php' Select 'Properties' (A new box will appear...) Select/Tick 'Read-only' Click 'Ok' (Don't forget to do this for both your 'catalog' and 'admin' directories. Viola! All better... Cheers, Tony thanks from me also TONY...........
Tpaul Posted May 25, 2010 Posted May 25, 2010 I had to change my permissions to 644, that did not work so i went to www-/cat/includes/configure.php file and changed the warn=file to false..
Tpaul Posted May 27, 2010 Posted May 27, 2010 I use 444 for the configure.php files. Some say it is overkill, but it works. Other files can be 755. I go to the includes/header.php set this to false, or go to the includes/application_top.php and set to false. Either will work ...
cobwer Posted September 10, 2011 Posted September 10, 2011 I had the same problem when I change the hosting from Linux to Windows. please check it out: http://www.oscommerce.com/community/contributions,3131
Recommended Posts
Archived
This topic is now archived and is closed to further replies.