![]() The snippet below shows the successful installation of the sudo command Once the repository is updated, use the following command to install the sudo command on the system: # apt install sudo Now, use the following command to update your system’s repository: # apt update Run this statement in the terminal to enter into root user mode: $ su -Ī sample snippet for the root user is shown below: Firstly to do this you need to enter root user mode. Installing the command onto your system is the most suitable method to resolve the error. When this happens and you try to run any sudo command, the error is prompted as shown below: Solution: Install sudo command ![]() Sometimes, due to some issues, the sudo tool might not exist on your system or may get removed. When Linux is installed onto your system, the sudo command is installed by default as well. In this section, the reason will be elaborated on in great detail and various solutions will be provided as well. There is a very simple reasoning behind this error. Resolve the “sudo command not found” error ![]() This article will act as a guide for you to learn the reasoning behind this error and also be able to fix it. While utilizing the sudo keyword to perform various tasks on your system, you may encounter the “sudo command not found” problem. Sudo represents the superuser in the Linux system which means that this user gains authority to perform various changes in the system. This tutorial "Video Tutorial - Install Moodle on a virtual Box from scratch" will give you the overview.In Linux, the most used keyword is the sudo keyword. Once I had a long tutorial exactly to this topic but then removed from the Internet because there are allready too many in the Moodle Docs. "apt-get install apache2" should have created one. > If I try "nano /etc/apache2/sites-available/default" it just starts me off writing a new file. What that doc means is /etc/apache2/sites-enabled/nf which is (typically) a soft link to /etc/apache2/sites-available/default. > But all I have at "/etc/apache2/sites-available" is "nf" and "nf". > It says to change the file that is here: /etc/apache2/sites-available/default > I'm stuck on Step 6 of the guide you sent me: "Step 6: Change Apache to use Moodle as the web site". But I wonder how usefull a server-only web server is going to be! ![]() Failing that, "lynx would call a local text only web browser and finish the job. OK, this assumes you gave your VM an IP address, private or public. But works even without GUI, if you enter or in a web brower in another (client) machine networked to your server. > I'm using the CLI because I have only installed the virtual machine on one of our servers, so to use as little resources as possible I did a basic installation without a GUI. Take your own time to digest these, no point in hurrying up to get the things "working" but you don't know how they worked! I see, new to Unix and also to the server world. To run the web installer script, just go to your Moodle's main URL using a web browser. Is this line important, what does it do, and how can I execute it?Īnd if it isn't important, then someone please explain to me what it means under Web Installation, when it says: So I tried to execute it, but as I thought, the sudo command was not found. When I got to this point I thought that the third command was odd, seeing as it had sudo at the start, but was being used when logged in as root. # sudo -u www-data /usr/bin/php install.php Example of using the command-line (as root - substitute 'www-data' for your web user):.Ubuntu/Debian is 'www-data', Centos is 'apache') You need to know what that is - see your system's documentation (e.g. It's best to run the command line as your system's web user. I've got to the point where in the "Installing Moodle" documentation it says about using the command line to install it. But I have got to the point where I want to install Moodle on a Debian web server with LaMp (Linux Apache MySQL PHP). I'm kind of new to using Unix-based systems, so forgive me if I'm missing something obvious.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |