Search
 
SCRIPT & CODE EXAMPLE
 

PHP

install php 7.4 on ubuntu 20.04

sudo apt update
sudo apt install php7.4
sudo apt install php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl -y
Comment

upgrade php 8 ubuntu 20.04

# php -v (default PHP version)

# From PHP 8.0 to PHP 7.4:
sudo a2dismod php8.0
sudo a2enmod php7.4
sudo update-alternatives --set php /usr/bin/php7.4
sudo service apache2 restart

# From PHP 7.4 to PHP 8.0:
sudo a2dismod php7.4
sudo a2enmod php8.0
sudo update-alternatives --set php /usr/bin/php8.0
sudo service apache2 restart
Comment

php 7 to php 8 in ubuntu 20.04

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.0
 #install common extension 
sudo apt install php8.0-common php8.0-mysql php8.0-xml php8.0-xmlrpc php8.0-curl php8.0-gd php8.0-imagick php8.0-cli php8.0-dev php8.0-imap php8.0-mbstring php8.0-opcache php8.0-soap php8.0-zip php8.0-intl -y
  sudo a2dismod php7.0
  sudo a2dismod php7.1
  sudo a2dismod php7.2
  sudo a2dismod php7.3
  sudo a2dismod php7.4
sudo a2enmod php8.0
sudo service apache2 restart
Comment

install php ubuntu 20.04

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

sudo apt update

sudo apt install -y php7.4
Comment

installing php version 8 in Ubuntu 20+

#Rn the command as sudo
			• apt install software-properties-common
            • apt update
            • apt install php8.0
Comment

install php7.2 ubuntu 20.04

php7 extensions installations
Comment

PREVIOUS NEXT
Code Example
Php :: php artisan serve a folder 
Php :: wordpress escape for html 
Php :: Object of class DateTime could not be converted to string 
Php :: add action wp_footer 
Php :: How to use php to set title 
Php :: deprcation problem phpmyadmin ubuntu 
Php :: php artisan make:request 
Php :: laravel permission denied storage log 
Php :: woocommerce my account url 
Php :: getoriginal laravel 
Php :: Internal error: xmlSchemaXPathProcessHistory, The state object to be removed is not the first in the list. 
Php :: laravel migration column type json 
Php :: wp cli command activate plugin 
Php :: get host from url php 
Php :: if is checkout page woocommerce 
Php :: randomize question in laravel 
Php :: php median 
Php :: stack once laravel 
Php :: customer io send_at api 
Php :: php number format 2 decimal no comma 
Php :: laravel remove public from url 
Php :: php json hjeader 
Php :: php import function from another file 
Php :: phpmyadmin max upload 
Php :: php get version 
Php :: strpos in python 
Php :: laravel collection implode 
Php :: carbon in laravel 
Php :: php redirect to page 
Php :: redirect to site php 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =