![apt get install redis apt get install redis](https://www.itzgeek.com/wp-content/uploads/2018/11/Install-Redis-on-CentOS-7.jpg)
Next, install the Redis extensions of PHP and MySQL with the following command: apt-get install php-redis php-mysql -y Once the repository is added, install the Redis server with the following command: apt-get install redis-server -y Next, add the Redis repository with the following command: add-apt-repository ppa:chris-lea/redis-server So you will need to add the Redis repository to your system.įirst, install the required packages with the following command: apt-get install software-properties-common gnupg2 -y Step 3: Install and Configure Redisīy default, the latest version of Redis is not included in the Ubuntu default repository. Once the installation has been finished, you can proceed to the next step. You can install it with the following command: apt-get install apache2 php libapache2-mod-php php-pdo php-json php-cli mysql-server -y
#Apt get install redis update
You can do this by running the following commands: apt-get update -yĪpt-get upgrade -y Step 2: Install LAMP Serverįirst, you will need to install the LAMP server in your system. Additionally, replace ‘root’ with the username of the admin account if necessary.īefore starting, you have to make sure that all Ubuntu OS packages installed on the server are up to date. You will need to replace ‘IP_Address’ and ‘Port_number’ with your server’s respective IP address and SSH port number.
![apt get install redis apt get install redis](https://www.fullstackpython.com/img/160516-redis-ubuntu-1604/apt-get-redis.png)
Step 1: Log in to the Server & Update the Server OS Packagesįirst, log in to your Ubuntu 20.04 server via SSH as the root user: ssh -p Port_number Access to the root user account (or access to an admin account with root privileges).An Ubuntu 20.04 VPS (we’ll be using our SSD 2 VPS plan).Step 5: Create a PHP Application to Fetch Data from MySQL.Step 1: Log in to the Server & Update the Server OS Packages.