Forums / Installing on a Windows Server / configure.php file error on Windows NT server

configure.php file error on Windows NT server

Locked

Views: 6,158

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
4 Jul 2006, 9:01 PM
#1
doubletiger avatar

doubletiger

Zen Follower

Join Date:
Apr 2005
Posts:
199
Plugin Contributions:
0

configure.php file error on Windows NT server

Hi, just fresh installed a zen cart v1.3.0.2 sucessfully, but the error message "Warning: I am able to write to the configuration file: D:\webs\jessicasjewellery.co.uk\html/includes/configure.php. This is a potential security risk - please set the right user permissions on this file (read-only, CHMOD 644 or 444 are typical)." appear. I contact the host and they had disable this file and also prove they had doen so indeed. the host said "I am not sure how the shopping cart determines file permissions. If it uses php function to check file permissions, the warning will always appear because the function is not compatible with Windows NT file system."

now the error message is staying on 1st page of zen cart site, it won't go away.

does any one know how to fix it?

thank you very much in advance!

5 Jul 2006, 1:25 AM
#2
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: configure.php file error on Windows NT server

Your hosts are talking nonsense. If the file permission is set correctly then the error message will go away. You should be able to set the permission yourself (even on a Windows server) via your Web Hosting Control Panel - which should have a feature called File Manager which you can use to set file permissions. Try 644 to start and if that doesn't work then try 444 or 400.

Vger

5 Jul 2006, 8:23 AM
#3
doubletiger avatar

doubletiger

Zen Follower

Join Date:
Apr 2005
Posts:
199
Plugin Contributions:
0

Re: configure.php file error on Windows NT server

hi, it is my client and the host is easyspace, uk host. it does not have file manager in control panel. i will ask them again to try.

thanks.

5 Jul 2006, 1:26 PM
#4
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: configure.php file error on Windows NT server

EasySpace - explains a lot.

Vger

5 Jul 2006, 1:40 PM
#5
doubletiger avatar

doubletiger

Zen Follower

Join Date:
Apr 2005
Posts:
199
Plugin Contributions:
0

Re: configure.php file error on Windows NT server

Hi, Vger, do you think esayspace is bad? and are you sure it can be disable on Windows NT server? have ever installed zen cart or host zen cart on windows NT? I believe you are a UK host as well, may check your hosting plan late.

thanks!

5 Jul 2006, 2:02 PM
#6
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: configure.php file error on Windows NT server

Hosting any dynamic php based site on a Windows server wouldn't be my first choice. I have used them in the past, and have to use them sometimes when I do custom work for people hosting their sites on them - but Apache with a Unix or Linux operating system would always be my first choice for PHP based sites.

My experience of Easy Space is with people leaving them - and that can cause problems. Unless they have changed their policies they are one of the few firms that charge for things like DNS repointing and IPS Tag changes (IPS Tags are for .uk domains only).

Vger

5 Jul 2006, 3:49 PM
#7
doubletiger avatar

doubletiger

Zen Follower

Join Date:
Apr 2005
Posts:
199
Plugin Contributions:
0

Re: configure.php file error on Windows NT server

Hi, vger, thank you for sharing experience. do you or does anyone know a script which I can run and test if I can write to this configure.php file?

thank you!

5 Jul 2006, 4:21 PM
#8
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: configure.php file error on Windows NT server

If I had one I wouldn't post it - because your site would then be toast. It's not just 'nice' people who hang out on forums unfortunately.

Vger

doubletiger:

Hi, vger, thank you for sharing experience. do you or does anyone know a script which I can run and test if I can write to this configure.php file?

thank you!

7 Jul 2006, 6:02 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: configure.php file error on Windows NT server

In your hosting controls, do you have anything that allows you to set file permissions?

While running on Windows NT with IIS, you need set the file as "Read-Only" for "Everyone" and the IUSR_xxxxx (Internet Guest Account) user.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Jul 2006, 12:00 PM
#10
andywhittaker avatar

andywhittaker

New Zenner

Join Date:
Sep 2005
Location:
Macclesfield, England
Posts:
17
Plugin Contributions:
0

Re: configure.php file error on Windows NT server

I've just ported my site away from LINUX onto Windows 2003 server. I had the same problem, even though I made sure the file permissions were read-only.

I fixed it by setting the "files" to read-only in Windows Explorer not by using windows security.

Andy Whittaker
Macclesfield, UK
AndyWhittaker.com
ECUFix Zen Cart

8 Jul 2006, 1:06 PM
#11
sicness avatar

sicness

Zen Follower

Join Date:
Apr 2006
Location:
Sofia, Bulgaria
Posts:
195
Plugin Contributions:
0

Re: configure.php file error on Windows NT server

OFF topic

for Windows 2003 server its a better Idea to use Apache2triadCP it has all u need.

First u have to stop IIS or all web ftp and pop smtp for windows if u gonna use all of them install apache and everything will be better.
for mail use hmailserver for mail, for ftp server u can use Bullet FTP server.

If u have problems with configuration contact me via ICQ

Negative feelings were burned by the progressive increase of Euphoria

8 Jul 2006, 4:52 PM
#12
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: configure.php file error on Windows NT server

Definitely 'Off Topic' as the poster is on an online Windows server, which is more than likely a shared server. So they won't have the option of changing it to Apache.

If they were using an offline server then XAMPP is much better then Apache Triad anyway.

Vger

10 Jul 2006, 2:06 AM
#13
robax avatar

robax

Zen Follower

Join Date:
Mar 2006
Posts:
187
Plugin Contributions:
0

Re: configure.php file error on Windows NT server

It's hard getting Windows help in a loonix crowd, so I'll do my best for you.

I installed ZC1302 for the first time on Webhost4life on Server 2003/IIS6 and it went flawlessly.

If you haven't got your own control panel with full file management, then write to your host and have them set permissions on these files:

(your site) /admin/includes/configure.php
(your site) /includes/configure.php

to:

Read Only

for these users:

IUSR_xxxxx 
Everyone

Where xxxxx is usually your account name

If you need the files to be writable again for some reason, have them set the permission to (read/write/execute):

RWX

Those are the Windows permissions names for all the chmodxxx stuff.

Note: Whilst there's no need to switch to Linux/Apache, I would still advise getting a hosting account with a full control panel. Webhosts are so cheap these days. The one I use is cheap and has all the right facilities.

Good luck,
Rob