Discussion:
[PHP-INSTALL] Extensions location
Jorge Hernandez
2013-03-08 14:45:17 UTC
Permalink
Hey guys,

Can anyone tell me where can I configure the location of the extensions
when compiling PHP?

I don't see anything in ./configure --help for that and when I run 'make
install' it puts them in a folder called 'no-debug-non-zts-20100525' inside
the main extensions folder, I would like it to put them in extensions, not
in a folder inside extensions with that name.

Any help is appreciated.

Thanks,
--
Jorge Hernandez



165 East 115th Street #4B
New York, NY 10029<http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=165+East+115th+Street+%234B&csz=New+York%2C+NY+10029&country=us>

***@gmail.com

tel:
fax:
mobile:

646-403-9802
646-519-4352
646-262-1908
pmenier
2013-03-09 12:47:06 UTC
Permalink
Post by Jorge Hernandez
Hey guys,
Can anyone tell me where can I configure the location of the extensions when
compiling PHP?
I don't see anything in ./configure --help for that and when I run 'make
install' it puts them in a folder called 'no-debug-non-zts-20100525' inside the
main extensions folder, I would like it to put them in extensions, not in a
folder inside extensions with that name.
Any help is appreciated.
Thanks,
--
Jorge Hernandez
Hello,

you just have to modify the value of extension_dir in php.ini

Patrick
Post by Jorge Hernandez
165 East 115th Street #4B
New York, NY 10029
<http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=165+East+115th+Street+%234B&csz=New+York%2C+NY+10029&country=us>
646-403-9802
646-519-4352
646-262-1908
Jorge F. Hernandez
2013-03-09 13:58:30 UTC
Permalink
I know about this entry in php.ini, but I want it to be the default place when compiling PHP, so I don't have to change it every time I compile a new version.


Jorge Hernandez




165 East 115th Street #4B
New York, NY 10029
***@gmail.com
tel:
fax:
mobile:
646-403-9802
646-519-4352
646-262-1908













-----Original Message-----
From: pmenier [mailto:***@pmenier.net]
Sent: Saturday, March 09, 2013 7:47 AM
To: php-***@lists.php.net
Subject: Re: [PHP-INSTALL] Extensions location
Post by Jorge Hernandez
Hey guys,
Can anyone tell me where can I configure the location of the
extensions when compiling PHP?
I don't see anything in ./configure --help for that and when I run
'make install' it puts them in a folder called
'no-debug-non-zts-20100525' inside the main extensions folder, I would
like it to put them in extensions, not in a folder inside extensions with that name.
Any help is appreciated.
Thanks,
--
Jorge Hernandez
Hello,

you just have to modify the value of extension_dir in php.ini

Patrick
Post by Jorge Hernandez
165 East 115th Street #4B
New York, NY 10029
<http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=165+East+115th+Street+
%234B&csz=New+York%2C+NY+10029&country=us>
646-403-9802
646-519-4352
646-262-1908
Nick Lombard
2013-03-10 07:57:12 UTC
Permalink
Post by Jorge F. Hernandez
I know about this entry in php.ini, but I want it to be the default place
when compiling PHP, so I don't have to change it every time I compile a new
version.
The build script specific settings are all based on the --prefix argument,
so you can easily change where php will be installed including extensions,
libs, executables even pear. What you are after though might be a little
more tricky but I've had some success tweaking the scripts/config.in source
file which in itself will look at certain environment variables lets have a
look for you shall we? In your case the setting is:

extension_dir='@EXTENSION_DIR@'

Which you can edit directly before running configure or setting the
environment variable

export EXTENSION_DIR=/tmp/my/extensions

You can also place it before the configure commend like this

EXTENSION_DIR=/tmp/my/extensions ./configure

What have we? It would appear luck is your good fortune, the setting did
change and the file scripts/php-config correctly reports.

--extension-dir [/tmp/my/extensions]

