PHP user.ini file

If you don't use ".user.ini" file (or if you don't know what it does), disable it to improve the performance of PHP processes!


Display Active Conf in php-fpm pool

Php-fpm pool configuration contains 400+ lines (for example in Ubuntu 16.04). In reality, we may use only about 20 lines or less than 5% of the file. The original configuration file contains lines that explains what each config does. It is good practice to have inline documentation. In certain cases, we may want to know what lines are … Continue reading Display Active Conf in php-fpm pool

systemctl automatically restart service

References: Ensure systemd services restart on failure by Jon Archer php-fpm systemd unit with auto-restart by Juan Luis Boya García systemd Project Web Page systemd is a system and service manager that runs as PID 1 and starts the rest of the system and services. The main command used to introspect and control systemd is systemctl. Basically … Continue reading systemctl automatically restart service

nginx: [emerg] unexpected end of file, expecting “;” or “}” in filename:linenumber

I created a new vhost for a domain to serve static files. Here's the config...   server { server_name; root "/path/to/; index index.html; access_log /var/log/nginx/; error_log /var/log/nginx/; location / { try_files $uri $uri/ /index.html; } } It can't get simpler than this. However, when I checked the configuration with `nginx -t`, it threw the … Continue reading nginx: [emerg] unexpected end of file, expecting “;” or “}” in filename:linenumber