Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 12-02-2002, 05:19 PM   #1
Member (11 bit)
 
Doobie's Avatar
 
Join Date: Jul 2002
Location: Mexico
Posts: 1,049
Send a message via AIM to Doobie Send a message via Yahoo to Doobie
fqpissed chmod

Ok I have searched the web and have found nothing. Can someone tell me how I would do this?

You now need to chmod the following files to these respective values ...
/config.php - 644
/backend/news.xml - 666
/backend/news.txt - 666


What is chmod (All I have found is that it it Changes file mode)
__________________
Computer: 486
Ram: 8 MB
CD Rom: None
OS: Windows 3.1
Doobie is offline   Reply With Quote
Old 12-02-2002, 05:27 PM   #2
Member (13 bit)
 
DrZaius's Avatar
 
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
Hi Doobie,

What FTP client are you using? You need to change the file permissions to those settings (read, write, execute).
DrZaius is offline   Reply With Quote
Old 12-02-2002, 05:27 PM   #3
Member (12 bit)
 
Paul Victorey's Avatar
 
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
You can do this is 2 ways: 1) By an FTP client, 2) by a telnet client (command line)

If you telnet in or such, you can do:

chmod 644 config.php

etc.

The easier way is to use the FTP client to do this.

All this says is that you must allow all users (all accounts on the web host) to have some level of permissions. As the PHP script will be running as some other user (often runs as user 'www'), you need mode 644 (everyone can read, you can write) or 666 (everyone can read and write).

Last edited by Paul Victorey; 12-02-2002 at 05:30 PM.
Paul Victorey is offline   Reply With Quote
Old 12-02-2002, 05:38 PM   #4
Member (11 bit)
 
Doobie's Avatar
 
Join Date: Jul 2002
Location: Mexico
Posts: 1,049
Send a message via AIM to Doobie Send a message via Yahoo to Doobie
Ok I installed apache, php, and MySQL on my computer so I can learn how to use php. So since its on my local machine would I still have to use a FTP client or telnet in order to do this?
Doobie is offline   Reply With Quote
Old 12-02-2002, 06:00 PM   #5
Member (12 bit)
 
Paul Victorey's Avatar
 
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
No, but whichever user account (are you using NT/2K/XP?) the PHP script executes under will have to have read access to the .PHP file and read/write access to the other (which is what chmod 644 and 666 mean).
Paul Victorey is offline   Reply With Quote
Old 12-02-2002, 06:07 PM   #6
Member (11 bit)
 
Doobie's Avatar
 
Join Date: Jul 2002
Location: Mexico
Posts: 1,049
Send a message via AIM to Doobie Send a message via Yahoo to Doobie
So how would I go about doing it without FTP or Telnet?
Doobie is offline   Reply With Quote
Old 12-02-2002, 06:45 PM   #7
Member (12 bit)
 
Paul Victorey's Avatar
 
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
If you're running on the FAT32 system, any user on your computer always has full access. Under NTFS you need to make sure that the files and directories have the required permissions for whichever user the PHP script executes as. You can open a folder or file's properties and go to security to get info about who can read/write a file.
Paul Victorey is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:26 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2