Laravel is an open-source PHP framework that provides a set of tools and resources to build modern PHP applications. With a complete ecosystem leveraging its built-in features, Laravel’s popularity has grown rapidly in the past few years, with many developers adopting it as their framework of choice for a streamlined development process. In this guide, you’ll install and configure a new Laravel application on an Ubuntu 20.04 server, using Composer to download and manage the framework dependencies and Nginx to serve the application. When you’re finished, you’ll have a functional Laravel demo application pulling content from a MySQL 8 database.
PHP is one of the most used server-side programming languages. Many popular CMS and frameworks such as WordPress, Magento, and Laravel are written in PHP. This guide covers the steps necessary to install PHP on Ubuntu 20.04 and integrate it with Nginx and Apache. At the time of writing, the default Ubuntu 20.04 repositories include PHP 7.4 version. We’ll also show you how to install previous PHP versions. Before choosing which version of PHP to install, make sure that your applications support it.
Pip is a tool for installing Python packages. With pip, you can search, download, and install packages from Python Package Index (PyPI) and other package indexes. This guide explains how to install pip for Python 3 and Python 2 on Ubuntu 20.04. We will also walk you through the basics of installing and otherwise managing Python packages with pip.
Composer is a dependency manager for PHP (similar to npm for Node.js or pip for Python ). With Composer, you can specify the PHP libraries your project depends on, and it will pull and manage all libraries and dependencies for you. Composer is used in all modern PHP frameworks and platforms such as Laravel, Symfony, Drupal, and Magento. This tutorial explains how to install and use Composer on Ubuntu 20.04.
It is always a good idea to delete unwanted or unused user accounts on Ubuntu Linux or any other operating system for security reasons. This page shows how to remove a user account on Ubuntu Linux. You must log in as root delete a user from the Ubuntu Linux server.
In this tutorial, we will show you how to install Apache Maven on Ubuntu. Tested with: Maven 3.5.2, Ubuntu 18.04 . Before the Maven installation, make sure JDK is installed and JAVA_HOME is configured.
On Ubuntu, there are two system-wide environment variables, both files need admin or sudo to modify it. First one is /etc/environment – It is not a script file, purely assignment expressions, one per line. Second one is /etc/profile.d/*.sh – Files with .sh extension in the /etc/profile.d/ folder.
On Ubuntu, we can add JAVA_HOME environment variable in /etc/environment file. Note/etc/environment system-wide environment variable settings, which means all users use it. It is not a script file, but rather consists of assignment expressions, one per line. We need admin or sudo to modify this it.