Trending February 2024 # How To Install Or Upgrade Php 8.1 On Ubuntu 20.04 # Suggested March 2024 # Top 6 Popular

You are reading the article How To Install Or Upgrade Php 8.1 On Ubuntu 20.04 updated in February 2024 on the website Minhminhbmm.com. We hope that the information we have shared is helpful to you. If you find the content interesting and meaningful, please share it with your friends and continue to follow and support us for the latest updates. Suggested March 2024 How To Install Or Upgrade Php 8.1 On Ubuntu 20.04

PHP 8.1 is the latest PHP version released on 2023. In this guide you are going to learn how to install the latest PHP version which is currently 8.1 on your Ubuntu 20.04 system or server and configure it with Apache and Nginx. You will also learn how to upgrade your PHP version to latest.

This tutorial guides you to configure PHP INI settings, FPM settings, Pools, etc which is more useful for your application to run smooth.

This installation is tested on Google Cloud Platform with a Compute Compute Engine VM Instance. This set up will work on all Linux servers.

ADVERTISEMENT

Prerequisites

Basic knowledge of using SSH Terminal on Linux.

Getting Started

Make sure your Ubuntu server is having the latest packages by running the following command.

sudo apt update sudo apt upgrade

This will update the package index and update the installed packages to the latest version.

ADVERTISEMENT

Add PPA for PHP 8.1

Add the ondrej/php which has PHP 8.1 package and other required PHP extensions.

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

Once you have added the PPA you can install PHP 8.1.

Install PHP 8.1 for Apache

Execute the following command to install PHP 8.1

ADVERTISEMENT

sudo apt install php8.1

After the installation has completed, you can confirm the installation using the following command

php -v Install PHP 8.1 FPM for Nginx

For Nginx you need to install FPM. Execute the following command to install PHP 8.1 FPM

sudo apt install php8.1-fpm

After the installation has completed, confirm that PHP 8.1 FPM has installed correctly with this command

php-fpm8.1 -v Install PHP 8.1 Extensions

Installing PHP extensions are simple with the following syntax.

sudo apt install php8.1-

extension_name

Now, install some commonly used php-extensions with the following command.

sudo apt install php8.1-common php8.1-mysql php8.1-xml php8.1-xmlrpc php8.1-curl php8.1-gd php8.1-imagick php8.1-cli php8.1-dev php8.1-imap php8.1-mbstring php8.1-opcache php8.1-soap php8.1-zip php8.1-redis php8.1-intl -y Configure PHP 8.1

Now we configure PHP for Web Applications by changing some values in php.ini file.

For PHP 8.1 with Apache the php.ini location will be in following directory.

sudo nano /etc/php/8.1/apache2/php.ini

For PHP 8.1 FPM with Nginx the php.ini location will be in following directory.

sudo nano /etc/php/8.1/fpm/php.ini

Hit F6 for search inside the editor and update the following values for better performance.

upload_max_filesize = 32M post_max_size = 48M memory_limit = 256M max_execution_time = 600 max_input_vars = 3000 max_input_time = 1000

Once you have modified your PHP settings you need to restart your Apache for the changes to take effect.

For users with Nginx to who use PHP-FPM, you need to restart PHP-FPM.

sudo service php8.1-fpm restart Configure PHP 8.1 FPM Pools

PHP-FPM allows you to configure the user and group that the service will run under. You can modify these with these commands

If you want to change the username name you can change the following lines by replacing the www-data with your username.

user =

username

group =

username

listen.owner =

username

listen.group =

username

Hit CTRL+X and Y to save the configuration and check if the configuration is correct and restart PHP.

Restart PHP 8.1 FPM

Once you have updated your PHP FPM settings you need to restart it to apply the changes.

sudo php-fpm8.1 -t sudo service php8.1-fpm restart

Now you are having PHP 8.1 Installed and configured.

Prepare yourself for a role working as an Information Technology Professional with Linux operating system

Upgrade to PHP 8.1 for Apache

