[users@httpd] Order/Required configuration that is suitable to distribute to users of both Apache 2.4 and earlier

2013-11-15 Thread Claes Gyllensvärd
With the deprecation of Order, I face an issue with a .htaccess file, that,
as part of a FOSS project, is being distributed to a large number of users;
many of which, have little technical knowledge.

Currently, a Order directive protects a number of file endings that could
be sensitive.

If one tries to use that on a host upgraded to 2.4 without access_compat,
that will give a 500 error. While a 500 error is better than risking to
expose sensitive files, it's not ideal, and will confuse many users.


I'm looking for a suitable configuration that would ideally work by default
on the most common distributions (Debian/Ubuntu/RHEL/CentOS?), and handle
both 2.4, and 2.2/0 configuration.

There's mod_version which was introduced in 2.4 that could be used to
identify 2.4, but if that is disabled by default by a distribution, that
would break.

Similarly, on Stackoverflow, it has been suggested to check for ,and do one things if it's available, and another
otherwise. That also seems rather fragile though, and is not a contract to
rely on.

Does anyone have suggestions for a method to solve this, that can be widely
applied?

Kind regards, Claes


Re: [users@httpd] Error :usr/include/unistd.h:1058: error: expected ')' before '[' token

2013-11-15 Thread Eric Covener
The wiki has AIX info for xlc and maybe even gcc -- but as a later
poster said, xlc is the path of least resistance.

On Fri, Nov 15, 2013 at 10:37 AM, Stormy  wrote:
> At 07:36 PM 11/15/2013 +0800, you wrote:
>>
>> Dear Paul,
>> Thank you for your reply.
>> Now I am trying to install (httpd 2.2.25) version  and we get the below
>> error. Kindly help us to resolve the problem.
>
>
> Sorry - I have little (very old) or no experience on AIX; anyone else?
>
> Paul
>
>
>> make
>> Making all in srclib
>> Making all in apr
>> /bin/sh /GPFS/install/SAP/apache/httpd-2.2.25/srclib/apr/libtool
>> --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H -U__STR__
>> -D_THREAD_SAFE   -I./include
>> -I/GPFS/install/SAP/apache/httpd-2.2.25/srclib/apr/include/arch/unix
>> -I./include/arch/unix
>> -I/GPFS/install/SAP/apache/httpd-2.2.25/srclib/apr/include/arch/unix
>> -I/GPFS/install/SAP/apache/httpd-2.2.25/srclib/apr/include  -o
>> file_io/unix/filedup.lo -c file_io/unix/filedup.c && touch
>> file_io/unix/filedup.lo
>> file_io/unix/filedup.c: In function 'file_dup':
>> file_io/unix/filedup.c:49: error: 'F_GETFD' undeclared (first use in this
>> function)
>> file_io/unix/filedup.c:49: error: (Each undeclared identifier is reported
>> only once
>> file_io/unix/filedup.c:49: error: for each function it appears in.)
>> file_io/unix/filedup.c:52: error: 'FD_CLOEXEC' undeclared (first use in
>> this function)
>> file_io/unix/filedup.c:53: error: 'F_SETFD' undeclared (first use in this
>> function)
>> make: 1254-004 The error code from the last command is 1.
>>
>> Stop.
>> make: 1254-004 The error code from the last command is 1.
>> Stop.
>> make: 1254-004 The error code from the last command is 1.
>>
>>
>> Thanks & Regards,
>> Baskaran.V
>>
>>
>>
>>
>>
>> On Friday, 15 November 2013 1:16 AM, Stormy  wrote:
>> At 06:49 AM 11/15/2013 +0800, you wrote:
>> >Dear All,
>> >
>> >I did not find the solution in google and archiving mail list .
>> >Hence I am posting my issue here.
>> >I am trying to install Apache (httpd-2.0.64)
>> ^
>>  "The Apache
>> Software Foundation and the Apache HTTP Server Project are pleased to
>> announce the final 2.0 release version 2.0.65 of the Apache HTTP Server
>> ("Apache"). This version of Apache will be the last 2.0 bug and security
>> fix release, covering many but not all issues addressed in the stable 2.4
>> and legacy 2.2 released versions."
>>
>> Personally, I don't always chase the absolute latest version, but 2.2.x
>> (which I use on hundreds of servers) should be the "legacy" version of
>> choice (2.4 might allow you more forward flexibility.)
>>
>> Why 2.0?
>>
>> Best - Paul
>>
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>



-- 
Eric Covener
cove...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Error :usr/include/unistd.h:1058: error: expected ')' before '[' token

