View previous topic :: View next topic |
Author |
Message |
robertwolfe -
Joined: 21 Sep 2018 Posts: 4 Location: Southaven, MS USA
|
Posted: Fri Sep 21, 2018 7:55 pm Post subject: Building PHP From Source |
|
|
Hi all! I have available prebuilt 64-bit binaries. I would be happy to provide the link to download my prebuilt binaries (that I use with Abyss under CentOS 7.5).
However, should you wish to build your own from source, you can do so using the following configure command:
Code: | ./configure --prefix=/opt/php73 --with-mysqli --with-gd --enable-fpm --enable-mbstring --with-mysql --with-mcrypt --enable-sockets --with-penssl --with-gmp --with-gettext --with-pdo_mysql |
Then when you run 'make install' after running 'make', PHP (v7.3 in this case) will install in the /opt/php73 directory. This method is good when you have differing version of PHP installed for different web sites (as I do). Please note, too, that the necessary header files will also need to be present when building from source. |
|
Back to top |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1296
|
Posted: Wed Oct 03, 2018 10:50 am Post subject: Re: Building PHP From Source |
|
|
robertwolfe,
Thank you for your message. Your post gave us an idea about a series of articles about how to build PHP on other platforms from scratch. _________________ Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com |
|
Back to top |
|
|
Matcha -
Joined: 28 Jan 2019 Posts: 2
|
Posted: Mon Jan 28, 2019 11:39 pm Post subject: |
|
|
It would be incredibly helpful to know first, what build string is in use for the PHP that's available for download, and then what is stripped from the resulting folders (if anything) such that it's a tidy "package".
If there is a list of instructions, I'd be happy to follow them. |
|
Back to top |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1296
|
Posted: Tue Jan 29, 2019 4:55 pm Post subject: |
|
|
Matcha,
The way we build PHP is a bit complex because we have to support three architectures on the mac and legacy versions of their systems. The actual build usually lasts around 60 minutes (most of it is automated.)
It is usually easier to build PHP for single system (yours) but the main issue is related to downloading dependencies and building them first. That's what package managers try to simplify. _________________ Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com |
|
Back to top |
|
|
|