PHP ./configure

Issues related to applications and software problems
Post Reply
vitamin
Posts: 3
Joined: 2015/03/26 21:50:35

PHP ./configure

Post by vitamin » 2015/03/27 17:33:56

Is there a way to tell what ./configure options were used when php what built for centos 7? I need to recompile my own, but would like to keep it as close as possible to the original.

I looked in the phpinfo() but did not see it there.

Any help would be apetiated!

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: PHP ./configure

Post by avij » 2015/03/27 20:39:36

If you want to keep it close to original, I would suggest to get the source, get the PHP source tarball with the referenced get_sources.sh script, make your modifications to the spec and rebuild the rpm.

If you really want to do this outside rpm, you can check the build log server for hints.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: PHP ./configure

Post by TrevorH » 2015/03/28 00:37:01

Running php -r "phpinfo();" tells you the configure command that was used to build it but rebuilding the SRPM would be safer and better.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

vitamin
Posts: 3
Joined: 2015/03/26 21:50:35

Re: PHP ./configure

Post by vitamin » 2015/03/30 14:09:39

Perfect! Thanks guys for the good info. I'm going to look into the source and modifying the get_sources.sh file.

I think this may end up way easier then I expected!

User avatar
remirepo
Posts: 447
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: PHP ./configure

Post by remirepo » 2015/03/30 14:59:48

> Running php -r "phpinfo();" tells you the configure command ...

@TrevorH: this have been removed in recent package because source of to much confusion, and was only relevant about the tested SAPI (and some modules are build shared in 1 SAPI and available on others)

@vitamin: I'm curious to know why you think you need to build your own. What option is missing ?

Remi.

P.S. more details about this http://blog.famillecollet.com/post/2010 ... -or-PEBKAC
Remi's Repository - Forum - Blog

vitamin
Posts: 3
Joined: 2015/03/26 21:50:35

Re: PHP ./configure

Post by vitamin » 2015/03/30 15:43:57

I was having trouble with unixODBC and php-odbc. I needed to use http://www.microsoft.com/en-us/download ... x?id=36437 and it says it has strict requirement for unixODBC 2.3.0 and centOS 7 comes with 2.3.1. But I found another workaround over the weekend and no longer need to recompile php. Everything seams to be working fine now though.

Post Reply