Once you have installed PHP 8.1 you need to upgrade to the latest installed version of PHP.

You need to tell Apache to use the PHP 8.1version we installed right now. Disable the old PHP module (below I have mentioned php7.4, you need to use your current php version used by Apache) and enable the new PHP module using the following command.

Replace the current enabled PHP version with your version.

sudo a2dismod php7.4 sudo a2enmod php8.1

Restart Apache for the changes to take effect.

sudo service apache2 restart Upgrade PHP 8.1 for Nginx

For Nginx you need to update the PHP-FPM socket in your Nginx configration located inside the sites-available directory. This will be located inside the location block location ~ .php$

Edit your configuration…

sudo nano /etc/nginx/sites-available/your.conf

The line you need to modify will look like this…

fastcgi_pass unix:/run/php/php7.4-fpm.sock;

You need to replace the old PHP version with the new version.

fastcgi_pass unix:/run/php/php8.1-fpm.sock;

Test your configration.

sudo nginx -t

Save the file and exit the editor and restart Nginx for the changes to take effect.

sudo service nginx restart Conclusion

Now you have learned how to install PHP 8.1 on your Ubuntu server for Apache and Nginx and also how to upgrade to latest version.

You're reading How To Install Or Upgrade Php 8.1 On Ubuntu 20.04

How To Install And Use Command Line Cheat Sheets On Ubuntu

Cheat is a command line primarily based on Python software that lets in system administrators to view and save helpful cheat sheets. It retrieves simple-text examples of a delegated command which will remind the user of alternatives, arguments, or commonplace makes use of. Cheat is used for “commands which you use frequently, however now not frequently sufficient to consider”

Installing Cheat

Before installing Cheat, we need to make sure that everything’s up to date on the system as shown in the below command –

$ sudo apt-get update && sudo apt-get upgrade

Installing Cheat is best done with the Python package manager Pip. To install pip, use the following command –

$ sudo apt-get install python-pip

To install cheat, use the following command –

$ sudo pip install cheat

The sample output should be like this –

Collecting cheat    Downloading chúng tôi (42kB)    Downloading docopt-0.6.2.tar.gz    Downloading chúng tôi (755kB) Installing collected packages: docopt, pygments, cheat    Running chúng tôi install for docopt ... done    Running chúng tôi install for cheat ... done Successfully installed cheat-2.1.24 docopt-0.6.2 pygments-2.1.3

To verify if the cheat is installed or not, use the following command –

$ cheat -v

The sample output should be like this –

cheat 2.1.24 Setting the Text Editor

we are able to pass on to create our personal cheat sheets, Cheat desires to know which textual content editor we would love to apply to edit sheets by means of chúng tôi set nano text editor, use the following command –

$ export EDITOR=/usr/bin/vim

We can confirm the above command was successful using the following command –

$ printenv EDITOR

The output should be like this –

/usr/bin/vim

To make this change persistent and permanent across all future shell sessions, you must add the environment variable declaration to your .bashrc file. This is one of several files that are run at the start of a bash shell session. To open bashrc file, use the following command –

$ nano ~/.bashrc

The sample output should be like this –

# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything case $- in    *i*) ;;      *) return;; esac export EDITOR=/usr/bin/vim # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth # append to the history file, don't overwrite it shopt -s histappend # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000

Then add the same export command as shown below

..................................................... # If not running interactively, don't do anything case $- in *i*) ;; *) return;; esac export EDITOR=/usr/bin/vim # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth ...........................................

Save and exit the file.

Running Cheat

To run Cheat in its most basic form for tail command, use the following command –

$ cheat tail

The sample output should be like this –

# To show the last 10 lines of file tail file # To show the last N lines of file tail -n N file # To show the last lines of file starting with the Nth tail -n +N file # To show the last N bytes of file tail -c N file # To show the last 10 lines of file and to wait for file to grow tail -f file

To see the list of all existing cheats, use the following command –

$ cheat -l

The output should be like this –

