| |
|
|
 |
CHMOD on a local WAMP server ?
| geek_smyrnia | March 13, 2008, 11:36 am | #1 | CHMOD on a local WAMP server ? Hi folks, I need to give wright permissions to a file in a php contact form I'm playing with. It is currently on a local WAMP server. There seems to be no way to do the usual CHMOD ftp routine. Does anyone have any idea how I can do this or think of a work around. The script will not work until this .txt file has wright permission. Have Googled with no luck and tried to do it via cmd, but got the response that CHMOD is not recognised as a command. Any thoughts, thanks. | |
|
| geek_d.laidlaw | March 13, 2008, 11:39 am | #2 | | Local server or remote server and are you doing this in code or are you doing it via ftp/other |
| geek_smyrnia | March 13, 2008, 11:43 am | #3 | | Hi... Local WAMP server. Do not appear to be able to ftp to it hence the question. |
| geek_d.laidlaw | March 13, 2008, 11:45 am | #4 | | So you want to transfer a file via ftp to the server and you don't have permission to overwrite the file but you do have access to the server? |
| geek_soodanim | March 13, 2008, 11:47 am | #5 | | I just right click the file and properties....attributes...there's only read and hidden but found that write/read is already set...remove "read only" and things work fine. |
| geek_d.laidlaw | March 13, 2008, 11:50 am | #6 | | Thats what I would suspect I would also suggest using a file share for ease of use. |
| geek_smyrnia | March 13, 2008, 11:52 am | #7 | Hi... I want to CHMOD 666 a file on the localserver. Yes I have access to the server but not by ftp. This is usually done via ftp if you are working on a remote server. The file I want to apply permission to already resides on the local WAMP server. It's an error logging .txt file that is written to by parts of the php code. The script won't run if it can't write to this file. Cheers. |
| geek_d.laidlaw | March 13, 2008, 11:55 am | #8 | | That means the user that apache is running under does not have access to write to that file (obviously) and needs to be given either access to that file or to the folder (and set files in the folder to inherit permissions). |
| geek_d.laidlaw | March 13, 2008, 11:55 am | #9 | | What FTP server software are you running? |
| geek_sighkick | March 13, 2008, 12:11 pm | #10 | | I assume you have followed the advice above and have solved the problem. Windows is not as easy to set permissions as is a Linux system. You need to be on that actual machine, navigate to that txt file, right click on it and remove the Tick from the Read Only box. |
| geek_smyrnia | March 13, 2008, 12:12 pm | #11 | Soodanim,d.laidlaw Thanks,why didn't I think of that.The answer was too easy and I'm too simple. For some reason the permission had got set to Read Only. Unfortunately the damn script still doesn't run,now it tells me it can't find the language file !! Ahh such is the joys of playing around,time to go and see if I can solve this one,the language file is there and it's talking to me in En. No problems,many thanks folks for the help,it shows the advantage of having someone else to talk to,they can point out the obvious that you are to thick to think off...Duh. Cheers. |
| geek_soodanim | March 13, 2008, 12:13 pm | #12 | | I bet all the files are read only :) Change em all. |
| geek_seriouslycgi | March 13, 2008, 12:13 pm | #13 | | Windows sucks you cant do anything right on it, remote desktop the machine or vnc with admin permissions and make the file read/write. god whats wrong with microsoft that they cant make it easier. |
| geek_d.laidlaw | March 13, 2008, 12:18 pm | #14 | | #10 & #13 It actually depends on what you are running and what permissions you have as to what you can do. |
| geek_smyrnia | March 13, 2008, 12:25 pm | #15 | Yep #12 Good thought,thanks ;) #13 Am inclined to agree but allot of the appys I use are windows only.Yep I know there may be linux ones that do the same or better,but don't have another x yrs to go through yet another vertical learning curve hunting out things that want to work my way. But must do something more intelligent about this testing server that will definitely be LAMP. Thanks again folks. | |
| | Tags: wamp | | Leave your comment: | | NZGeek Message Board > CHMOD on a local WAMP server ?
|
 |
|
 |
|
 |
 |
|
|