Jump to content

Ubuntu VPS server optimization for speed?


jvicente1971

Recommended Posts

Hi guys.

 

I'm trying to find information about configuring and fine tunning my server for prestashop. 

 

I went to google 

 

https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.vitalita.pt%2F&tab=desktop

 

And if you check it I have some errors to optimize my shop. 

 

Can any one please help me about this subject???

 

 

Link to comment
Share on other sites

Some of the errors you can debug by simply searching on the net for ubuntu configuration (cache, compression), or use the link Google is offering you on that pagespeed test tool: https://developers.google.com/speed/docs/insights/EnableCompression

 

Others, like browser caching you will find also on the net for .htaccess (search for .htaccess and mod_expires).

 

Compression for images you also can find on ubuntu tutorials over the net. If not alternatively you can compress your images on local machine with caesium (free downloadable tool) and than upload them again to your webspace on same place you downloaded them.

 

For to have more speed you can install ngnix over apache for your ubuntu. This is what I'm using and have the best speed you can achieve (10.000 products, over 300 filter option possibilities and a loading time of 3 seconds). BUT ngnix needs to be managed a part and you will have problems with compression too. I in this case don't care cause the average is grade A (only 92), I guess 100% is not possible to achieve at all, not for a shopping cart like Prestashop.

Link to comment
Share on other sites

To get more internal information,  for performance tuning:

 

for internal PS stats on page loads use the native PrestaShop profiling tool.  Note: once enabled anyono front/back will see stats so turn off when not using

 

in config/defines.inc.php set this to true.

 

define('_PS_DEBUG_PROFILING_', false);
 
then load page and scroll to see stats below your footer.
 
also make sure to open phpmyadmin, there you can run report and it will tell you how to better turn your mysql db...nobody talk about this but it's the most important facet.
 
php, make sure it's 1) fastcgi and 2) and support opcache...
 
As for VPS, it's what it is, grow your business so you can budget a dedicated server.
 
happy day, ell
Link to comment
Share on other sites

Hi guys, Thanks for the answers. In this meantime I decided to upgrade to Dedicated Server. Now more than ever I need help to fine tuning my server for best performance under prestashop.

 

I installed ubuntu 14.04 and plesk under 64 bits machine. First thing I've done so far was to change php.ini under /etc/php5/apache2 with the following:

 

memory_limit = 128M
upload_max_filesize = 16M
max_execution_time = 60
file_uploads = On
allow_url_fopen = On
magic_quotes_gpc = Off (couldn't find this command on my file)
register_globals = Off (couldn't find this command on my file)

 

Also....opcache... It is inactivated by default. So I changed php.ini with the folowing:

 

opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=5000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1

 

I didn't even install prestashop...I will do a full migration from VPS but before that I would like to have your advise to finetunning my server.

 

What to do next?

 

And after install prestashop what kind of finetunning do I need to make inside prestashop?

 

Thanks in advance 

Link to comment
Share on other sites

I'd download vanilla version of your existing PrestaShop and run the installer.  Then PrestaShop during installation can check for server compatibility.  Otherwise if there is potential config issue you will need to debug it and that is time consuming.

 

Do not forget to look at your mysql setup, cache values etc.  This is most critical performance bit that is never talked about.  

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...