If you absolutely need to use the cPanel version of Apache, then I’d imagine that you’d be able to use mod_tile with that, but not install it cleanly. I’d probably do a clean install on another server and manually copy from there. However, the resulting “Frankenstein’s Monster” isn’t going to be easily maintainable.
If you don’t need cPanel’s version of Apache then remove that and install the latest Apache as normal.
Other options include Docker and various virtualisation options.