Newbee first time installation on webhost.

Această postare pe forum a fost eliminată

Număr de răspunsuri: 8
Conținutul acestei postări a fost eliminat și nu mai poate fi accesat.
Ca răspuns la Utilizator șters

Re: Newbee first time installation on webhost.

de către Rick Jerz-
Imaginea Particularly helpful Moodlers Imaginea 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
Ca răspuns la Rick Jerz

Această postare pe forum a fost eliminată

Conținutul acestei postări a fost eliminat și nu mai poate fi accesat.
Ca răspuns la Utilizator șters

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

de către Ken Task-
Imaginea 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.! surâs

man -k chmod

man -k chown

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

'SoS', Ken


Ca răspuns la Ken Task

Această postare pe forum a fost eliminată

Conținutul acestei postări a fost eliminat și nu mai poate fi accesat.
Ca răspuns la Utilizator șters

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

de către Ken Task-
Imaginea 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

Ca răspuns la Ken Task

Această postare pe forum a fost eliminată

Conținutul acestei postări a fost eliminat și nu mai poate fi accesat.
Ca răspuns la Utilizator șters

Re: Newbee first time installation on webhost.

de către Ken Task-
Imaginea 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


Ca răspuns la Utilizator șters

Re: Newbee first time installation on webhost.

de către Visvanath Ratnaweera-
Imaginea Particularly helpful Moodlers Imaginea 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.