Webmin: Change php-fpm port numbers start value from 8000 to user value

Created on 31 Jul 2019  路  10Comments  路  Source: webmin/webmin

At now Virtualmin starts to search php-fpm ports from 8000 number. But many servers actively use 8000-8100 range for other service (especially 8080).
Will be good to make this number configurable, for ability to change start port numbers (or range) to 11000, or any other user defined value.

All 10 comments

Not a bad suggestion. Maybe 9000 would be a better port to start from?

Yes, 9000 seems better start range, that 8000, it mentioned very often in examples for php-fpm. But on some servers it also can be busy, so will be good to have ability for configure it.

Many application servers use 9000 range because it's well know the 8000 range is already taken by web servers.
So the range default should be something typically unused ie 11000, and let it be admin configurable.

Perhaps, just letting the user to define the port range would satisfy all eventually?

Yes. Default should be a number much higher number than all the most common textbook examples (8000, 9000, and 10000).

I've just checked in a change to allow that, for inclusion in the next release.

Default of 8000 is fine. There is a reasonable assumption that a Virtualmin system is dedicated to use by Virtualmin and the services it manages...it won't generally be running a bunch of other services on weird ports, and 8000 is a very common starting point for app servers. Being configurable solves all use cases, including unusual ones (like running other random stuff on your Virtualmin system).

BTW, if you have the lsof command installed, Virtualmin will skip any ports already in use by running servers.

if you have the lsof command installed, Virtualmin will skip any ports already in use by running servers.

_lsof_ available on all -linux distros.

I've just checked in a change to allow that, for inclusion in the next release.

That works just great, thanks Jamie!

It's available, but not necessarily installed by default.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

erlangp picture erlangp  路  8Comments

muhammadwafa picture muhammadwafa  路  8Comments

ctgreybeard picture ctgreybeard  路  7Comments

Ramaqele picture Ramaqele  路  6Comments

MHeuvel picture MHeuvel  路  6Comments