在Ubuntu 16.04上运行PHP7.2 ZTS + PThreads; 安装其他软件包

I have a test server running Ubuntu 16.04. I managed to compile PHP 7.2.2 with ZTS from source and installed PThreads on it.

Now, how do I proceed with further setting up PHP without damaging my installation? If I try to install, let's say PHP Curl or Apache's PHP 7.2 module, Ubuntu wants me to install php7.2-common, etc. which would overwrite my current installation.

Is there a safe way to install additional PHP modules and hook up PHP with Apache2?

Thank you in advance!