--conf-path does not work

Jim Ohlstein jim.ohlstein at gmail.com
Tue May 5 00:14:33 MSD 2009



Igor Sysoev wrote:
> On Mon, May 04, 2009 at 03:55:36PM +0000, Jim Ohlstein wrote:
>
>   
>> Hits self in head and says "Dumkopf!". 
>>
>> I always use default location. 
>>
>> Does that explain why make install failed?
>>     
>
> What do you mean by failed ? If this:
>
> # cp objs/nginx /usr/local/sbin
> cp: overwrite `/usr/local/sbin/nginx'? y
> cp: cannot create regular file `/usr/local/sbin/nginx': Text file busy
>
> then it's standard unix feature for running process - you need to do
>
> mv /usr/local/sbin/nginx /usr/local/sbin/nginx.old
> cp objs/nginx /usr/local/sbin/
>   

No. I figured it out.

I always install nginx in my config as /usr/local/sbin/nginx.

Since I didn't specify in the test config, It was installed as 
/usr/local/nginx/sbin/nginx. I didn't realize this. I usually configure 
--sbin-path=/usr/local/sbin/nginx

When I saw

# whereis nginx
nginx: /etc/nginx /usr/local/sbin/nginx /usr/local/sbin/nginx.old 
/usr/local/nginx

it didn't show the binary in /usr/local/nginx/sbin/

So it appeared to me as if the binary had not been installed, because 
when I ran

[root at mercury nginx-0.6.36]# nginx -v
nginx version: nginx/0.7.54

I understand why that is. I was evidently having a series of blond 
moments today.

Sorry.


I can confirm that when I configured correctly

# ./configure --conf-path=/etc/nginx/nginx.conf

and run new binary

/usr/local/nginx/sbin/nginx

that it works as expected.





>> ------Original Message------
>> From: Igor Sysoev
>> Sender: owner-nginx at sysoev.ru
>> To: nginx at sysoev.ru
>> ReplyTo: nginx at sysoev.ru
>> Subject: Re: --conf-path does not work
>> Sent: May 4, 2009 11:40 AM
>>
>> On Mon, May 04, 2009 at 11:30:12AM -0400, Jim Ohlstein wrote:
>>
>>     
>>> ????????? Wrote:
>>> -------------------------------------------------------
>>>       
>>>> nginx-0.6.36
>>>>
>>>> Linux test 2.6.18-53.el5 #1 SMP Wed Oct 10
>>>> 16:34:19 EDT 2007 x86_64 x86_64
>>>> x86_64 GNU/Linux
>>>>
>>>> Thanks.
>>>>
>>>> 2009/5/4 Jim Ohlstein 
>>>>
>>>>         
>>>>>  ./configure --conf-path=PATH
>>>>>           
>>>>>> does not work
>>>>>>
>>>>>>             
>>>>> I'm sure it will help if you tell Igor what
>>>>>           
>>>> version you are running, what
>>>>         
>>>>> platform you are running it on, what other
>>>>>           
>>>> configure options you used, and
>>>>         
>>>>> what exactly happens.
>>>>>
>>>>>
>>>>>           
>>> I can confirm that there appears to be a bug or three.
>>>
>>> I am running Linux  2.6.18-128.1.6.el5 #1 SMP Wed Apr 1 09:10:25 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
>>>
>>> I was running nginx 0.7.53 but configured 06.36 with
>>>
>>> # ./configure ---conf-path=/etc/nginx
>>>       
>> ../configure --conf-path=/etc/nginx/nginx.conf
>>
>>
>> -- 
>> Igor Sysoev
>> http://sysoev.ru/en/
>>
>>
>>
>> Sent from my Verizon Wireless BlackBerry
>>     
>
>   





More information about the nginx mailing list