By santhosh2116
hello , greetings of the day,
respects to seniors,
my website mydigitalnews.in is running on digitalocean starter pack with plesk, it build on codeigniter based script, and running slow and also showing 4.2 seconds, some times , 3 seconds, what to do ? please letme know
what are the measures and steps needed to improve this,
https://www.webpagetest.org/result/201027_Di0P_51671dea818785d54f8d642931c280f8/
NOTE :- I am junior, novice, new to digitalocean ,
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @santhosh2116 ,
There are a few things I would like to suggest you in trying to optimize both your website and server. Let’s start with the server first
Before we start, make sure you create a snapshot of your Droplet in case something gets broken and you need to revert the changes
Server Optimization
1.I’ll recommend you to upgrade to the latest possible PHP version. At the time of writing it’s php7.4.
2.Start thinking about using PHP-FPM on your server. That’s it if you haven’t already installed and configured it.
Install a server side cache like Opcache.
Start using Redis for a much better performance. You’ll need to connect Redis with your website.
Website Optimization
Add Gzip and browser levarage caching in your .htaccess if using Apache and if you are using Nginx, add it in the configuration’s file.
Use PageSpeed Insight’s tool here - https://developers.google.com/speed/pagespeed/insights/ to try and determine what you can improve on the website itself.
Lastly, I’ll recommend using CloudFlare. It should help with accessing your website and caching it properly.
Regards, KDSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.