<\/span><\/h2>\n\n\n\nFirst, you will need to log in to your Ubuntu 20.04 VPS via SSH as the root user:<\/p>\n\n\n\n
ssh root@IP_ADDRESS -p PORT_NUMBER<\/code><\/pre>\n\n\n\nNext, run the following commands to upgrade all installed packages on your VPS:<\/p>\n\n\n\n
apt-get upgrade -y<\/code><\/pre>\n\n\n\napt-get update -y<\/code><\/pre>\n\n\n\n<\/span>Step 2 : Install Apache and PHP<\/span><\/h2>\n\n\n\nNextcloud runs on the webserver and PHP-based application. So you will need to install the Apache webserver, PHP and other required PHP extensions in your server. You can install all of them with the following command:<\/p>\n\n\n\n
apt-get install php7.4 libapache2-mod-php7.4 php7.4-xml php7.4-cli php7.4-cgi php7.4-mysql php7.4-mbstring php7.4-gd php7.4-curl php7.4-zip php-imagick php7.4-json php7.4-intl -y<\/code><\/pre>\n\n\n\nOnce all the packages are installed, verify the PHP version using the following command:<\/p>\n\n\n\n
php -v<\/code><\/pre>\n\n\n\n
You should see the following output:<\/p>\n\n\n\n
PHP 7.4.3 (cli) (built: May 5 2020 12:14:27) ( NTS )\n Copyright (c) The PHP Group\n Zend Engine v3.4.0, Copyright (c) Zend Technologies\n with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies<\/code><\/pre>\n\n\n\n