Project

General

Profile

Feature #5750

Suggestion for install process

Added by Rory Fogerty almost 7 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Installation / Migration
Target version:
Start date:
22/11/2012
Due date:
% Done:

0%

Estimated time:
Complexity:
Challenging
SCRUM pts - complexity:

Description

cmsmadesimple has a nice install feature whereby it lists all the directories that need their permissions setting in such a way that a "cut and paste" is all it takes.

For Chamilo I reckon this would be:

chmod 777 main/inc/conf/
chmod 777 main/upload/users/
chmod 777 main/default_course_document/images/
chmod 777 archive/
chmod 777 courses/
chmod 777 home/
chmod 777 main/css/
chmod 777 main/lang/
chmod 777 home/default_platform_document/
chmod 777 home/default_platform_document/template_thumb

probably only means adjusting $DirectoryAndFilePermissionsInfo in install.inc.php

Just a suggestion!
cheers
Rory


Related issues

Related to Chamilo LMS - Feature #6225: Improve installerAssigned18/06/2013

Actions

History

#1

Updated by Yannick Warnier almost 7 years ago

  • Target version changed from 1.9.4 to 1.9.6

+1, but it's international, so no need to alter the language files. It depends on the Windows/Linux difference though, so there should be a little check for that.
Ideally, the commands should be in an unfoldable box of some kind to not get in the way or frighten users who already have that right (OK, these guys won't be frightened, true...).
But that also calls for an automatic command generation to install the missing php packages and reconfigure PHP settings (OK, in another task, maybe).

We want to release a small 1.9.4 very soon, so I'm moving this to 1.9.6 (as I will do with a lot of others in th nxt few days), but don't worry, 1.9.6 shouldn't be much later either.

#2

Updated by Alexander Hu almost 7 years ago

Rory Fogerty wrote:

For Chamilo I reckon this would be:

chmod 777 main/inc/conf/
chmod 777 main/upload/users/
chmod 777 main/default_course_document/images/
chmod 777 archive/
chmod 777 courses/
chmod 777 home/
chmod 777 main/css/
chmod 777 main/lang/
chmod 777 home/default_platform_document/
chmod 777 home/default_platform_document/template_thumb

If you would do this on one of my machines, you would screw up your hosting.
These BAD settings mess up pretty much every security measure a server admin has done.
This just works, if you do hosting on crappy servers (pardon, but i have seen to many).
Usually, the ftp and webserver user should be the same, means, folders should be 755 or 775, but this would be maximum.
If you can't get it running withoud chmod 777 better change hosting ;-)

#3

Updated by Rory Fogerty almost 7 years ago

okay, okay, I get it - make it 755 or 775 if you prefer - thats not the point I was making.

The important thing is:
a) its a complete list so there are no surprises after installation e.g. when adding templates.
b) its simple to cut and paste - saves typing the whole thing in.

#4

Updated by Alexander Hu almost 7 years ago

Rory Fogerty wrote:

okay, okay, I get it - make it 755 or 775 if you prefer - thats not the point I was making.

The important thing is:
a) its a complete list so there are no surprises after installation e.g. when adding templates.
b) its simple to cut and paste - saves typing the whole thing in.

Well, believe it or not:
if you would do proper hosting, you don't need to change any permissions.
Sure, for the cheap shared hosting fumblers this would be nice; but in my opinion, these persons usually know that cheap hosting means a lot of more work than only change some folder permissions (just thinking for the .htaccess problem one of my customer hat, really nasty ;-)

#5

Updated by Julio Montoya over 6 years ago

As talked by Yannick all those "dynamic" folders need to be moved in a folder like "data" so you just change permissions in 1 folder with chmod -R 777 data

#6

Updated by Yannick Warnier over 6 years ago

  • Target version changed from 1.9.6 to 2.0

That's correct. So I'm moving it to 1.10, which will hopefully see these changes happen.

#7

Updated by Julio Montoya over 6 years ago

  • Complexity changed from Piece of cake to Challenging
  • SCRUM pts - complexity deleted (?)
#8

Updated by Yannick Warnier over 3 years ago

  • Target version changed from 2.0 to 3.0

Also available in: Atom PDF