2013-11-15 Thread Jens-U. Mozdzen

Hi Baskaran, Paul,

Zitat von Stormy :

At 07:36 PM 11/15/2013 +0800, you wrote:

Dear Paul,
Thank you for your reply.
Now I am trying to install (httpd 2.2.25) version  and we get the  
below error. Kindly help us to resolve the problem.


Sorry - I have little (very old) or no experience on AIX; anyone else?

Paul



make
Making all in srclib
Making all in apr
   /bin/sh  
/GPFS/install/SAP/apache/httpd-2.2.25/srclib/apr/libtool --silent  
--mode=compile gcc -g -O2   -DHAVE_CONFIG_H -U__STR__  
-D_THREAD_SAFE   -I./include  
-I/GPFS/install/SAP/apache/httpd-2.2.25/srclib/apr/include/arch/unix  
-I./include/arch/unix  
-I/GPFS/install/SAP/apache/httpd-2.2.25/srclib/apr/include/arch/unix  
-I/GPFS/install/SAP/apache/httpd-2.2.25/srclib/apr/include  -o  
file_io/unix/filedup.lo -c file_io/unix/filedup.c && touch  
file_io/unix/filedup.lo

file_io/unix/filedup.c: In function 'file_dup':
file_io/unix/filedup.c:49: error: 'F_GETFD' undeclared (first use  
in this function)
file_io/unix/filedup.c:49: error: (Each undeclared identifier is  
reported only once

file_io/unix/filedup.c:49: error: for each function it appears in.)
file_io/unix/filedup.c:52: error: 'FD_CLOEXEC' undeclared (first  
use in this function)
file_io/unix/filedup.c:53: error: 'F_SETFD' undeclared (first use  
in this function)

make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.


Thanks & Regards,
Baskaran.V


please try this with a copy of XL C for AIX - iirc gcc assumes these  
macros to be available from glibc, but on AIX (without glibc) these  
are in libc instead. xlc ought to compile/link Apache's httpd properly.


Regards,
Jens

PS: The IBM XL C 60-day trial download is at  
http://www.ibm.com/developerworks/downloads/r/xlcplusaix/index.html -  
you may need to have to register, though.



-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Error :usr/include/unistd.h:1058: error: expected ')' before '[' token

2013-11-15 Thread Stormy

At 07:36 PM 11/15/2013 +0800, you wrote:

Dear Paul,
Thank you for your reply.
Now I am trying to install (httpd 2.2.25) version  and we get the below 
error. Kindly help us to resolve the problem.


Sorry - I have little (very old) or no experience on AIX; anyone else?

Paul



make
Making all in srclib
Making all in apr
/bin/sh /GPFS/install/SAP/apache/httpd-2.2.25/srclib/apr/libtool 
--silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H -U__STR__ 
-D_THREAD_SAFE   -I./include 
-I/GPFS/install/SAP/apache/httpd-2.2.25/srclib/apr/include/arch/unix 
-I./include/arch/unix 
-I/GPFS/install/SAP/apache/httpd-2.2.25/srclib/apr/include/arch/unix 
-I/GPFS/install/SAP/apache/httpd-2.2.25/srclib/apr/include  -o 
file_io/unix/filedup.lo -c file_io/unix/filedup.c && touch 
file_io/unix/filedup.lo

file_io/unix/filedup.c: In function 'file_dup':
file_io/unix/filedup.c:49: error: 'F_GETFD' undeclared (first use in this 
function)
file_io/unix/filedup.c:49: error: (Each undeclared identifier is reported 
only once

file_io/unix/filedup.c:49: error: for each function it appears in.)
file_io/unix/filedup.c:52: error: 'FD_CLOEXEC' undeclared (first use in 
this function)
file_io/unix/filedup.c:53: error: 'F_SETFD' undeclared (first use in this 
function)

make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.


Thanks & Regards,
Baskaran.V





On Friday, 15 November 2013 1:16 AM, Stormy  wrote:
At 06:49 AM 11/15/2013 +0800, you wrote:
>Dear All,
>
>I did not find the solution in google and archiving mail list .
>Hence I am posting my issue here.
>I am trying to install Apache (httpd-2.0.64)
^
 "The Apache
Software Foundation and the Apache HTTP Server Project are pleased to
announce the final 2.0 release version 2.0.65 of the Apache HTTP Server
("Apache"). This version of Apache will be the last 2.0 bug and security
fix release, covering many but not all issues addressed in the stable 2.4
and legacy 2.2 released versions."

