Note: prepend sudo
if not root
-
Using SysV Init scripts directly:
/etc/init.d/php-fpm restart # typical /etc/init.d/php5-fpm restart # debian-style /etc/init.d/php7.0-fpm restart # debian-style PHP 7
-
Using service wrapper script
service php-fpm restart # typical service php5-fpm restart # debian-style service php7.0-fpm restart # debian-style PHP 7
-
Using Upstart (e.g. ubuntu):
restart php7.0-fpm # typical (ubuntu is debian-based) PHP 7 restart php5-fpm # typical (ubuntu is debian-based) restart php-fpm # uncommon
-
Using systemd (newer servers):
systemctl restart php-fpm.service # typical systemctl restart php5-fpm.service # uncommon systemctl restart php7.0-fpm.service # uncommon PHP 7
Or whatever the equivalent is on your system.
Related Posts:
- Nginx 1 FastCGI sent in stderr: “Primary script unknown”
- How can I use environment variables in Nginx.conf
- Nginx: Failed to start A high performance web server and a reverse proxy server
- Nginx 403 forbidden for all files
- nginx: connect() failed (111: Connection refused) while connecting to upstream – after update nginx –
- How to use NGINX as forward proxy for any requested location?
- “configuration file /etc/nginx/nginx.conf test failed”: How do I know why this happened?
- nginx – two subdomain configuration
- GeoIP.dat.gz and GeoLiteCity.dat.gz not longer available? Getting 404 trying to load it
- Why am I getting 404 not found on this wordpress subdomain on my Nginx server?
- Nginx FastCGI_Cache Vs PHP Caching
- wp-json/ return 404, but wp-json/wp/v2/ works fine on my nginx server
- WordPress media upload “HTTP error”
- Block PHP Files Nginx
- NGINX conf on WP Multisite enabled — subdirectory — images fail to load after updates
- Configuring Routing Rules for WordPress+Nginx and WP-SuperCache?
- Mysterious HTTP 404 header in my own scripts
- Installation failed: Could not create directory – CentOS 7
- REST API parameters not working with nginx
- Difference between these two nginx try_files statements for WordPress?
- How to test drive WordPress on VPS with LEMP stack before going live?
- nginx.conf appeared in all WordPress installations on folder
- nginx php-fpm, and auto updates?
- nginx wordpress subdirectory Invalid post type
- Nginx + Redirection Plugin breaks Permalinks [closed]
- How to combine wordpress_logged_in cookies in one cookie?
- ERROR: No such service: nginx when building wordpress with docker [closed]
- Nginx tries the wrong file when http_cookie matches logged_in
- Site resolves to www in Firefox and without in Chrome
- WordPress Nginx Won’t 404
- WordPress file not found and 403 forbidden
- how to combine wordpress htaccess on my root domain + php on subfolder
- WordPress & Fastcgi proper setup?
- Correct regex for Nginx FastCGI cache?
- Random occurences of 502 Bad Gateway using WordPress and Nginx
- Large Woocommerce Site (83,000 items), What Can I Do? [closed]
- SSL via different domain & path with NGINX/PHP-FPM/WP
- Limit file downloads to logged in users (WP + Nginx)
- /blog/wp-json/ nginx return 404
- WordPress with Photocrati Theme keeps resetting site URL – help solving underlying problem
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- NGINX / WordPress Site – Increasing php.ini max_execution_time = 600 doesn’t work
- Nginx WordPress and another Web app URL structure
- Nginx redirects to an extra subdirectory
- How to debug failed changes to posts?
- Something is injecting a slash after any static file response , server is nginx
- Which version of PHP-FPM is necessary to work with WP 3.5?
- Migrating site, only header shows
- Custom permalinks not work on Nginx + Apache
- Infinite Loop in WordPress Installation
- Last-Modified header is removed from server response!
- WordPress on Ubuntu – “File not Found” for home.php – Trying to Redirect to Root Folder
- How to route root path / to /xyz in nginx?
- 504 Gateway Time-out nginx/1.14.0 (Ubuntu)
- Why can’t I connect to the wordpress install page with Nginx?
- WordPress + Nginx (Lightsail) problem with ajax
- Can I do fragment caching with NGINX fastcgi?
- How to solve 404 permalink errors on nginx server
- Proxy caching WordPress with Nginx
- How to configure nginx for wordpress
- Pagespeed Error in Nginx
- Rewrite old post images to https
- Varnish + Nginx for WordPress is Good?
- Access denied unless I add trailing /
- WordPress directories not writable after PHP version upgrade
- In Nginx, how can I rewrite all http requests to https while maintaining sub-domain?
- Why do I need Nginx and something like Gunicorn?
- Nginx reverse proxy + URL rewrite
- How can I see which flags Nginx was compiled with?
- How to force or redirect to SSL in nginx?
- How do I add Access-Control-Allow-Origin in NGINX?
- nginx HTTPS serving with same config as HTTP
- How to reply with 200 from Nginx, without serving a file?
- Nginx config reload without downtime
- Nginx enable site command
- How to remove the path with an nginx proxy_pass
- How to output variable in nginx log for debugging
- Make nginx to pass hostname of the upstream when reverseproxying
- connect() failed (111: Connection refused) while connecting to upstream
- Can I hide all server / os info?
- Nginx: How do I forward an HTTP request to another port?
- Setting expires headers for static content served from nginx
- How to restart nginx?
- How to disable timeout for nginx?
- What does this nginx error “rewrite or internal redirection cycle” mean?
- Differences and dis/advanages between: Fast-CGI, CGI, Mod-PHP, SuPHP, PHP-FPM
- How does try_files work?
- nginx – client request body is buffered to a temporary file
- Do you need separate IPv4 and IPv6 listen directives in nginx?
- an upstream response is buffered to a temporary file
- Disable caching when serving static files with Nginx (for development)
- How to make a modification take affect without restarting nginx?
- How to use nested Nginx location blocks (prefixes vs. regex directives)?
- Nginx Redirect via Proxy, Rewrite and Preserve URL
- Nginx – root versus alias, for serving single files?
- Why do I need nginx when I have uWSGI
- Nginx redirect one path to another
- Remove “www” and redirect to “https” with nginx
- Loading WordPress Site Inside iframe won’t allow users to login
- How can I improve and optimise my wordpress web server for better performance in 2023