Welcome, Guest
  • Author Topic: Can't Change permissions on Guestbook.txt  (Read 10727 times)

    Jeff R

    • Server what's that
    • *
    • Posts: 9
      • View Profile
      • Email
    Can't Change permissions on Guestbook.txt
    « on: 03/25/02, 01:02 »
    Hi,

    This looks to be a great little guest book!  I am running an IIS 5.0 server on Windows XP.  I can't figure out how to Change the permissions of the 'GuestBook.txt' file to 777.  Since I am serving locally I can't ftp with ws_ftp to do the permissions change.  The web guest book appears on my web site but it is only partially functional due to the permissions restriction.  Can you help?

    Thanks in advance!! ;D

    Flash-db

    • Administrator
    • Systems Administrator
    • *****
    • Posts: 1876
      • View Profile
      • Flash-db.com
    Re:Can't Change permissions on Guestbook.txt
    « Reply #1 on: 03/25/02, 01:30 »
    I always get confused with Permissions on IIS - With some IIS web hosting companies they have a little administration tool that lets you change the permissions online which makes it easier for me - since I'm really only familiar with Permissions on Unix based servers.

    Anyways you should be able to open up your "Web Manager" user interface and click on the folders and files you want to change the permissions of.  Usually their's some "Read" and "Execute" Access level checkboxes.  

    Try playing around with these Settings - and try to change the script to "Execute" settings.  

    You might also want to try right clicking on the File directly and make sure that "Read Only" is not checked off.

    Again - one of these might/should work - If you find a definite way that works for you - please post it here so others can use that for future reference.

    Flash-DB

    BurtonRider1983

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 864
    • Rider-4-Life
      • AOL Instant Messenger - BurtonRider1983
      • View Profile
      • Flash Developer's Corner (being built)
    Re:Can't Change permissions on Guestbook.txt
    « Reply #2 on: 03/25/02, 11:19 »
    I am not sure if this is exactlyt what you are talking about because I have nver run a local server :  To set the Write permission for the FTP virtual directory

    -Click Start, point to Programs, point to Administrative Tools, and then click Internet --  Services Manager.
    -In the console tree, double-click the server name.
    -Double-click Default FTP Site, and then click PBSData.
    -On the Action menu, click Properties.
    -On the Virtual Directory tab, select the Write check box, and then click OK for
     Windows 2000 to register the changes.


    Hope that this gives you a little help.  If this is not what you are talking about then tell me and I will try and give you some help.

                                                                                      -Ian

    Jeff R

    • Server what's that
    • *
    • Posts: 9
      • View Profile
      • Email
    Re:Can't Change permissions on Guestbook.txt
    « Reply #3 on: 03/25/02, 18:28 »
    OK,

    Thanks for the quick responses :D.  I didnt have my server side extensions configured and that was part of the problem (I still can't access the readme.txt thru ftp localy). Now when I load in the guestbook.swf it partially works but still doesn't seem to write to the buestbook.txt file.  Running the guestbook.php in my browser nets me these errors:Warning: Undefined variable: Name in C:\Possum Grin Site\guestbook\GuestBook.php on line 11

    Warning: Undefined variable: Email in C:\Possum Grin Site\guestbook\GuestBook.php on line 12

    Warning: Undefined variable: Comments in C:\Possum Grin Site\guestbook\GuestBook.php on line 13

    Warning: Undefined variable: Website in C:\Possum Grin Site\guestbook\GuestBook.php on line 15

    Warning: Undefined variable: Submit in C:\Possum Grin Site\guestbook\GuestBook.php on line 26

    Warning: Undefined variable: NumLow in C:\Possum Grin Site\guestbook\GuestBook.php on line 71

    Warning: Undefined variable: NumHigh in C:\Possum Grin Site\guestbook\GuestBook.php on line 71
    &TotalEntries=0&NumLow=&NumHigh=&GuestBook=
    Warning: Undefined variable: NumLow in C:\Possum Grin Site\guestbook\GuestBook.php on line 72

    Warning: Undefined variable: NumHigh in C:\Possum Grin Site\guestbook\GuestBook.php on line 72

    If I click the flash "next 10" button I get these guest book entries:
    1.Warning: undefined index: 10 in c:\possum grin site\guestbook\guestbook.php on line 73.
    2.  The rest of the message are the same as above except the line # changes!

    Does this info help you guys to continue to help me getting the guest book operational?

    Thanks again for you help! ;D

    Jeff R

    • Server what's that
    • *
    • Posts: 9
      • View Profile
      • Email
    Re:Can't Change permissions on Guestbook.txt
    « Reply #4 on: 03/25/02, 21:59 »
    Well I figured it out and now that it is working, it is FANTASTIC.  Thanks to everyone at Flash-DB for giving this guest book to us and supporting it!!!! ;D :D ;D

    OK, now that my excitement is over, here is what I did.

    This is for anyone serving a web site from their local computer using Windows 2000/XP and IIS w/PHP.

    1. In windows XP/2000 go in to the folder "GuestBook".
    2. Inside the folder find the GuestBook.txt file.  
    3. Right click it and select "Security" tab.  
    4. Add internet guest account (if it's not already present) and put a check in  
       the "write" box.
    5. That's it, you should be good to go!

    Note:  Your web site files (root) have to be on an NTFS partition for the permissions tab to be in the (right click) properties of the GuestBook.txt file!  NTFS allows permissions to be set on all files where FAT 32 or 16 doesn't.  :)

    I hope this helps some of ya'll out and thanks again to FLASH-DB

    BurtonRider1983

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 864
    • Rider-4-Life
      • AOL Instant Messenger - BurtonRider1983
      • View Profile
      • Flash Developer's Corner (being built)
    Re:Can't Change permissions on Guestbook.txt
    « Reply #5 on: 03/25/02, 22:05 »
    I was just about to post the solution to your problem and you beat me to it....It took me a while to find the answer, but I am glad that you got it working on your own.  You tend to learn alot more if you have to find answers yourself, now you know how to change your permissions in the future.  Thankyou for posting the solution.  Don't forget to post your site in the showcase board when you have it ready. Lates.
                                                                              -Ian

    neoaquino

    • Server what's that
    • *
    • Posts: 5
      • View Profile
      • Email
    Re:Can't Change permissions on Guestbook.txt
    « Reply #6 on: 04/11/02, 02:33 »
     :'( Guys, I have the same problem with Jeff, but I'm glad the he already figure it out...what about windows98, XP is too much expensive for me...how do you change permissions to windows98...by the way I'm using a Personal Web Server...I need help on this guys....

    bare with me, i'm still a novice :)

    by the way, regarding  this..."Add internet guest account (if it's not already present)"what internet guest account that you will add?

    thanks
    « Last Edit: 04/11/02, 02:57 by neoaquino »

    Flash-db

    • Administrator
    • Systems Administrator
    • *****
    • Posts: 1876
      • View Profile
      • Flash-db.com
    Re:Can't Change permissions on Guestbook.txt
    « Reply #7 on: 04/11/02, 09:47 »
    I don't think this would be the exact same with PWS - IIS has quite a few more options and that is probably one of them.  

    -Anyways thank's Jeff R, for documenting that.  That is one area that I've never been great with IIS (and setting the correct permissions/settings for that) - But in the next tutorial I do I'll be sure to add some of that documentation that you provided here.  Actually I was thinking about finishing off that Forum (glorified guestbook) and I might need an IIS tester for that - if your interested.

    As far as PWS - I would still recommened at least trying Apache on Windows - the new Apache 2.0 server is supposed to work well with windows systems - and be alot more powerful then the older 1.3.+ versions.  http://httpd.apache.org/
    Flash-DB

    lmanga moned

    • Server what's that
    • *
    • Posts: 3
      • View Profile
      • Email
    simmilar prob with apache2 on win2k
    « Reply #8 on: 04/23/02, 05:38 »
    well iīve tested the guestbook on a linux plattformand it worked well ..so thx for the tutorial to everyone on flash-db...
    but as i tried on windows (win2k apache2) i got this error message

    [Tue Apr 23 12:16:13 2002] [error] [client 127.0.0.1] PHP Warning:  Undefined variable:  Name in F:\Apache2\htdocs\dok\guest\GuestBook.php on line 7
    [Tue Apr 23 12:16:13 2002] [error] [client 127.0.0.1] PHP Warning:  Undefined variable:  Email in F:\Apache2\htdocs\dok\guest\GuestBook.php on line 8
    [Tue Apr 23 12:16:13 2002] [error] [client 127.0.0.1] PHP Warning:  Undefined variable:  Comments in F:\Apache2\htdocs\dok\guest\GuestBook.php on line 9
    [Tue Apr 23 12:16:13 2002] [error] [client 127.0.0.1] PHP Warning:  Undefined variable:  Website in F:\Apache2\htdocs\dok\guest\GuestBook.php on line 11
    [Tue Apr 23 12:16:13 2002] [error] [client 127.0.0.1] PHP Warning:  Undefined variable:  Submit in F:\Apache2\htdocs\dok\guest\GuestBook.php on line 26
    [Tue Apr 23 12:16:13 2002] [error] [client 127.0.0.1] PHP Warning:  Undefined variable:  NumLow in F:\Apache2\htdocs\dok\guest\GuestBook.php on line 80
    [Tue Apr 23 12:16:14 2002] [error] [client 127.0.0.1] PHP Warning:  Undefined variable:  NumHigh in F:\Apache2\htdocs\dok\guest\GuestBook.php on line 80
    [Tue Apr 23 12:16:14 2002] [error] [client 127.0.0.1] PHP Warning:  Undefined variable:  NumLow in F:\Apache2\htdocs\dok\guest\GuestBook.php on line 81
    [Tue Apr 23 12:16:14 2002] [error] [client 127.0.0.1] PHP Warning:  Undefined variable:  NumHigh in F:\Apache2\htdocs\dok\guest\GuestBook.php on line 81

    it seams like the only part the php script is checkin right is the TotalEntries variable ...


    i know you said to change the permision for the text file (rightMouseClick on the file /sec/internetuser or account )but as far as i didnīt install IIS on my maschine i wonīt have the popup (the possibility) to set a web permision for a file dir or whatever

    anyway i donīt think thatīll work fine if  install IIS and Apache on the same PC...
    ( a also donīt think anyone would ever wanna change to IIS after watching apache in action -->apacheīs the king anyway)
    so i also get the docof apache and it seams that the only thing i can do is to create restriction for some dir i wish but as far as i let it by default it should work without errors as long as the files (*.swf , *.txt , *.php, *.html) are in the same subdir of the apaches default "htdocs".


    ...so i tougth maybe some one can help .....
    maybe there are only some little changes a have to make to gettin work on my home pc too...

    plz notice that apache and php is workin well ...i got no other errors in my apache* .logs and other appz i wrote in php worked well too ....


    ps ..thats what i get if i only parse guestbook.php.....  

    &TotalEntries=1&NumLow=&NumHigh=&GuestBook=

    Flash-db

    • Administrator
    • Systems Administrator
    • *****
    • Posts: 1876
      • View Profile
      • Flash-db.com
    Re:Can't Change permissions on Guestbook.txt
    « Reply #9 on: 04/23/02, 13:49 »
    Hey What version of PHP are you using.

    Do you have Register Globals Turned on or OFF.  You can check this in the PHP.ini file or by creating a script like

    <?
    phpinfo();
    ?>

    I really wasn't that careful when i did the guestbook script and with the newer versions of PHP 4.1+ I think Register Globals is turned OFF by default.  

    When register globals is turned off you have to be a lot more careful about declaring variables and where their from, for example:

    $Submit = $HTTP_POST_VARS[Submit];

    Would make sure it's coming from POST.  You need to use something like this for each of your variables if Register globals is turned off - Probably easier if you just turn register globals on for now though.
    Flash-DB

    lmanga moned

    • Server what's that
    • *
    • Posts: 3
      • View Profile
      • Email
    DAMMM THATīS IT
    « Reply #10 on: 04/30/02, 07:06 »
    well thatīs it ......i have changed the php.ini globals and it workes on in2k with apache2 too ..
    oh i use the latest php4.2


    sooo thanks for the tutorial and the grate support ......maybe you should mention it for the other users .......(register globals)

    -------->thx---->thx---->
    ps.iīll post my address in here as soon as my page īll be finished

    Karl

    • Server what's that
    • *
    • Posts: 12
      • View Profile
      • Email
    Re:Can't Change permissions on Guestbook.txt
    « Reply #11 on: 05/07/02, 18:49 »
    Hi All

    Just found this amazing site and have spent the last 3 hours on it...great stuff.

    I was reading this post and although I am using Windows 2000 I don't have the "security" tab displayed when I right click?

    Am I stuck on making this work on a W2000 server or can I find an alternative for this?

    Thanks in Advance

    Karl

    Jeff R

    • Server what's that
    • *
    • Posts: 9
      • View Profile
      • Email
    Re:Can't Change permissions on Guestbook.txt
    « Reply #12 on: 05/08/02, 16:38 »
    Hi Karl,

    On Windows 2000 to get the security tab to show up when you right click a file or folder, you must have your hard drive partition formated to the windows NTFS file system.  Additionally your web site "root folder" should be located on this NTFS partition!  I am assuming, from your question, that you are running 2000 Pro on a fat 32 partition! To answer the last part of your question NO you DO NOT have to be running W2000 server.  You can do everything you need on W2000PRO!

    Hope this helps!! :D

    Jeff R
    « Last Edit: 05/08/02, 16:40 by Jeff R »

    BurtonRider1983

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 864
    • Rider-4-Life
      • AOL Instant Messenger - BurtonRider1983
      • View Profile
      • Flash Developer's Corner (being built)
    Re:Can't Change permissions on Guestbook.txt
    « Reply #13 on: 12/22/02, 23:43 »
    If your security tabs are not showing up try this.....

    By default the siplified sharing is turned on, thus the security tabs won't show up.  To turn them off.....

    Start > My Computer > Tools menu > Folder Options > View tab > Advanced Settings  uncheck simple file sharing check box > click Ok.

    Marlon Peņa

    • Server what's that
    • *
    • Posts: 5
      • View Profile
      • Email
    Re:Can't Change permissions on Guestbook.txt
    « Reply #14 on: 08/04/03, 17:05 »
    Hello buddies

    I have done everything you have posted here, but my page has not worked, once i have filled the fields in the form and press submit i have a message like this "cannot write Guestbook.txt..."

    I've noticed that my php is working but I donīt know what is happening. I'm actually running in Windows XP with IIS and PHP 4.3.3 , and i have checked rights to "write" in everywhere but nothing.

    Please tell me what else can i do to make this work...


    thank you........