Search
 
SCRIPT & CODE EXAMPLE
 

PHP

ubuntu update php 7.4 to 8

sudo apt-get purge php7.*
# recommended 
sudo apt-get autoclean
sudo apt-get autoremove
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
# end recommended 
sudo apt-get install php8.0
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

ubuntu upgrade php to 7.3

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y php7.3
Comment

PREVIOUS NEXT
Code Example
Php :: laravel check if in production 
Php :: check the php version in ubuntu 
Php :: wordpress disallow_file_edit 
Php :: php dom add class to element 
Php :: migrate specific migration laravel 
Php :: php content type xml 
Php :: row count in codeigniter 
Php :: how to get the index in foreach loop in laravel 
Php :: order alphabetically wp php 
Php :: php array in cookie 
Php :: php unit skip test 
Php :: laravel make trait command 
Php :: remove comma in numeric in php 
Php :: error log php array 
Php :: remove phpmyadmin ubuntu 20.04 completely 
Php :: php mysql count rows 
Php :: php get url path name 
Php :: laravel insert or ignore 
Php :: define home url wp 
Php :: get client size in laravel 
Php :: php pdo get database name 
Php :: php object check if property exists 
Php :: laravel find or fail exception 
Php :: convert base64 string to pdf in php 
Php :: php mysql connect 
Php :: php remove characters not numbers or letters 
Php :: running laravel as host 
Php :: array con php 
Php :: cakephp 404 exception 
Php :: symfony get current datetime 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =