Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Write to file error on setup


Guest

Recommended Posts

Posted

I set up my oscommerce and it looked good, but I need to set up a test directory where I can sandbox things before putting them into full production. So I set up a folder in public_html and called it "staging" and then set up my dreamweaver to use public_html/staging as the remote test site. It works fine but at the top of the page I get the following error when going to url/staging/index.php:

 

"Warning: I am able to write to the configuration file: /catalog/public_html/staging/includes/configure.php. This is a potential security risk - please set the right user permissions on this file."

 

Is this a normal side effect of having osCommerce installed to public_html/staging? I don't get this error when I use the url/index.php address.

 

Thanks,

~Bubblesort

Posted

osC checks if it is able to write to your configure.php files, and complains if it can. It's a security measure to protect them against accidental or malicious change by osC (due to any uncaught injections in user data). Your public setup must have had someone go in and make the configure.php files "read only", while you didn't do that on your test setup (they're still read-write by default).

 

By the way, Dreamweaver is a miserable choice for editing and uploading/downloading files. It's all too easy to mess up a file. Learn to use a real editor (Notepad++, ViM, or even plain old Notepad), and an FTP client (FileZilla seems to be the wide favorite).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...