Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there @dualbix,
There are a few things which could be causing the problem:
I can see that your WordPress installation is now up and running. Would you mind sharing here with the community how did you get this to work?
Regards, Bobby
The intermittent timeout and slow-loading issues you’re experiencing with your WordPress site on a Raspberry Pi 4 LEMP server could stem from various factors, particularly performance limitations and configuration. Here’s a comprehensive approach to troubleshoot and resolve these issues:
Raspberry Pi 4 has limited resources (4GB RAM, ARM processor), and WordPress can be resource-intensive.
htop or top to check server load:htop
Monitor Disk I/O: Use iotop to check if disk operations are causing delays:
sudo apt install iotop
sudo iotop
Ensure your Nginx is optimized for low-resource environments:
/etc/nginx/nginx.conf) and set reasonable limits:worker_processes auto;
worker_connections 1024;
keepalive_timeout 10;
client_max_body_size 64M;
server_tokens off;
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
gzip_min_length 256;
WordPress heavily relies on PHP, and poorly configured PHP-FPM can cause timeouts.
/etc/php/7.x/fpm/pool.d/www.conf (adjust 7.x to match your PHP version):sudo nano /etc/php/7.x/fpm/pool.d/www.conf
pm = dynamic
pm.max_children = 10
pm.start_servers = 3
pm.min_spare_servers = 2
pm.max_spare_servers = 4
These values are optimized for low-resource systems like Raspberry Pi.
Restart PHP-FPM:
sudo systemctl restart php7.x-fpm
/etc/mysql/mariadb.conf.d/50-server.cnf and add:query_cache_size = 16M
query_cache_limit = 1M
query_cache_type = 1
SET GLOBAL slow_query_log = 'ON';
sudo mysqlcheck -o --all-databases
Caching can drastically reduce server load and improve response times.
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
Review server logs for timeout errors or warnings:
sudo tail -f /var/log/nginx/error.log
sudo tail -f /var/log/php7.x-fpm.log