DEV Community

neoan
neoan

Posted on • Edited on • Originally published at blua.blue

3 1

Install PHP 8 on Ubuntu

Installation

If you are running php7.x, it's likely you are already using the following repository. If not, here are the commands:

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php

Now let's install PHP8:

sudo apt update

APACHE

sudo apt install php8.0 libapache2-mod-php8.0

When you are done installing your extensions, don't forget to restart with sudo service apache2 restart
(or sudo systemctl restart apache2 )

NGINX

sudo apt install php8.0-fpm

When you are done installing your extensions, don't forget to restart with sudo service nginx restart
(or sudo systemctl restart nginx )

Extensions

Before we give it a spin, let's install some common extensions we might need.
(The following list is based on neoan3 requirements, feel free to check what you need for the setup of your choice)

sudo apt install php8.0-{mysql,zip,xml,curl} or install them one-by-one in this format:

sudo apt install php8.0-xml (see a list here)

Happy hacking!

Image of Docusign

Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more