7z /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/7z ab                     /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/ab apk                    /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/apk apparmor               /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/apparmor apt                   /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/apt apt-cache             /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/apt-cache apt-get             /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/apt-get aptitude             /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/aptitude asciiart             /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/asciiart asterisk             /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/asterisk at                   /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/at awk                   /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/awk bash                /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/bash bower                /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/bower chmod                /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/chmod chown                 /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/chown convert             /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/convert crontab             /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/crontab csplit             /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/csplit cups                 /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/cups curl                 /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/curl cut                /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/cut date                 /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/date dd                   /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/dd df                   /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/df dhclient             /usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/dhclient .............................................................................................. Creating and Editing Cheat Sheets

To create a cheat sheet, use the following command –

$ cheat -e tutorialspoint

The above command tutorialspoint is a cheat sheet name. It will open a blank cheat sheet. Now add your cheats and save it.

Searching Cheat Sheets

To search cheat sheet, use the following command –

$ cheat -s tail

The above command is searching for tail command. The sample output should be like this –

asterisk:    # To print out the details of SIP accounts: dnf:    # To search package details for the given string dpkg:    # List all installed packages with versions and details hardware-info:    # Display all hardware details journalctl:    # Actively follow log (like tail -f) mdadm:    # See detailed array confiration/status    mdadm --detail /dev/md${M} p4:    # Print details related to Client and server configuration pacman: pip:    # Show details of a package tail:    tail file    tail -n N file    tail -n +N file    tail -c N file    tail -f file

That’s it. After this article, you will be able to understand – How To Install and Use Command Line Cheat Sheets on Ubuntu, we will come up with more Linux based tricks and tips. Keep reading!

How To Install Gnome Classic Shell In Ubuntu

If you have installed Ubuntu on your old computer or the low-end netbook, you will know that the Unity desktop manager that comes shipped with Ubuntu is very sluggish and non-responsive at times. This is because the Unity desktop requires powerful hardware to run well. A good alternative is to install the classic Gnome desktop. It is not as resource-intensive as Unity and will work just fine with any older hardware.

Note: The “Gnome classic shell” is now known as “Gnome Flashback.” The user interface remain the same.

Install Gnome Classic Shell In Ubuntu

Installing Gnome classic shell in Ubuntu is really easy. There are two ways to install Gnome classic shell in Ubuntu. The first is to use the regular Ubuntu software center and the second is to use a couple of commands in your Ubuntu terminal.

Using Ubuntu Software Center

Install Gnome Flashback from Ubuntu Software Center

Using Ubuntu Terminal

To install Gnome classic shell using the terminal, launch the terminal by pressing “Ctrl + Alt + T”. Enter the following command to update the current repos.

Once all the repositories are updated, enter the following command to install Gnome classic shell.

The above action will install the Gnome flashback on your Ubuntu machine. If you face any dependency errors or broken dependencies, use the below command to rectify them.

sudo

 

apt-get install

-f

That’s all there is to do and it is that easy to install Gnome classic shell in Ubuntu.

Enable Gnome Classic Shell

From this point forward, you can enjoy the classic Gnome desktop. If you ever need to, you can always switch back to the regular Unity user interface from the login screen.

Vamsi Krishna

Vamsi is a tech and WordPress geek who enjoys writing how-to guides and messing with his computer and software in general. When not writing for MTE, he writes for he shares tips, tricks, and lifehacks on his own blog Stugon.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Sign up for all newsletters.

By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time.

How To Install Appcake On Iphone?

At one time, you could only access AppCake if you installed a jailbreak on your iPhone or iPad. It was one of the most popular Cydia tweaks of all time, giving users access to a whole heap of third-party apps. Still, now, with jailbreaks being few and far between, the developers made their app available to all iOS users, regardless of whether they have a jailbreak or not. It’s free to download, so keep reading for all the info.

AppCake is an iOS app store that offers an easy way to install unsigned IPA files on your device. These files are apps that Apple will not officially sign, mainly because they contain modifications that Apple disapproves of. That doesn’t make them illegal apps, and it doesn’t make them unsafe; not being allowed entrance to the iOS app store just means they go to the unofficial app stores.