Personally, I don't always chase the absolute latest version, but 2.2.x
(which I use on hundreds of servers) should be the "legacy" version of
choice (2.4 might allow you more forward flexibility.)

Why 2.0?

Best - Paul





-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



RE: [users@httpd] Apache 2.2.16 stops running on a Windows 2008 R2 server, 2.4 install won't run

2013-11-15 Thread Steven Miller
Much thanks Henrik, fuzzy picture is now in focus ;-).  

-Original Message-
From: Hendrik Schmieder [mailto:hendrik.schmie...@jedox.com] 
Sent: Friday, November 15, 2013 12:20 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache 2.2.16 stops running on a Windows 2008 R2 
server, 2.4 install won't run

Steven Miller schrieb:
> *From:* Jeff Trawick [mailto:traw...@gmail.com]
> *Sent:* Thursday, November 14, 2013 1:28 PM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] Apache 2.2.16 stops running on a Windows
> 2008 R2 server, 2.4 install won't run
>
> On Thu, Nov 14, 2013 at 4:13 PM, Steven Miller  > wrote:
>
> *From:* Jeff Trawick [mailto:traw...@gmail.com
> ]
> *Sent:* Thursday, November 14, 2013 12:52 PM
> *To:* users@httpd.apache.org 
> *Subject:* Re: [users@httpd] Apache 2.2.16 stops running on a
> Windows 2008 R2 server, 2.4 install won't run
>
> On Thu, Nov 14, 2013 at 3:09 PM, Steven Miller  > wrote:
>
> Hello,
>
> I had Apache 2.2.16 running for a few years on my 2008 R2 server
> without any problems. I left for vacation on 10/31 and found
> that upon my return, beginning that same day (10/31), the Apache
> server could not start and a 1067 error was returned.
>
> I searched the Windows logs and performed some other research
> including confirmation that no other web server exists on this
> server (a "netstat -an" returns no port 80 listener) before
> uninstalling 2.2.16 and attempting to install 2.4. I extracted
> the .zip to C:\Apache24 and modified the related PATH statement
> to reflect this location. At first when I tried to launch
> httpd.exe I saw an error stating MSVCR110.dll is missing. As I
> could find it nowhere on the server's HD I downloaded it to the
> C:\Apache24\bin folder. Now when I attempt to launch httpd.exe
> or run httpd.exe -k install I get the error "The application was
> unable to start correctly (0xc07b)."
>
> IIUC those Microsoft libraries need to be properly installed, and
> they get found via the registry instead of the usual DLL search. You
> also need to install one that matches the architecture of your
> Apache httpd build (32-bit or 64-bit). I have the x64 VC++ 2008 SP1
> Redistributable installed (have x64 Apache v 2.4) and tried doing a
> repair of that install - downloading the most recent VC version and
> running a repair, and I still get the 0xc07b error.
>
> Are you sure that the 2008 SP1 is the required one? (I guess they told 
> you that on the Apachelounge web site.) Sorry, but that's all I can 
> think of. Not sure actually now that I think about it - it was listed 
> as the correct one on one of the download sites and I cannot recall 
> which one it was at the moment. Also I checked installed programs on 
> the server, turns out I have no less than 7 different redistributables 
> installed including 2005, 2008, and 2010 versions. I think the best 
> move would be to ID for certain which one should co-exist with x64 
> Apache 2.4, uninstall all of them, and install that version?
>
> Hopefully somebody else has an idea if you already have the 
> redistributable that you need.
>

MSVCR110.dll is part of the VC2012 Redistributable.

   Hendrik


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Error :usr/include/unistd.h:1058: error: expected ')' before '[' token

2013-11-15 Thread Baskaran.V
Dear Paul,

Thank you for your reply.

Now I am trying to install (httpd 2.2.25) version  and we get the below error. 
Kindly help us to resolve the problem.

make
Making all in srclib
Making all in apr
        /bin/sh 
/GPFS/install/SAP/apache/httpd-2.2.25/srclib/apr/libtool --silent 
--mode=compile 
gcc -g -O2   -DHAVE_CONFIG_H -U__STR__ -D_THREAD_SAFE   -I./include 
-I/GPFS/install/SAP/apache/httpd-2.2.25/srclib/apr/include/arch/unix 
-I./include/arch/unix 
-I/GPFS/install/SAP/apache/httpd-2.2.25/srclib/apr/include/arch/unix 
-I/GPFS/install/SAP/apache/httpd-2.2.25/srclib/apr/include  -o 
file_io/unix/filedup.lo -c file_io/unix/filedup.c && touch 
file_io/unix/filedup.lo
file_io/unix/filedup.c: In 
function 'file_dup':
file_io/unix/filedup.c:49: error: 
'F_GETFD' undeclared (first use in this function)
file_io/unix/filedup.c:49: error: (Each undeclared identifier is reported 
only once
file_io/unix/filedup.c:49: error: for each 
function it appears in.)
file_io/unix/filedup.c:52: 
error: 'FD_CLOEXEC' undeclared (first use in this function)
file_io/unix/filedup.c:53: error: 'F_SETFD' undeclared (first use in this 
function)
make: 1254-004 The error code from the last 
command is 1.

