

#PHP CURL INSTALL UBUNTU UPDATE#
Sudo apt-get update Step 4: Install PHP 7.2 Then, add the ondrej PPA and update your sources: sudo add-apt-repository -y ppa:ondrej/php PHP 7.2 can be installed using Ondřej Surý’s PPA, so install the software-properties-common and python-software-properties packages: sudo apt-get install software-properties-common python-software-properties If Apache is successfully installed, you should see the Apache default welcome page. To verify that Apache is running, you can also open your web browser and enter your server IP address, (e.g. To check the status of the Apache web server and make sure it is up and running, you can use the following command: systemctl status apache2 To install the Apache web server, run the following command on your server: apt-get install apache2Īfter the installation is complete, you should start Apache: systemctl start apache2Īlso, you can enable Apache to start automatically on server boot: systemctl enable apache2 Apache is a fast and secure web server and one of the most popular and widely used web server in the world. For the purpose of this tutorial, we will install the Apache web server.

We can install Apache, or nginx as a web server.
#PHP CURL INSTALL UBUNTU HOW TO#
In this section, we will show you how to install a web server on your VPS. If this is your first time logging into your brand new Ubuntu VPS, you can also check our First Steps After Getting An Ubuntu VPS tutorial for some additional basic initial server setup and security tips. Once logged in, make sure that your server OS packages are up-to-date by running the following commands: apt-get update

Replace “IP_ADDRESS” and “PORT_NUMBER” with your actual server IP address and SSH port number. To connect to your server via SSH as user root, use the following command: ssh -p PORT_NUMBER Step 1: Connect to your server via SSH and update your server OS packagesīefore we begin, let’s connect to your VPS via SSH as user root and update your Ubuntu OS packages to the latest available version. Full SSH root access or a user with sudo privileges is also required.However, we will still go through all the necessary steps and show you how to install and configure the LAMP stack yourself, in case you are doing this on a clean server. Our Ubuntu 16.04 VPS already comes preinstalled with a fully working LAMP stack. For the purposes of this tutorial, we will use an Ubuntu VPS.Step 7: Install most commonly used PHP extensions.Step 5: Search and install specific PHP 7.2 extensions.Step 1: Connect to your server via SSH and update your server OS packages.
