sjb47 Posted September 20, 2002 Posted September 20, 2002 More of a unix question b/c I'm an utter Unix newbie. Did a clean install of 2.2 onto a shared server environment following the instructions at oscdox. All went well but when I open the catalog, i get the following warning: Warning: I am able to write to the configuration file: <path>/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. where <path> is obviously the full path to /catalog. Now, the installation told me to use chmod 706 on configure.php and if that didn't work, chmod 777. Have done both and still getting this message. What should I set the permissions to on this file? This is a Redhat 7.2 box using Apache modified for the Ensim control panel. TIA, Steven
Guest Posted September 20, 2002 Posted September 20, 2002 You need to set the permission son the configure.php to be read chmod 777 is r-w-x if you use an ftp client ie.. wsftp it will let you change the rights on a file by right clicking on it and select chmod it's the answere I've foud for us NT gurus dabling in the unix/linux realm.
sjb47 Posted September 20, 2002 Author Posted September 20, 2002 Wowie. Thanks mucho. Changed it to 755 and the warning went away. Is this a good setting? Steven
sfatula Posted September 20, 2002 Posted September 20, 2002 755 means the creator (owner) of the file has all access, and the group and others have read and execute access. So, only the owner has write access. So, sounds perfect to me. Steve
sjb47 Posted September 21, 2002 Author Posted September 21, 2002 The docs at http://www.oscdox.com suggest chmod 644 (owner read/write, other and groups read) for the configure.php in the catalog and the admin application. Steven
pascal.a Posted December 14, 2003 Posted December 14, 2003 Hi I have the same problem, how do i set permissions in dreamweaver mx?
djmonkey1 Posted December 14, 2003 Posted December 14, 2003 Pascal- I don't believe that Dreamweaver has that function, though I don't know why not. I've looked and looked for it, but to no avail, so I still use WS_FTP to chmod files. If anyone knows of how to use Dreamweaver to chmod (if it can) please let us know! Cheers, Stew Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread.
TomCavendish Posted February 17, 2004 Posted February 17, 2004 You 'can' do it manually in DW using the 'site FTP_log' although it's not ideal. Search on Google for 'dreamweaver chmod' for more info about what to type.
pfaustino Posted May 14, 2004 Posted May 14, 2004 This is strange because I have oscommerce running on several servers. And on all of the stores. they are set to 644. But one of the servers, it is giving the error message even if it's set to 644. I now have it set to 444 to remove the red warning at the top. But everytime I want to edit this file, I have to first set it to 644, make the edit, then reset to 444. The weird thing is this only started happening recently. I haven't touched the code in weeks. Could my servers admins have been playing around with permissions? What is causing this?
ljh Posted February 3, 2005 Posted February 3, 2005 recently had same problem as you - am using shared hosting and they started using phpsuexec this is info they gave me maybe same thing We are running php with SuExec to ensure that all php scripts are run under the username of the persons website. For example, if your main login name is "example", then all your php Scripts will be run as "example".In "real life" circumstances, this just means that you need to ensure that your php scripts can NOT be overwritten by "group" and "other/world" users (so in your "FTP File Permissions" selection box - ensure that the WRITE boxes for "group" and "other/world" are NOT ticked/selected). If your FTP client shows the permissions as a set of numbers, then the "maximum permission level" is 755. We recommend people use levels of 755 and 644. As an added security measure, the directory the script is in should have a maximum permission of 755.
KrackMonkey Posted February 3, 2005 Posted February 3, 2005 All of this makes sense to me and I fully understand it, but my biggest question is, when you pull up your site that you own in your browser, how does the site know that YOU are the owner and not just some other joe schmoe "other/world" user when trying to access /catalog/admin ??? I havent had any luck in securing via htaccess or through PHP_AUTH... Anybody wanna give me a hand?
sufi Posted April 20, 2005 Posted April 20, 2005 hi my site tto have this problem server win 2003 and it not undertanding the 755 how can i remove this error alert
Winterchild Posted April 20, 2005 Posted April 20, 2005 I'm on a win 2003 server too This seems to have worked for me: create a php file with <?php chmod("configure.php", 0400); ?> upload it to the folder where configure.php is Run the script: Let's say you called the file this.php and configure is in catalog/includes In your webbrowser : www.myshop.com/catalog/includes/this.php After this remove the this.php from your site Forum search Contributions search Documentation search (note: docs being adapted for MS3, may be different for MS2) 3 tips for better forum searching Want to post? Read this first: osCommerce for dummies Topic name etiquette Basics: Basics for design Right syntax to use near '-20, 20' Cannot re-assign $this Parse error
sufi Posted April 20, 2005 Posted April 20, 2005 <?php chmod("configure.php", 0400); ?> ı didnt understand is it will save this.php?
Winterchild Posted April 21, 2005 Posted April 21, 2005 1. Open a text editor (notepad) 2. copy paste the above (change the value 0400 to whatever you want e.g. 0755) 3. Save as this.php (or something else) 4. Upload to the folder with includes 5. Run the script 6. See if it still gives a warning on the site 7. Remove script from site Forum search Contributions search Documentation search (note: docs being adapted for MS3, may be different for MS2) 3 tips for better forum searching Want to post? Read this first: osCommerce for dummies Topic name etiquette Basics: Basics for design Right syntax to use near '-20, 20' Cannot re-assign $this Parse error
sufi Posted April 23, 2005 Posted April 23, 2005 does'nt worked :( ı removed warning alert but ı have now else error alert WARNING_CONFIG_FILE_WRITEABLE how can i remove...
sufi Posted April 23, 2005 Posted April 23, 2005 i removed this error form site comletely // check if the configure.php file is writeable ?if (WARN_CONFIG_WRITEABLE == 'true') { ? ?if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { ? ? ?$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); ? ?} ?} remove delete this code from header.php and than again remove yours form langueages page example english.php this code define('WARNING_CONFIG_FILE_WRITEABLE', 'Warning: I am able to write to the configuration file: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.'); it s ok :)
arbitro Posted January 4, 2007 Posted January 4, 2007 i removed this error form site comletely // check if the configure.php file is writeable ?if (WARN_CONFIG_WRITEABLE == 'true') { ? ?if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { ? ? ?$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); ? ?} ?} remove delete this code from header.php and than again remove yours form langueages page example english.php this code define('WARNING_CONFIG_FILE_WRITEABLE', 'Warning: I am able to write to the configuration file: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.'); it s ok :) I had the same problem after moving osc store from one website to another. Changing chmod from 644 to 444 on the config.php files eliminated the error message. It is my understanding that 444 allows no one to write the file. I am curious, though, about what would seem to be an underlying problem. 644 should allow only the owner to write the file. What allows a viewer of the website to have owner's write privileges on these files? Happy new year! Steve
potier Posted April 26, 2007 Posted April 26, 2007 To answer the Creamweaver question, I think this might work: View your files using the remote view, find the configure.php file, right click on it and then select the set permissions option. Hope this helps!
narcolepticdriver Posted August 27, 2007 Posted August 27, 2007 To answer the Creamweaver question, I think this might work: View your files using the remote view, find the configure.php file, right click on it and then select the set permissions option. Hope this helps! I tried this, and for some reason when I look at my 'includes' folder using local view, everything is there and all is fine. But when I look at it using remote view, everything is fine for my site, except for the includes folder which is completely empty. I can't change permissions on files that aren't there! I had the same problem with wsftp...what should I do? Thanks, Mark
narcolepticdriver Posted August 27, 2007 Posted August 27, 2007 Ok, after some more digging I found that I can upload everything to my site except for configure.php which is in the includes folder. Must've been something I did a while back. What should I start with? Mark
jaksmith Posted August 30, 2007 Posted August 30, 2007 changing configure.php did not work for me core 2 extreme x7800[/url] Cerebral palsy KFC Israel
Guest Posted September 6, 2007 Posted September 6, 2007 i removed this error form site comletely // check if the configure.php file is writeable �if (WARN_CONFIG_WRITEABLE == 'true') { � �if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { � � �$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); � �} �} remove delete this code from header.php and than again remove yours form langueages page example english.php this code define('WARNING_CONFIG_FILE_WRITEABLE', 'Warning: I am able to write to the configuration file: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.'); it s ok :) Hi Steve, I tried this and it still comes up any ideas? Becky
Jim_T Posted September 6, 2007 Posted September 6, 2007 I have tried every combination including 000. No luck. Running on a Linux server.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.