How to speed up websites on Plesk hosting?

Moebuntu

Well-known member
Registered
Joined
Jul 1, 2016
Messages
103
Points
18
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

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
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
Registered
Joined
Jul 1, 2016
Messages
103
Points
18
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

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
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
Registered
Joined
Sep 27, 2016
Messages
263
Points
28
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

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
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
Registered
Joined
May 24, 2017
Messages
58
Points
8
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
4,853
Replies
4
Views
2,619
Replies
2
Views
2,660
Latest Threads
Replies
0
Views
42
Replies
0
Views
30
Replies
0
Views
168
Replies
0
Views
74
Replies
0
Views
68

Latest Hosting OffersNew Reviews

Sponsors

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