New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Need help optimizing my web server settings
InvisibleRasta
Member
in Help
Hello guys, I have been running a small webserver off a cheap vps for my business with wordpress and lately it is feeling a bit slow and I am wondering if i have some webserver settings wrong. The website is a small woocommerce site.
Here are some of the configs I am using.
/etc/php/7.4/fpm/php.ini
https://dpaste.com/GP43YWJQE
/etc/apache2/apache2.conf
https://dpaste.com/6ZY76GM9P
If you need any other config please let me know.
Thank you
Comments
If it was running smoothly before, something might be wrong with WordPress itself.
Try cleaning Database, I use WP Optimize for this. Use CDN to deliver static Content, I use Cloudfront.
Use caching plugins to serve cached pages, I use Cache Enabler and Jetpack Boost for the same.
Also if you're running your Database software on the same Vps, it might also slow down, as you mentioned it's a cheap VPS.
Install this plugin to run benchmark and then apply fixes.
https://wordpress.org/plugins/wpbenchmark/
I would recommend:
nginx instead of apache
PHP-FPM 8.1 or 8.2 instead of PHP 7.4
Default settings are ok for low traffic websites. 10 000+ unique visits per day is the starting point to fiddle with web server.