Apr 12, 2000, 10:41 AM
Veteran / Moderator (6956 posts)
Apr 12, 2000, 10:41 AM
Post #2 of 7
Views: 2444
Ok,
That means that the place you are asking links to write the file your server does ont have permission to do.
You should put Links in a _subdirectory_ such as .../htdocs/pages and set the permissions of the 'pages' directory to 777 so that your server can read/write to it. If you want people to be able to just hit your site from the domain name, you should have your ISP set up some redirection for you (a simple ln -s won't usually work because the references will be off). The reason is that you don't want your whole server to be "read-write" enabled to the world.
The _OTHER_ way around this, is to change the permissions on your htdocs directory temporarily. Build your site. Then change the _FILE_ permissions of the index.html file to 777 and the permissions of the various subdirectories that links built to 777 as well (chmod -R 777 directory_name).
Then, change the file permissions of your htdocs directory back to 755 (or whatever it was before).
This will allow Links to read/write to those files and directories, while still protecting the rest of your server.
If you _never_ edit the directory tree, you might want your ISP to set the owner of the file and the directories to the user of the "server" You probably will not be able to edit them, but the server can then write to them. And, _usually_ you do not have to edit those directories. The only thing is that "garbage" can collect in them in the form of old "new" files and such.
This _IS_ a security thing, and you need to think about whatever solution you pick.