Newbee first time installation on webhost.

This forum post has been removed

Number of replies: 8
The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: Newbee first time installation on webhost.

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of 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
Average of ratings:Useful (1)
In reply to Rick Jerz

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

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

by Ken Task -
Picture of 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.! smile

man -k chmod

man -k chown

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

'SoS', Ken


In reply to Ken Task

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

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

by Ken Task -
Picture of 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

In reply to Ken Task

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: Newbee first time installation on webhost.

by Ken Task -
Picture of 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


In reply to Deleted user

Re: Newbee first time installation on webhost.

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of 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.
Average of ratings:Useful (1)