Stop.
make: 
1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last 
command is 1.


 
Thanks & Regards,
Baskaran.V
 
 
 



On Friday, 15 November 2013 1:16 AM, Stormy  wrote:
 
At 06:49 AM 11/15/2013 +0800, you wrote:
>Dear All,
>
>I did not find the solution in google and archiving mail list .
>Hence I am posting my issue here.
>I am trying to install Apache (httpd-2.0.64)
                                 ^
 "The Apache 
Software Foundation and the Apache HTTP Server Project are pleased to 
announce the final 2.0 release version 2.0.65 of the Apache HTTP Server 
("Apache"). This version of Apache will be the last 2.0 bug and security 
fix release, covering many but not all issues addressed in the stable 2.4 
and legacy 2.2 released versions."

Personally, I don't always chase the absolute latest version, but 2.2.x 
(which I use on hundreds of servers) should be the "legacy" version of 
choice (2.4 might allow you more forward flexibility.)

Why 2.0?

Best - Paul





-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Re: [users@httpd] Apache 2.2.16 stops running on a Windows 2008 R2 server, 2.4 install won't run

2013-11-15 Thread Hendrik Schmieder

Steven Miller schrieb:

*From:* Jeff Trawick [mailto:traw...@gmail.com]
*Sent:* Thursday, November 14, 2013 1:28 PM
*To:* users@httpd.apache.org
*Subject:* Re: [users@httpd] Apache 2.2.16 stops running on a Windows
2008 R2 server, 2.4 install won't run

On Thu, Nov 14, 2013 at 4:13 PM, Steven Miller mailto:smil...@rentonwa.gov>> wrote:

*From:* Jeff Trawick [mailto:traw...@gmail.com
]
*Sent:* Thursday, November 14, 2013 12:52 PM
*To:* users@httpd.apache.org 
*Subject:* Re: [users@httpd] Apache 2.2.16 stops running on a
Windows 2008 R2 server, 2.4 install won't run

On Thu, Nov 14, 2013 at 3:09 PM, Steven Miller mailto:smil...@rentonwa.gov>> wrote:

Hello,

I had Apache 2.2.16 running for a few years on my 2008 R2 server
without any problems. I left for vacation on 10/31 and found
that upon my return, beginning that same day (10/31), the Apache
server could not start and a 1067 error was returned.

I searched the Windows logs and performed some other research
including confirmation that no other web server exists on this
server (a “netstat –an” returns no port 80 listener) before
uninstalling 2.2.16 and attempting to install 2.4. I extracted
the .zip to C:\Apache24 and modified the related PATH statement
to reflect this location. At first when I tried to launch
httpd.exe I saw an error stating MSVCR110.dll is missing. As I
could find it nowhere on the server’s HD I downloaded it to the
C:\Apache24\bin folder. Now when I attempt to launch httpd.exe
or run httpd.exe –k install I get the error “The application was
unable to start correctly (0xc07b).”

IIUC those Microsoft libraries need to be properly installed, and
they get found via the registry instead of the usual DLL search. You
also need to install one that matches the architecture of your
Apache httpd build (32-bit or 64-bit). I have the x64 VC++ 2008 SP1
Redistributable installed (have x64 Apache v 2.4) and tried doing a
repair of that install – downloading the most recent VC version and
running a repair, and I still get the 0xc07b error.

Are you sure that the 2008 SP1 is the required one? (I guess they told
you that on the Apachelounge web site.) Sorry, but that's all I can
think of. Not sure actually now that I think about it – it was listed as
the correct one on one of the download sites and I cannot recall which
one it was at the moment. Also I checked installed programs on the
server, turns out I have no less than 7 different redistributables
installed including 2005, 2008, and 2010 versions. I think the best move
would be to ID for certain which one should co-exist with x64 Apache
2.4, uninstall all of them, and install that version?

Hopefully somebody else has an idea if you already have the
redistributable that you need.



MSVCR110.dll is part of the VC2012 Redistributable.

  Hendrik


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org