PHP stand for (Hypertext Preprocessor) it is a general-purpose scripting language especially use for web development.
Step 1) Add the PPA (Personal Package Archives) Repository.
$ sudo apt-get update
$ sudo apt install ca-certificates apt-transport-https software-properties-common
$ sudo add-apt-repository ppa:ondrej/php
Step 2) Install PHP 8.0 with Apache on Ubuntu
$ sudo apt update
$ sudo apt install php8.0 libapache2-mod-php8.0
Step 3) Install PHP 8.0 Extensions.
sudo apt-get install -y php8.0-cli
sudo apt-get install -y php8.0-common
sudo apt-get install -y php8.0-json
sudo apt-get install -y php8.0-opcache
sudo apt-get install -y php8.0-mysql
sudo apt-get install -y php8.0-mbstring
sudo apt-get install -y php8.0-mcrypt
sudo apt-get install -y php8.0-zip
sudo apt-get install -y php8.0-fpm
sudo apt-get install -y php8.0-xml
sudo apt-get install -y php8.0-xmlrpc
sudo apt-get install -y php8.0-gd
sudo apt-get install -y php8.0-curl
sudo apt-get install -y php8.0-imap
sudo apt-get install -y php8.0-soap
sudo apt-get install -y php8.0-bcmath
sudo apt-get install -y php8.0-bz2
Step 4) Restart Apache web server.
$ sudo systemctl restart apache2
No comments:
Post a Comment
testing