nJoy!
Jorge F. Hernandez
2013-03-10 15:02:40 UTC
Permalink
I tried that and even though php-config says extension-dir =
/my/extension/folder when I do a make install it goes to
/my/extension/folder/non-debug-non-zts-20100525 all I want is to get rid of
that non-debug-non-zts-20100525



Any other ideas?








Jorge Hernandez

Loading Image...





<http://maps.google.com/maps/place?ftid=0x89c2f6060f4322e5:0x3e94a672ba2fe50
e&q=165+East+115+Street,+New+York,+ny+100129&hl=en&ved=0CA0Q-gswAA&sa=X&ei=C
hRZTqDEOKG8zgT5qvGiDQ> 165 East 115th Street #4B
New York, NY 10029


<mailto:***@gmail.com> ***@gmail.com


tel:
fax:
mobile:

646-403-9802
646-519-4352
646-262-1908














From: ***@jigsoft.co.za [mailto:***@jigsoft.co.za] On Behalf Of Nick
Lombard
Sent: Sunday, March 10, 2013 3:57 AM
To: Jorge F. Hernandez
Cc: php-***@lists.php.net
Subject: Re: [PHP-INSTALL] Extensions location



On 9 March 2013 15:58, Jorge F. Hernandez <***@gmail.com> wrote:

I know about this entry in php.ini, but I want it to be the default place
when compiling PHP, so I don't have to change it every time I compile a new
version.



The build script specific settings are all based on the --prefix argument,
so you can easily change where php will be installed including extensions,
libs, executables even pear. What you are after though might be a little
more tricky but I've had some success tweaking the scripts/config.in source
file which in itself will look at certain environment variables lets have a
look for you shall we? In your case the setting is:



extension_dir='@EXTENSION_DIR@'



Which you can edit directly before running configure or setting the
environment variable



export EXTENSION_DIR=/tmp/my/extensions



You can also place it before the configure commend like this



EXTENSION_DIR=/tmp/my/extensions ./configure



What have we? It would appear luck is your good fortune, the setting did
change and the file scripts/php-config correctly reports.



--extension-dir [/tmp/my/extensions]



nJoy!
Jaime Castillo
2013-03-10 22:21:48 UTC
Permalink
From: ***@gmail.com
To: ***@jigsoft.co.za
CC: php-***@lists.php.net
Date: Sun, 10 Mar 2013 11:02:40 -0400
Subject: RE: [PHP-INSTALL] Extensions location

I tried that and even though php-config says extension-dir = /my/extension/folder when I do a make install it goes to /my/extension/folder/non-debug-non-zts-20100525 all I want is to get rid of that non-debug-non-zts-20100525 Any other ideas? Jorge Hernandez165 East 115th Street #4B
New York, NY 10029 ***@gmail.com tel:
fax:
mobile: 646-403-9802
646-519-4352
646-262-1908






From: ***@jigsoft.co.za [mailto:***@jigsoft.co.za] On Behalf Of Nick Lombard
Sent: Sunday, March 10, 2013 3:57 AM
To: Jorge F. Hernandez
Cc: php-***@lists.php.net
Subject: Re: [PHP-INSTALL] Extensions location On 9 March 2013 15:58, Jorge F. Hernandez <***@gmail.com> wrote:I know about this entry in php.ini, but I want it to be the default place when compiling PHP, so I don't have to change it every time I compile a new version. The build script specific settings are all based on the --prefix argument, so you can easily change where php will be installed including extensions, libs, executables even pear. What you are after though might be a little more tricky but I've had some success tweaking the scripts/config.in source file which in itself will look at certain environment variables lets have a look for you shall we? In your case the setting is: extension_dir='@EXTENSION_DIR@' Which you can edit directly before running configure or setting the environment variable export EXTENSION_DIR=/tmp/my/extensions You can also place it before the configure commend like this EXTENSION_DIR=/tmp/my/extensions ./configure What have we? It would appear luck is your good fortune, the setting did change and the file scripts/php-config correctly reports. --extension-dir [/tmp/my/extensions] nJoy!
Loading...