Fix Rackspace Deployment Magento Server - Varnish / Memcache




I wanted to test a VPS server (4GB) service called 'Deployment' from With this service 'Deployment' you choose how they setup the server for you, in my case it's Magento.

Look here [url removed, login to view]

So they setup the VPS for Magento (VPS Image) and install a default Magento 1.8. On there default Magento 1.8 everything works well, there default is set-up with memcache ([url removed, login to view]) and Varnish.

This is my problem, via SSH I copy my current Magento onto this Rackspace server and I get this error:

Error 503 Service Unavailable

Service Unavailable

Guru Meditation:

XID: 635759515

Varnish cache server

1. So I need my Magento working as it should on this VPS Magento Deployment server. I don't want to upgrade to 1.8 Magento yet. I want my Magento working with memcache and Varnish. The Varnish plugin is not installed also. So maybe this is the problem.

2. My current Magento is working OK on an Apache web server just fine, so I think my .htaccess files will also need to be converted to work for Nginx.

This is how the Rackspace server is set-up.


This deployment was stood up using chef-solo. Once the deployment is up, chef will not run again, so it is safe to modify configurations.

A system user named 'magento' has been created. This user does not have a password set, so if you wish to use the account, a password will need to be set. This account is the system user for PHP-FPM, so deletion of this user will take eCommerce site down.

Nginx is used as the web server and listens on port 8080 and 443 to handle web traffic. The configuration for your site can be found in /etc/nginx/sites-enabled. There will be a default site configuration, and a seperate one for SSL traffic. Magento itself is installed in /var/www/vhosts. You will find a directory with the name of website you entered as a part of this deployment. The SSL certificates used are self signed and were generated when this deployment was created. You can replace the private key and certificate by overwriting the ones in /etc/nginx/ssl.

PHP-FPM is used to handle evaluation of all PHP-based pages. The configuration for this installation is in /etc/php5/fpm/pools/magento.conf. By default, PHP-FPM is running as the 'magento' user, listens on

Varnish is listening on port 80, and will handle all HTTP traffic. Varnish provides a caching layer to serve static content directly from memory. Anything that is not in cache will be passed onto Nginx. Varnish will greatly improve your site's performance, especially as traffic grows. We leverage the VCL provided by the Magento PageCache module. The configuration file is /etc/varnish/default.vcl.

Object and session caching are handled by Memcached. Memcache helps performance by storing data in memory for faster responses to clients. These caches help lessen the number of queries required to the database. There are two seperate instances of Memcached running to ensure session and object caching are handled seperately. The session cache is listening on, and is set as a 512MB cache. The object cache is listening on, and it is set as a [url removed, login to view] cache. The configuration files are [url removed, login to view] and [url removed, login to view] in /etc.

MySQL 5.5 is installed as the database backend. All configuration with Magento has been handled as a part of the setup. The MySQL root password is provided as a part of this deployment. If you lose or forget the password, it can also be found in /root/.my.cnf.

MySQL backups are performed nightly by Holland. Backups can be found in /var/lib/mysqlbackup.

Skills: Linux, Magento, Nginx, PHP, System Admin

See more: xml web server, xml guru, website certificate error fix, web based ssh, upgrade cache, test guru, ssh copy directory, setup-guru, setup guru, server guru, private chef website, php5 web service, number guru, nginx test, nginx 0.7, i need a chef, improve web traffic, how to use guru com, how to set up an ecommerce site, how to improve your website traffic, how to improve web traffic, how to improve traffic to your website, how to improve site traffic, how to improve my website traffic, how to get traffic to your website 2014

Project ID: #5348119