Forums / Cotonti / Support / CHMOD

RaisenBran
#1 2011-02-20 02:10
Guys when I used to use Seditio I remember it said to CHMOD some files.

What exactly does it do?
Can you only use FTP?

Because I never did that and my website ran just fine. Does this leave my site more vulnerable or what?

I'm probably gonna do the same thing with cotonti; just gonna skip this CHMOD steop..
Kingsley
#2 2011-02-20 02:23
with CHMOD you can edit what permissions users/group/other have on a file/folder.

max setting is 777, this means files on your ftp can be read, writed or executed.

By default this setting is 644:

this means: user can read/write, group can read only and other can read only too.

In cotonti you must CHMOD these files in order for things to work (like avatars, user photo's, etc):

/datas/defaultav/
/datas/avatars/
/datas/photos/
/datas/signatures/
/datas/thumbs/
/datas/tmp/
/datas/users/

Most ftp programs support this in an easy way, just right click the file/folder on your ftp, and click properties. on the permissions tab you can edit the settings.

Skipping this step with your Cotonti installation probably means your site will not function properly. Just stick to the install instructions and you'll be fine.

Added 1 minute later:

Oh, I know of Vista and Win7 you actually don't need a separate FTP program, you can just use an explorer window for it (use address bar for: ftp://yoursitename.whatever).
GHengeveld
#3 2011-02-20 02:35
CHMOD is an FTP command which changes the access rights for a file or folder on Linux servers. There are 3 modes: read, write and execute and there are three basic types of users: owner, group and public. Together this creates a 3x3 grid of options, which you can change in your FTP program. This grid can also be displayed as a number, such as (0)777. Most FTP programs provide both a grid of checkboxes and an input field where you can insert the number.

Cotonti requires read, write and execute rights on a selection of files/folders. By default, Cotonti doesn't have the rights to change a file on the server since it doesn't own the files (it's owned by the FTP user account). That's why you have to use FTP (as owner of the files) to change the rights so Cotonti can modify the files.

Cotonti cannot be installed using the automatic installer script if you don't apply the correct CHMOD settings. Also, you have to CHMOD some folders if you want to be able to upload files in the PFS or set an avatar.

In terms of security, it's usually best to change the CHMOD settings for config.php back after you've run the install script. Usually it's not critical, but it's a best practice to keep rights as strict as possible.Q
RaisenBran
#4 2011-02-20 02:41
Well I am gonna install cotonti a few times to make sure I get it down. I'm not gonna CHMOD for the first install.

I just fine it weird that I never did that to Seditio and it ran just fine. Thanks for the help guys.

And i find this weird:
2011-02-19 12:36
Fatal error : SQL error : Table 'coded2_con.sed_config' doesn't exist

When I have it correctly entered..Hmm.

Added 13 minutes later:

Nevermind I got it to work but received this error:
Fatal error: Uncaught exception 'Exception' with message 'Your "./datas/cache/templates/" is not writable' in /home/coded2/public_html/c/system/xtemplate.php:184 Stack trace: #0 /home/coded2/public_html/c/system/xtemplate.php(39): XTemplate->restart('skins/sed-light...') #1 /home/coded2/public_html/c/system/header.php(92): XTemplate->__construct('skins/sed-light...') #2 /home/coded2/public_html/c/system/core/index/index.inc.php(34): require_once('/home/coded2/pu...') #3 /home/coded2/public_html/c/index.php(20): require_once('/home/coded2/pu...') #4 {main} thrown in /home/coded2/public_html/c/system/xtemplate.php on line 184

In case you didn't know I'm installing cotonti..

Added 2 minutes later:

Looks like i do gotta CHMOD :P I'll do it later..
This post was edited by RaisenBran (2011-02-20 02:59, 13 years ago)
Kingsley
#5 2011-02-20 10:34
chmod

./datas/cache/templates/

to 777 and that one's fixed..
RaisenBran
#6 2011-02-20 15:21
Thanks, done.