What write permissions values should I set, and for which files and directories?

When LinkMachine is installed, the installer attempts to set the write permissions values of all files appropriately. Some web servers do not allow scripts to alter write permissions however, so you may need to change the write permissions of some files and directories yourself.

For information on how to change write permissions, see this page.

All write permissions should be turned on (chmod 777) for these directories on your site:

linkmachine/
linkmachine/templates/
linkmachine/resources/

All write permissions should also be turned on for the directory in which you have LinkMachine generate your link pages, if you have changed the Location of Link Pages under Site Settings from its default value.

Within your site's "linkmachine" directory, all write permissions should be turned on (chmod 666) for these files:

lm.php
all files ending in ".dat"
all files ending in ".txt"
all files ending in ".csv"

Finally, within the directory where you have linkmachine generate your link pages, all files generated by LinkMachine should have their write permissions turned on (chmod 666).

There is one exceptuion to the above general rules. If you receive an error message such as "Internal Server Error" when you access the LinkMachine admin page on your site or when you submit a link through your site's link submission form, then your web server likely does not allow a Php script to run when the script's permissions are set to 666, or when the permissions of the directory the script is in is set to 777.

If this is the case on your server, try setting the permissions for your site's "linkmachine" directory to 755 and for the file "linkmachine.php" within that directory to 644. Also set the permissions for the directory in which your link pages are generated to 755, and for the script "link_exchange.php" within that directory to 644.

If your web server is UNIX based and you're not sure how to change the write permissions, we are able to do this for you. Contact us through the support page and include the URL of your LinkMachine installation and your web site's FTP address and FTP username/password.