Building PHP From Source

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
robertwolfe
-


Joined: 21 Sep 2018
Posts: 4
Location: Southaven, MS USA

PostPosted: Fri Sep 21, 2018 7:55 pm    Post subject: Building PHP From Source Reply with quote

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 View user's profile Send private message Visit poster's website
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1295

PostPosted: Wed Oct 03, 2018 10:50 am    Post subject: Re: Building PHP From Source Reply with quote

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 View user's profile Send private message
Matcha
-


Joined: 28 Jan 2019
Posts: 2

PostPosted: Mon Jan 28, 2019 11:39 pm    Post subject: Reply with quote

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 View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1295

PostPosted: Tue Jan 29, 2019 4:55 pm    Post subject: Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group