

NGINX Open Source is available in two versions:
#Ubuntu server how to#
This article explains how to install NGINX Open Source.Ĭhoosing Between a Stable or a Mainline Version Replace "package1" with the name of the module you wish to install, and if you want to install multiple, just put a space between each module name.Install NGINX Open Source either as a prebuilt package or from source, following step-by-step instructions for all supported Linux distributions. If, after doing a little research you want to install a module, enter the following command: sudo apt-get install package1 Amongst the mass of data returned to you when examining a component, the in-depth description will appear under the "Description-en" field. You will need to replace "package_name" with the name of the package you want to examine, such as "php5-cli". Use this command to focus down on a particular component: apt-cache show package_name The list returned to you will include all of the modules' names and a brief description. You can get this up by entering (surprise, surprise) the following command: apt-cache search php5. To start off, you'll need a list of all of the optional components for PHP which you can install. PHP is installed and ready to use the next step is to take a look at the additional PHP modules and install any that take your fancy. Save your changes and exit the editor (remember to also confirm the save once the document is closed). The resulting file should look like this: ĭirectoryIndex index.html index.cgi index.php index.xhtml index.htmĮdit the text so that the " index.php" file is the first in the queue, which will look like this: ĭirectoryIndex index.php index.html index.cgi index.xhtml index.htm To do this, first open "dir.conf" in your text editor with this command: sudo nano /etc/apache2/mods-enabled/dir.conf Whilst we're here, you also need to integrate PHP into the Apache server so that PHP files will be prioritized. This time, the command is as follows: sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt You guessed it time for more commands! Much like with the MySQL command, we've included some really nifty helper packages, so don't worry about setting up a server with limited resources.

#Ubuntu server code#
This will perform a number of incredibly useful tasks, such as processing code and passing it to your web server to display. You're on the final package of LAMP installation now you need to install PHP.
#Ubuntu server update#
Sudo apt update Give the new account root privileges Test if the new user has the root privileges granted, by logging in to the system and run the apt update command prefixed with sudo. Sudo command must be used before writing the command needed for execution, as shown in the below example.

sudo usermod -a -G sudo ubuntu_userīy default, all users belonging to the “ sudo” group are allowed to execute commands with root privileges via sudo utility.

To grant this new user account with administrative privileges you should add the user to “ sudo” system group by issuing the below command. In order to create a new account on the system, log in to the system with the account user with root privileges and create a new account with the below command.įor now, the new added user cannot perform administrative tasks via sudo utility. sudo adduser ubuntu_userīy default, as a security measure, the root account is completely disabled in Ubuntu. Follow the adduser prompt to setup the user details and password.
#Ubuntu server password#
Make sure you setup a strong password to protect this account. This new account will be granted with root powers privileges via sudo command and will be used to perform administrative tasks in the system.
