Update VestaCP to PHP 7 on CentOS 7

First let’s make sure your server is up to date.

sudo yum update

Now we make sure that yum-utils is installed

sudo yum install yum-utils

If it’s already installed, great move on to the next step, if not then allow it to install.
Now we can enable remi-php70
sudo yum-config-manager –enable remi-php70

Now we can tell yum to update, this will upgrade our old version of PHP to 7
sudo yum update

sudo service php-fpm restart

php -v

How To Install and Configure Redis on Ubuntu 16.04

I’ll show you, how to install and configure Redis on Ubuntu 16.04. Redis is an in-memory data structure store primarily used as a database and cache. Installing Redis on Ubuntu 16.04 is an easy task, just follow the steps bellow and you should install, configure and use Redis on Ubuntu 16.04.

1. Connect via SSH
Connect to your Linux server via SSH, resynchronize the package index files from their sources and install the newest versions of all packages that are currently installed on your server by using the following commands:

sudo apt-get update
sudo apt-get upgrade
Once the upgrade is completed you can move on to the next step.

2. Install Redis on Ubuntu 16.04
Installing Redis on an Ubuntu VPS is simple. Run the command below to install Redis on your machine:

sudo apt-get install redis-server
If you are planning on using Redis as an object cache for WordPress or any other PHP-based application, you need to install the following package too:

sudo apt-get install php-redis
3. Configure Redis as a cache on Ubuntu 16.04
To configure Redis as a cache you need to edit the /etc/redis/redis.conf file. We will use nano as a text editor for this purpose, but you can use any text editor of your choice.

sudo nano /etc/redis/redis.conf
To configure the max memory for Redis as well as how Redis will select what to remove when the max memory is reached, add the following lines at the end of the file:

maxmemory 128mb
maxmemory-policy allkeys-lru
In this example, Redis will remove any key according to the LRU algorithm when the max memory of 128mb is reached. Save and close the file, then restart the Redis service:

sudo systemctl restart redis-server.service
Next, enable Redis on system boot:

sudo systemctl enable redis-server.service

reset password of vultr server debian 7

  1. login into console from vultr console panel
  2. restart the server, while server start booting stop it by press esc key
  3. You will see a GRUB boot prompt – press “e” to edit the first boot option.
  4. Find the kernel line (starts with “linux /boot/”) and add init=”/bin/bash” at the end of the line
  5. Press CTRL-X or F10 to boot.
  6. System will boot and you will see the root prompt.then type passwd to change password. put your new password
  7. reboot it again . that’s all