Install REDIS with Plesk Onyx

This is a quick guide on how to install both the Redis PHP extension as well as the daemon via SSH on a Plesk Onyx webserver.

REDIS provides memory caching for frequently accessed objects.


How to install the plugin:

Log in to the command line via SSH as the ROOT user and run the following commands line-by-line.


yum groupinstall 'Development Tools'
yum install tcl wget

Debian and Ubuntu

apt-get install build-essential
apt-get install tcl wget

Download and Compile latest Redis 4:

tar xvzf redis-stable.tar.gz
cd redis-stable/
make distclean
make test
make install

Install your Redis-server Service:

cd utils/

Allow memory overcommit

This will allow REDIS to use more memory than it has been allocated by Plesk if required.

echo "vm.overcommit_memory = 1" >>  /etc/sysctl.conf  && sysctl  -p

Disable transparant_hugepage

echo never > /sys/kernel/mm/transparent_hugepage/enabled

Start and test your Redis service

This will ensure REDIS starts when your server boots and checks to ensure the installation completed successfully.

systemctl start redis_6379
systemctl status redis_6379

Add Guest Order to a Customer Account in Magento

To get the customer_id simply go to Customers > Manage Customers in the Magento admin.

Log in to the MySQL and execute the following queries:

UPDATE sales_flat_order 
 SET customer_id = (YOUR-CUSTOMER-ID), customer_is_guest=0 
 WHERE entity_id = YOUR-ORDER-ID AND customer_id IS NULL
UPDATE sales_flat_order_grid 
 SET customer_id = YOUR-CUSTOMER-ID
 WHERE entity_id = YOUR-ORDER-ID AND customer_id IS NULL