Re: Re: Bug 40479
| From: | Tomas Kuliavas | Date: | Mon, 10 Sep 2007 12:25:32 +0000 |
| Subject: | Re: Re: Bug 40479 | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32177@lists.php.net to get a copy of this message | ||
>>> I need some assistance gathering the information that might be most
>>> helpful.
>>>
>>> This week sometime I will grab a snapshot and install it. Normally I
>>> install php via the FreeBSD ports collection. I am happy to build a
>>> custom version but I would like to make sure that I do not overwrite
>>> any
>>> files in the FreeBSD base.
>>
>> Just put it in your $HOME or elsewhere, --prefix and
>> --with-config-file-path should help with that.
>>
>>> So, it might take me a little while to do that properly.
>>>
>>> If you could let me know if there are any specific make options you
>>> would like to see I would be happy to accomodate you.
>>
>> --enable-debug is required to get any debug info.
>> If possible, use --disable-all and enable only required extensions in
>> order
>> to have minimal PHP config which is enough to reproduce it.
>>
>
>
> Tony,
>
> My first attempt at compiling has not been terribly successful. I
> cannot seem to get php to read it's (new) ini file. Here is the output
> from phpinfo().
>
> You can see that I gave --prefix and --with-config-file-path options but
> I could not get it to load php5.ini (or php.ini) when the file was in
> the following locations.
>
> /home/danny/php5/php5.ini
> /home/danny/php5/etc/php5.ini
> /etc/php5.ini
> /usr/local/etc/php5.ini
--with-config-file-path should be set to directory and not to php.ini file.
./configure --prefix=/home/danny/php5 \
--with-config-file-path=/home/danny/php5/ --disable-all \
--enable-debug --disable-ipv6 --enable-xml \
--with-gettext=/usr/local --enable-dom \
--with-libxml-dir=/usr/local --with-mysql \
--with-apxs2=/usr/local/sbin/apxs --enable-libxml
If you don't use this option, PHP will look for it in
/home/danny/php5/lib/. Config file path option is useful, if you have to
recompile php several times and want to preserve your php.ini. then you
just set it outside of --prefix and delete old php install before
installing new one. In your configure php.ini is still within directory
set with --prefix.
If you don't want to damage your apache installation, install apache in
/home/danny/apache. And make sure that you do everything as danny and not
as root.
--
Tomas