How to Remove the Default php-fpm www Pool File

If you’ve set up a php based site using php-fpm you have probably copied the default www pool configuration file and edited the copy. It’s good to deactivate the default www . conf file so it doesn’t consume any resources since it’s not used at all. When doing destructive things it’s good practice to rename the file or move it to another location in case you need this later.

Some people prefer to delete it though. Those files consume so little space that it doesn’t matter if it’s deleted or not.

In our case the installed php version was 7.4. so the pool.d folder is in /etc/php/7.4/fpm/pool.d/


Open your ssh terminal or putty/kitty on Windows.

Then go to /etc/php/7.4/fpm/pool.d directory and then rename the www.conf file to something else.

cd /etc/php/7.4/fpm/pool.d

mv www.conf www.conf-inactive 

It’s good to call reload (graceful restart) so any existing connections are not interrupted.

service php7.4-fpm reload

Image credit: php elegaphan by ben griffiths on unsplash