Newbee first time installation on webhost.

本讨论区帖子已移除

回帖数:8
本讨论区帖子的内容已移除,无法再访问。
回复删除的用户

Re: Newbee first time installation on webhost.

Rick Jerz -
Particularly helpful Moodlers的头像 Testers的头像
Different hosting companies can be different.

These videos may not be for your exact situation, but they might give you some insight.

https://moodle.org/mod/forum/discuss.php?d=401983#p1621924
回复Rick Jerz

本讨论区帖子已移除

本讨论区帖子的内容已移除,无法再访问。
回复删除的用户

Re: Ang: Re: Newbee first time installation on webhost.

Ken Task -
Particularly helpful Moodlers的头像

Does your cPanel have a Terminal icon?

IF it does, click it and at the prompt see if you have the online manual installed by typing: whereis man [ENTER]

If man is there, that's probably everything you didn't wanna know (but should know some) about commands such as chmod, chown, -R's, etc.! 微笑

man -k chmod

man -k chown

Could also google for those (chown or chmod) to see the same info via web browser.

'SoS', Ken


回复Ken Task

本讨论区帖子已移除

本讨论区帖子的内容已移除,无法再访问。
回复删除的用户

Re: Ang: Re: Ang: Re: Newbee first time installation on webhost.

Ken Task -
Particularly helpful Moodlers的头像

No cPanel is ok ... however, is there another panel - like DirectAdmin?

IF no panel at all, consider installing Webmin - an open sourced panel runs under Perl and has it's own web server - not apache/nginx -  that has all the tools cPanel/DirectAdmin other panels have + the ability to do more!  Newest version now as a Terminal link which is ssh!  And one can program 'buttons' that execute bash shell scripts - other panels do not have that ability/allow.

https://webmin.com/

https://webmin.com/screenshots/

Caution executing without knowing what some command does!!!!

 chown -R root [foldername]

Operation not permitted :/ 

One has to know where one is located to set ownerships/permissions on moodle code ... that's why error above ... you were located at / which is top of the tree and not in /path/to/moodlecode/

hint/clue: pwd [ENTER]
shows present working directory.

'SoS', Ken

回复Ken Task

本讨论区帖子已移除

本讨论区帖子的内容已移除,无法再访问。
回复删除的用户

Re: Newbee first time installation on webhost.

Ken Task -
Particularly helpful Moodlers的头像

Follow up - actually a very wise question to ask ... caution ...

Most providers do not have a password for root user/group.  If you think about it a minute, that's because they might be called upon to fix something for a customer.

So in moodle docs where you see root:root - translate that to customerlogin.

If you note, your cPanel login doesn't use root - phpmyadmin doesn't use root - cPanel DB tools do not use root ... all of those are 'customeridname'.  Thus your ownerships to files of moodle code will be 'customerlogin'.

How to lock down/protect?   Moodle code (files/folders) do need to allow 'others' to at least read folders/files.   If using git for version control of your moodle code however, the hidden .git directory should allow only the owner access to read/write - group no and definitly not 'others' (those visiting your site with a web browser not authenticated).

So having knowledge of how to execute chmod/chown with -R (recursive) with ownerships as customerlogin is needed.

'SoS', Ken


回复删除的用户

Re: Newbee first time installation on webhost.

Visvanath Ratnaweera -
Particularly helpful Moodlers的头像 Translators的头像
Forget this "security" for the time being and get Moodle running first. You can revisit the file permissions and ownership topic once you get yourself familiar with the Unix shell.