... and other useful things



WordPress rewrite for Nginx

WordPress rewrite for Nginx Add the following line to Nginx site defintion: try_files $uri $uri/ /index.php?$args; Example:         root /www/htdocs/site.tld;         index index.php index.html;         try_files $uri $uri/ /index.php?$args;         location ~ \.php$ {                 include /etc/nginx/fastcgi_params;                 fastcgi_pass;… Continue Reading →

Restart PHP-FPM

Restart PHP-FPM Using SysV Init scripts directly: /etc/init.d/php-fpm restart   # typical /etc/init.d/php5-fpm restart   # debian-style Using service wrapper script service php-fpm restart    # typical service php5-fpm restart   # debian-style Using systemd (newer servers): systemctl restart php-fpm.service   # typical systemctl… Continue Reading →

Wordpress theme design by Anders NorenUp ↑