Page 1 of 1

Can't write to entries.txt

Posted: Mon Jul 17, 2006 8:39 pm
by jimmyL
Script URL:
Version of script: 1.41
Version of PHP: 5
Hosting company: Myself
Have you searched THIS FORUM for your problem:
(if not please do before posting) Yes, and google for hours
If so, what terms did you try: chmod, entries.txt

Write your message below:

I'm using Windows XP home and it won't write to entries.txt even though you can't change file permissions with XP home. What's wrong with it? Is it apache that doesn't understand all the files have total read and write permission? I've been googling for 4 hours. I'm just trying to setup a temporary server and seems like I'm biting off more than I can chew. But I keep getting,

"Can't open the log file (entries.txt) for reading! CHMOD this file to 666 (rw-rw-rw)!"

Please help.

Posted: Mon Jul 17, 2006 9:19 pm
by Klemen
Well not sure how to set it up in XP, but you can mark files "read only" right? Make sure "read only" is unchecked in file properties. The script has to have permission to write to the entires.txt file, not sure how to set it up in Win XP...

Posted: Mon Jul 17, 2006 9:27 pm
by jimmyL
Yes, the read-only is unchecked. I'm thinking of finding a web host rather than me doing it but I've spent so much time getting configured what I got. I've had some bad luck the past day setting up but thanks to some helpful people I keep pushing on. But this seems like my last barrier for my site. It may be a config problem with apache but for the likes of me, I can't figure it out. I've gotten apache to pretty much allow anything as far as I know but then again, my only experience with it is just from today and yesterday.

Posted: Mon Jul 17, 2006 10:39 pm
by Klemen
Two things to try:

Copy/paste code below into a text file:

Code: Select all

<?php

chmod('entries.txt',0666);

echo "Done, now try posting to GBook...";

?>
save it as "chmod.php", upload into your GBook folder, call it from your browser then try posting to Gbook again.


- OR -

If that doesn't work try what is explained on the URL below:
http://www.experts-exchange.com/Web/Web ... 97258.html

(Scroll down and look where it says Accepted Answer)

Come back when you try both and let me know how it goes.

Posted: Tue Jul 18, 2006 6:54 am
by jimmyL
Neither worked. I have no security tab in XP home. Like I said, there is no way at all to set the permissions with XP home. Perhaps it's apache I need to configure but if so, I haven't found out how yet. I just got a free web host. It sucks but it's ok for now. Thank you so much for you help. I still would like to get my own server going and there's so many limits to a free web host usually. I see now why they have to have professionals to run a tight and secure sight. There's a lot more to it than I thought.

Edit: Then again, maybe I won't use a free webhost. It's down again. Even words like processor are banned. Arghh, it's not like I have anything important to share that I need to pay for hosting. Maybe I need to boot up in my linux partition to try it.

Posted: Tue Jul 18, 2006 10:53 am
by Klemen
Hi,

Well I never really used Windows for hosting so I'm kind of guessing here. I have Win XP pro on my PC and what I can do is:

- right click on GBook folder
- select "properties" and "Sharing" tab
- under "Network sharing and security" I clicked "Just enable sharing"
- then I can check "Share this folder on the network" and "Allow network users to change my files"

Not I don't know exactly what that will do, but it's one thing to try.

Perhaps you should switch to Linux, yes :wink:

I also have few free hosts listed here, might want to try that:
http://www.phpjunkyard.com/hosting.php

Posted: Tue Jul 18, 2006 12:01 pm
by jimmyL
Yes, I'm doing just that. I stopped last week after using kubuntu for a couple weeks since I got no sound. It's back in business so I'm gonna try it again. You can't really have a decent secure server just using XP home anyway.