Jump to content

Optimal VPS setup for prestashop 1.5


Recommended Posts

I was wondering if anyone could tell me if there is something specific i should look out for,

I'm moving over to a VPS with 1 2,5 Ghz core 1 Gb ram, and have some experience with setting up servers.

 

Any optimal software i should install to get that extra bit of speed out of my setup, all tips are welcome!

 

Kind regards

 

Denis

Link to comment
Share on other sites

I just found this article: http://www.howtoforg...zy-ubuntu-12.10

Explaining how to install prestashop 1.5.x on a VPS with nginx which is apparently a much faster alternative for Apache.

 

Here is the installation of Ubuntu 12.10: http://www.howtoforg...cot-ispconfig-3

 

the article was uploaded 2 days ago, so it seems like perfect timing! Just ordered my VPS am now waiting for the credentials.

 

Be sure to let me know how everything went!

 

 

 

J'ai trouvé cette article: http://www.howtoforg...zy-ubuntu-12.10

Qui explique l'installation de prestashop 1.5.x sur un VPS avec nginx qui est apparemment un alternative plus rapide d'Apache.

 

Et ici l'installation d'Ubuntu 12.10: http://www.howtoforg...cot-ispconfig-3

 

P.s.: my french sucks :P

Edited by DenisDenis (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...

Yes, i tried it and everything is working fine my site (www.deepdevotionshop.com) is now running on nginx using the tutorials i posted in my previous article.

 

The only thing that isn't working is friendly urls, the rewriting rules are different for nginx, so i'll have to look into this.

 

I also hired this guy on freelancer: http://www.freelancer.com/u/nostyia.html

I payed him €100 and he really optimized the server for maximum speed, very friendly guy and really worth the money.

Link to comment
Share on other sites

Just install LEMP & APC.

And add rewrited rules to your doamin (site-available or default).

I use theses rewrites rules which I picked from Nginx site and its working fine:

 

 

 

rewrite ^/api/?(.*)$ /webservice/dispatcher.php?url=$1 last;

 

rewrite "^/c/([0-9]+)(\-[_a-zA-Z0-9-]*)/(.*)\.jpg$" /img/c/$1$2.jpg last;

rewrite "^/c/([_a-zA-Z-]+)/(.*)\.jpg$" /img/c/$1.jpg last;

rewrite "^/([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/(\P{M}\p{M}*)*\.jpg$" /img/p/$1-$2$3.jpg last;

rewrite "^/([0-9]+)\-([0-9]+)/(\P{M}\p{M}*)*\.jpg$" /img/p/$1-$2.jpg last;

rewrite "^/([0-9])(\-[_a-zA-Z0-9-]*)?/(\P{M}\p{M}*)*\.jpg$" /img/p/$1/$1$2.jpg last;

rewrite "^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/(\P{M}\p{M}*)*\.jpg$" /img/p/$1/$2/$1$2$3.jpg last;

rewrite "^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/(\P{M}\p{M}*)*\.jpg$" /img/p/$1/$2/$3/$1$2$3$4.jpg last;

rewrite "^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/(\P{M}\p{M}*)*\.jpg$" /img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg last;

rewrite "^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/(\P{M}\p{M}*)*\.jpg$" /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg last;

rewrite "^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/(\P{M}\p{M}*)*\.jpg$" /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg last;

rewrite "^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/(\P{M}\p{M}*)*\.jpg$" /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg last;

rewrite "^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/(\P{M}\p{M}*)*\.jpg$" /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg last;

rewrite "^/([0-9]+)\-(\P{M}\p{M}*)+\.html(.*)$" /index.php?controller=product&id_product=$1$3 last;

rewrite "^/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$" /index.php?controller=category&id_category=$1$3 last;

rewrite "^/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$" /index.php?controller=product&id_product=$2$4 last;

rewrite "^/([0-9]+)__([a-zA-Z0-9-]*)(.*)$" /index.php?controller=supplier&id_supplier=$1$3 last;

rewrite "^/([0-9]+)_([a-zA-Z0-9-]*)(.*)$" /index.php?controller=manufacturer&id_manufacturer=$1$3 last;

rewrite "^/content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$" /index.php?controller=cms&id_cms=$1$3 last;

rewrite "^/content/category/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$" /index.php?controller=cms&id_cms_category=$1$3 last;

rewrite "^/module/([_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)$" /index.php?fc=module&module=$1&controller=$2 last;

rewrite ^/page-not-found$ /index.php?controller=404 last;

rewrite ^/address$ /index.php?controller=address last;

rewrite ^/addresses$ /index.php?controller=addresses last;

rewrite ^/authentication$ /index.php?controller=authentication last;

rewrite ^/best-sales$ /index.php?controller=best-sales last;

rewrite ^/cart$ /index.php?controller=cart last;

rewrite ^/contact-us$ /index.php?controller=contact last;

rewrite ^/discount$ /index.php?controller=discount last;

rewrite ^/guest-tracking$ /index.php?controller=guest-tracking last;

rewrite ^/order-history$ /index.php?controller=history last;

rewrite ^/identity$ /index.php?controller=identity last;

rewrite ^/manufacturers$ /index.php?controller=manufacturer last;

rewrite ^/my-account$ /index.php?controller=my-account last;

rewrite ^/new-products$ /index.php?controller=new-products last;

rewrite ^/order$ /index.php?controller=order last;

rewrite ^/order-follow$ /index.php?controller=order-follow last;

rewrite ^/quick-order$ /index.php?controller=order-opc last;

rewrite ^/order-slip$ /index.php?controller=order-slip last;

rewrite ^/password-recovery$ /index.php?controller=password last;

rewrite ^/prices-drop$ /index.php?controller=prices-drop last;

rewrite ^/search$ /index.php?controller=search last;

rewrite ^/sitemap$ /index.php?controller=sitemap last;

rewrite ^/stores$ /index.php?controller=stores last;

rewrite ^/supplier$ /index.php?controller=supplier last;

Link to comment
Share on other sites

yes, I use only English.

Try this

 

 

rewrite ^/([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg last;

rewrite ^/([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.jpg last;

rewrite ^/([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg last;

rewrite "^/lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$" /product.php?id_product=$3&isolang=$1$5 last;

rewrite "^/lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$" /product.php?id_product=$2&isolang=$1$4 last;

rewrite "^/lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$" /category.php?id_category=$2&isolang=$1 last;

rewrite ^/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 last;

rewrite ^/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 last;

rewrite ^/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 last;

rewrite ^/content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 last;

rewrite ^/([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 last;

rewrite ^/([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 last;

rewrite "^/lang-([a-z]{2})/(.*)$" /$2?isolang=$1 last;

 

and add if you missing pages

Link to comment
Share on other sites

×
×
  • Create New...