Tuesday, 2 December 2008

GameSiteScript 4.0

Site Screenshot:

Site Admin Panel Screenshot:
Info:
Permissions tend to be one of the more common problems among everyone from beginners to seasoned experts in web development. This document outlines desirable permissions for each file/directory used by GameSiteScript.

Permissions are expressed in octal triplets. The first number means for the current user, the second means for the current group, and the third for “everyone else.” For most server configurations, PHP files will need read permission for all three sets, and should by default have write permissions for the local user – unless PHP is running in a special mode, execution privileges at the file level should be irrelevant.

Those octal triplets can have any value from 0 to 7, to calculate the value, you assume that “read” powers are “worth” 4, “write” powers are “worth” 2, and “execute” powers are worth 1.

ex 1. read + write, 4 + 2 = 6.
ex 2. write + execute, 2 + 1 = 3
ex 3. just read, 4 = 4.

Octal values are prefixed with a ‘0’ to make it clear that they are octal, so to give user, group and other all read permissions and no others you could change the chmod to 0444.

All GameSiteScript’s PHP files should be 0644 (read and write for current user, read for everyone else). This is the default most servers/FTP clients will assume. Directories should all be assumed as 0755 (all permissions for the current user, read and execute for everyone else) unless specified otherwise below.

0666: /swf/flvskin.swf and /swf/flvplay.swf – these two files need full write permissions to allow the script to autoupdate them as changes become available from the GameSiteScript servers.

0777: /swf/ and /img/ – keeping with the 0755 default pattern for directories, swf/ and img/ both need full write permissions to allow you to add games.

0666: /uploadfiles/ – IMPORTANT, while this directory needs write permissions, it needs to be made unaccessible from the web. You should block access via the .htaccess file included with the script, or through your web hosting control panel. Contact your web host if you need more help with this.

0777: /plugins/cache/ – this is used by the caching system, and needs to be writable.

0666: /plugins/cache/flist – as above.

0777: /plugins/cache/files/ – as above.

Of course, as usual, if you have any problems or even would just like confirmation that you’re doing it correctly, I’m always available for help via the forums or e-mail at chad.phillips@gamesitescript.com.

Download Code:

GameSiteScript_4.0.zip

No comments:

Post a Comment