AppCake is similar to Cydia Impactor in that it helps you sideload the files. But, where Cydia Impactor allows you three apps at a time, and you have to download them from the internet, AppCake lets you install as many as you want. And as well as letting you install files you downloaded yourself, AppCake also gives you access to thousands of pre-installed apps.

Developed in 2008 by iPhoneCake, AppCake was released by iPASTORE and worked on iOS 9 through to iOS 14 on any device.

It is quite easy to install AppCake directly on your iPhone or iPad, but you do need to be aware of one thing – AppCake is built using expired enterprise certificates, and these are likely to be revoked by Apple. This will cause the app to crash, leaving you having to reinstall it over again. Using a recommended VPN can stop this from happening.

Go to the AppCake website using Safari Browser and download the app store.

Tap Install on the popup message asking for permission.

The AppCake icon will be on your home page when the app is installed.

When you tap the AppCake icon for the first time, you are likely to see an untrusted developer error. This is nothing to worry about; it’s just Apple telling you that they do not know the developer. You need to trust the developer so the app can run:

Remember the developer’s name from the error message and press cancel.

Open Settings and tap on General

Go to Profiles & Device Management and tap on the developer name.

Tap on Trust, close Settings – AppCake is now ready to use

Using AppCake is simple:

Open the app can choose the app or game you want to download

Tap it, tap Install and wait – when the app is downloaded, the icon is on your home screen

You can also install external IPA files – download the files you want from reputable sites on the internet using Safari browser.

Send the file to AppCake.

AppCake offers users plenty of features:

Free to download and use

Supports iOS 9 to iOS 14

All content is categorized to make life easier for you.

Some popular jailbreak utilities are included, offering a safe way to install Unc0ver, Electra, and other jailbreaks.

Thousands of apps and games pre-installed

Ability to install external IPA files

Built-in search facility

The developers didn’t stop there, though. As well as all the standard features you expect with these kinds of apps, and you also get the following:

Built–in Web Server – access all your files using your PC or iOS device and upload/download files easily between them

Customizable Settings – including the ability to fix crashes on iOS 12 and iOS 13 and settings downloaded files to install automatically.

Very safe. Not only did it get tested at every step of the development, but it is also monitored daily. Any issues that users report or the developers find are immediately fixed with an update – you must download these updates to keep your app safe.

Another layer of security comes in the fact that you don’t need to install a jailbreak, so you are not contravening Apple’s security by hacking into the iOS root. We tested the app thoroughly and found no evidence of viruses, malware, or anything else that can potentially harm your device. Lastly, there is no need to use your Apple ID to install AppCake, so your app users cannot be tracked.

AppCake is well worth a look. It may not offer the exact same experience it did as a jailbreak app, but it does give you access to thousands of unofficial apps and games and works well as an alternative app store.

How To Add Or Remove Ppa In Ubuntu Using Gui And Terminal

Ubuntu is one of the most popular Linux-based operating systems used by millions of people around the world. It is known for its ease of use, reliability, and security features. One of the most important features of Ubuntu is its package management system, which allows users to easily install, update, and remove software packages on their system.

One of the most popular ways to install software on Ubuntu is through Personal Package Archives (PPAs). PPAs are repositories that contain software packages that are not available in the official Ubuntu repositories. They are typically maintained by individuals or teams of developers who create and maintain their own packages.

In this article, we will discuss how to add or remove a PPA in Ubuntu using both the graphical user interface (GUI) and the command-line interface (Terminal).

Adding a PPA using GUI

The easiest way to add a PPA in Ubuntu is through the GUI. Here are the steps −

Step 1: Open the Software & Updates Tool Step 2: Go to the Other Software Tab

Once you have opened the Software & Updates tool, go to the “Other Software” tab. This tab displays all the third-party repositories that are currently enabled on your system.

Step 4: Enter the Details of the PPA

