Compiling PHP from source

I’ve been looking into compiling PHP from source and was wondering if there are any specific ./configure switches that are needed in order to run in line with Virtualmin.




I might suggest taking a look at how CentOS, Debian, or Ubuntu (depending on your distro) compile them, based on the source files for the packages in those distributions.

Largely, it’s going to come down to just making sure you compile in the features that you’re using. Virtualmin doesn’t use PHP, it just makes it available to your domains.

That said – if your server is currently setup to use, say, FCGID, and you don’t enable FCGID when you compile PHP, that’ll cause trouble :slight_smile: