• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/
  • On Plesk for Linux mod_status is disabled on upgrades to improve Apache security.
    This is a one-time operation that occurs during an upgrade. You can manually enable mod_status later if needed.

howto compile php from source?

F

faris

Guest
Can someone point me in the right direction please?

I want to try compiling php from source for use with Plesk.

I've been using Scott's wonderful RPMs until now, but it seems to me that it can't be all that hard to compile the dratted thing myself.

I've searched using google and have found a few sites offering me pretty easy instructions for a basic php compile.

But what I'm after is which options I should use when compiling, in order to get all the "goodies" that Scott adds via things like php-gd, php-mbcrypt and so on.

Some advice on what I might need already installed (other than gcc etc) before compiling would also be appreciated. For example do I need anything in particular already installed in order to add gd, mbcrypt etc support to php?

Please keep in mind that although I understand the basic concept of compiling, and that php gets "loaded" as an .so in httpd.conf, I'm somewhat unclear on many other things!

A good example of my confusion might be how the additional RPMs (e.g. php-mysql) add support for whatever the RPM is for (e.g. mysql) when we are only actually loading the original .so files in httpd.conf (I think??).

Thanks,

Faris.
 
Back
Top