In the new window, enter the details of the PPA. This includes the PPA’s name, the PPA’s location, and the PPA’s key. You can find this information on the website of the PPA’s maintainer.

Step 6: Close the Software & Updates Tool

Once Ubuntu has finished updating your software sources, close the Software & Updates tool. You can now install software packages from the newly added PPA using the Ubuntu Software Center or the Terminal.

Adding a PPA using Terminal

If you prefer to use the command-line interface, you can also add a PPA using the Terminal. Here are the steps −

Step 1: Open the Terminal Step 2: Add the PPA

To add a PPA, enter the following command in the Terminal −

sudo add-apt-repository ppa:PPA-NAME

Replace “PPA-NAME” with the name of the PPA you want to add. For example, if you want to add the PPA for the GIMP image editor, you would enter the following command −

sudo add-apt-repository ppa:otto-kesselgulasch/gimp Step 3: Update your Software Sources

After you have added the PPA, you need to update your software sources. To do this, enter the following command in the Terminal −

sudo apt-get update

This will download and install the key for the PPA, and then update your software sources.

Removing a PPA using GUI

If you want to remove a PPA from your system, you can do so using the Software & Updates tool. Here are the steps −

Step 1: Open the Software & Updates Tool Step 2: Go to the Other Software Tab

In the Software & Updates tool, go to the “Other Software” tab. This tab displays all the third-party repositories that are currently enabled on your system.

Step 3: Select the PPA You Want to Remove Step 5: Close the Software & Updates Tool

Once Ubuntu has finished removing the PPA, close the Software & Updates tool. The PPA will no longer be available on your system.

Removing a PPA Using Terminal

If you prefer to use the Terminal, you can also remove a PPA using the command-line interface. Here are the steps −

Step 1: Open the Terminal Step 2: Remove the PPA

To remove a PPA, enter the following command in the Terminal −

sudo add-apt-repository --remove ppa:PPA-NAME

Replace “PPA-NAME” with the name of the PPA you want to remove. For example, if you want to remove the PPA for the GIMP image editor, you would enter the following command −

sudo add-apt-repository --remove ppa:otto-kesselgulasch/gimp Step 3: Update Your Software Sources

After you have removed the PPA, you need to update your software sources. To do this, enter the following command in the Terminal −

sudo apt-get update

This will remove the PPA from your system and update your software sources.

Benefits of Using PPAs in Ubuntu

PPAs can offer a number of benefits to Ubuntu users, including −

Access to the latest software − PPAs can provide access to the latest versions of software packages that are not yet available in the official Ubuntu repositories. This can be especially useful for developers who need access to bleeding-edge software for their work.

Increased software selection − PPAs can offer a wider selection of software packages than the official Ubuntu repositories, which can be useful for users who have specific software needs.

Easy installation and updates − Once you have added a PPA to your system, you can easily install and update software packages from that PPA using either the Ubuntu Software Center or the Terminal.

Tips for Using PPAs in Ubuntu

When using PPAs in Ubuntu, it’s important to follow some best practices to ensure that your system remains secure and stable −

Only add PPAs from trusted sources − Before adding a PPA to your system, make sure that it comes from a trusted source. PPAs from untrusted sources can potentially contain malicious software that can compromise your system’s security.

Be selective when adding PPAs − Adding too many PPAs to your system can potentially cause conflicts between packages and make it harder to maintain your system. Be selective when adding PPAs, and only add those that you really need.

Keep your PPAs up-to-date − Just like with the official Ubuntu repositories, it’s important to keep your PPAs up-to-date. Make sure to regularly update your software sources to ensure that you have access to the latest software packages.

Conclusion

Adding or removing a PPA in Ubuntu is a simple process that can be done using either the GUI or the Terminal. PPAs can provide access to a wide range of software packages that are not available in the official Ubuntu repositories, making them a powerful tool for Ubuntu users. However, it is important to only add PPAs from trusted sources to avoid any potential security risks. With the steps outlined in this article, you can easily manage PPAs on your Ubuntu system and ensure that you have access to the software you need.

