How to speed up websites on Plesk hosting?

Moebuntu

Well-known member
Joined
Jul 1, 2016
Messages
103
Best answers
0
Ratings
2 1
Points
18
#1
I am using Plesk for running scripts and some small sites on a Plesk hosting. I want to improve speed for them, are there any options in Plesk can i enable that help boosting loading speed for a php website or a custom script?
 

VirtuBox

Global Mod
Staff Member
Joined
May 3, 2016
Messages
1,524
Best answers
4
Ratings
398 12
Points
83
#2
hello Moebuntu,
at first are you using php7 for your websites ? because that's the first way to make them faster.
After that, you can edit the php settings to allow more resources usage :

Some settings you can change :

Code:
max_execution_time = 300
max_input_time = 300
memory_limit = 2048M
And the opcache settings i'm using with php7
Code:
[opcache]
opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=256
opcache.interned_strings_buffer=4
opcache.max_accelerated_files=20000
opcache.max_wasted_percentage=5
opcache.validate_timestamps=1
opcache.revalidate_freq=2
opcache.optimization_level=0xffffffff
To improve performance, you can also use some caching system like memcached or redis if your script allow to use them.
I have write two scripts to install the PECL extensions memcached and redis for Plesk Onyx on debian 8 jessie. You can find them on my git
 

Moebuntu

Well-known member
Joined
Jul 1, 2016
Messages
103
Best answers
0
Ratings
2 1
Points
18
#3
hello Moebuntu,
at first are you using php7 for your websites ? because that's the first way to make them faster.
After that, you can edit the php settings to allow more resources usage :

Some settings you can change :

Code:
max_execution_time = 300
max_input_time = 300
memory_limit = 2048M
And the opcache settings i'm using with php7
Code:
[opcache]
opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=256
opcache.interned_strings_buffer=4
opcache.max_accelerated_files=20000
opcache.max_wasted_percentage=5
opcache.validate_timestamps=1
opcache.revalidate_freq=2
opcache.optimization_level=0xffffffff
VirtuBox, where can I put these codes? I am new to Plesk. Adding on each website or in a configuration file that affect for all?
I'm using PHP7 and seeing that it is boosting loading speed for my web pages.

To improve performance, you can also use some caching system like memcached or redis if your script allow to use them.
I have write two scripts to install the PECL extensions memcached and redis for Plesk Onyx on debian 8 jessie. You can find them on my git
If my scripts don't allow memcached or redis then how? I am running different scipts and some WP sites on Plesk but I would speed up for all in a common way. I check your scripts but don't know how to use. Readme file lacks of information.
 

VirtuBox

Global Mod
Staff Member
Joined
May 3, 2016
Messages
1,524
Best answers
4
Ratings
398 12
Points
83
#4
VirtuBox, where can I put these codes? I am new to Plesk. Adding on each website or in a configuration file that affect for all?
I'm using PHP7 and seeing that it is boosting loading speed for my web pages.
You can edit them in Tools & Settings > PHP Settings - it will set them as default, after for each site, go in php settings to make sure it use the default values

Screenshot_17.png

If my scripts don't allow memcached or redis then how? I am running different scipts and some WP sites on Plesk but I would speed up for all in a common way. I check your scripts but don't know how to use. Readme file lacks of information.
For custom scripts, there is probably no caching system available.
I will add more informations and a tutorial to use redis caching with WordPress with Plesk Onyx.
 

24x7CSM

Well-known member
Joined
Sep 27, 2016
Messages
219
Best answers
0
Ratings
27
Points
0
#5
Well ... In order to make the website fast ofcourse Plesk will help however you will need to optimize the website as well as server resources too. Tuning the server performance , making website as zipped as you can , setting up mysql parameters and apache parameters. Also make sure the images of the website are smushed enough in size and it will enhance the speed of the website.
 

VirtuBox

Global Mod
Staff Member
Joined
May 3, 2016
Messages
1,524
Best answers
4
Ratings
398 12
Points
83
#6
VirtuBox
For me there are two optimization categories :

1) Loading speed : optimization -> server configuration, caching system, resources availables

2) Website Pagespeed score : optimization -> gzip content, compress image, defer assets, etc

But the second one is more to have a Google friendly website than to make a website loading faster. You can have a fast website with a bad pagespeed score or the inverse.
 

jyy

Member
Joined
May 24, 2017
Messages
58
Best answers
0
Ratings
5
Points
8
#7
Adding to the list of things to help out, I have to say that having a VPS or dedicated server would be a big help. Also, if you have WordPress, you should look into caching plugins. Finally, if you do have a VPS or higher (and Plesk 11.5 or higher) than you might want to look into ways of modifying php-fpm and ningx.

Oh, by the way, there was some mention on here about image compression. Well, there are two popular WP plugins that could help out: Imagify and WP Smush.
 
Newer Threads
Replies
8
Views
1,531
Replies
4
Views
774
Replies
2
Views
978
Latest Threads
Replies
0
Views
4
Replies
2
Views
10
Replies
0
Views
6
  • Awaiting approval
Replies
0
Views
2

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top