Ubuntu Freezing Or Not Starting In Virtualbox

Virtual Machines are like a gateway to enjoying multiple OSs on a single system. A Windows user can enjoy Linux, Mac, and other operating systems. However, a lot of users are complaining that Ubuntu is freezing in Oracle VirtualBox. We are going to resolve this issue with some simple solutions.

Why is Ubuntu on VirtualBox so slow?

A very logical reason why Ubuntu runs slow on your system is the lack of resources. If you have a ton of applications running in the background, you can’t be expecting VirtualBox to run smoothly. It needs some resources and when you distribute your CPU, GPU, RAM to other apps as well, VirtualBox is left with scarce resources.

Talking about resources, when you create the VM, you allocate RAMs, CPUs, etc to it. Your VM tries to adjust its performance as per the resources you allocate to it, so, if you feed it fewer resources, it will make sure that it doesn’t crash by dialing down the resources.

There are some other settings that we are going to make to make the app work. If you want a smooth run with Ubuntu, then try the solutions and workarounds mentioned hereinafter. Without wasting any time, let us hop into it.

Ubuntu freezing or not starting in VirtualBox

Before going to the troubleshooting guide, it is important to update your system. Sometimes, updating alone can resolve the issue, so, do that and if it didn’t work, move to the solutions.

If Ubuntu is freezing in Oracle VirtualBox, check out the following solutions to resolve the issue.

Close other apps or restart

Turn off 3D Acceleration

Allocate more CPUs

Tweak other settings

Update VirtualBox

Reinstall Ubuntu

Let us talk about them in detail.

1] Close other apps or restart

This may not be a solution, but can be called a permanent workaround. Try closing all the apps before starting your VM. If that doesn’t work, restart your system, and see if it work. You are basically closing all the resource-hogging programs and giving utmost importance to the Virtual Machine. Hopefully, it will do the job for you.

2] Turn off 3D Acceleration

3D Acceleration has been causing problems to VirtualBox users regardless of the Operating System they are using. It was meant to grant a lot of different features to the mix, but in that process, it makes your VM crawl. So, follow the prescribed steps to turn off 3D Acceleration.

Open Oracle VirtualBox.

Untick Enable 3D Acceleration.

Restart your computer and check if the issue persists.

3] Allocate more CPUs

If you have not allocated more resources to your Virtual Machine, then you can still grant it more processors by going into the settings. This works for most users, as people don’t allocate a lot of resources during setting up the VM. You should follow the given steps to allocate more CPUs.

Open Oracle VirtualBox.

Use the slider to increase the Processor(s).

While you are there, go to the Motherboard tab and increase your Base Memory. Finally, restart your VM and system and check if the issue persists.

4] Tweak other settings

Read: VirtualBox displays Black screen and not Booting guest OS

5] Update VirtualBox

Ubuntu or other VM can also crawl on your computer because of a bug. Since you are not an Oracle developer, you can’t change the codes to get rid of the bug. That’s why it is better to check the update for VirtualBox. If you see an update, go ahead and download the package. Then install it and your issue will be resolved.

6] Reinstall Ubuntu

Your OS can get corrupted, which as a result can make your Ubuntu crawl. So, go to chúng tôi and download the Ubuntu ISO. Then install it on your VirtualBox, allocate it a good amount of resources, and hopefully, it will do the job for you.

Read: How to make VirtualBox VM full screen in Windows 11/10

Why is VirtualBox freezing?

VirtualBox usually freezes when it is not getting the perfect environment to run. The environment means an abundant amount of resources such as CPU, RAM, Storage, etc. Usually, we think that we have given everything it needs, but it still requires more. If you have more, give that to the machine and it will respond perfectly, otherwise, it will stutter.

Also Read: How to Install Windows 11 on Oracle VM VirtualBox.

Update the detailed information about How To Install Or Upgrade Php 8.1 On Ubuntu 20.04 on the Minhminhbmm.com website. We hope the article's content will meet your needs, and we will regularly update the information to provide you with the fastest and most accurate information. Have a great day!