[users@httpd] OpenLDAP Prerequesite in Apache 2.4 to use LDAPRetries Directive

2014-10-09 Thread Brian Gaber
This morning I have upgraded to Apache 2.4.10 and have added this directive to 
httpd.conf

LDAPRetries 3

However, my Firefox browser keeps prompting for username and password 
regardless of how many time I enter incorrect values.

I have OpenLDAP 2.4.21 installed.  Do I need a newer version of OpenLDAP?

Thanks.

Brian




RE: [users@httpd] Retrieve the username which got authenticated by the apache

2014-07-08 Thread Brian Gaber
“more better” ☺

Did you try $ENV{REMOTE_USER}

From: Rahul R [mailto:rahul.ra...@gmail.com]
Sent: Tuesday, July 08, 2014 7:49 AM
To: users@httpd.apache.org
Subject: [users@httpd] Retrieve the username which got authenticated by the 
apache


Not sure this is the right place to ask this question or not.

I have an apache 2.2 setup with LDAP auth enabled. The html form in the front 
end takes some values and processes them using perl script in the background. 
Is there a way I can get the username which is submitting the values in that 
perl script. I am planning to track who is doing what(with the values they 
submit) in a more better way in a file than the usual access_log.

I tried using the below in my perl script, but no luck. Any help would be much 
appreciated.



my $userId = $_SERVER['AUTHENTICATE_SAMACCOUNTNAME'];

print " I am $userId";

--
Thanks,
Regards,
Rahul R




[users@httpd] Add http proxy to apache that only permits https access

2014-05-22 Thread Brian Gaber
I have a webserver (WS1) that only listens for https requests.  I would like to 
enable http Proxy service on WS1 so that one other server can use WS1 to get to 
the internet.

How do I enable http Proxy and still only permit https for all other requests?


[users@httpd] RE: Apache commercial support

2014-04-02 Thread Brian Gaber
If your server OS is Redhat then you can buy support from Redhat.  That is what 
we do.

-Original Message-
From: Joe Jensen (ConAgra Foods) [mailto:joe.jen...@conagrafoods.com] 
Sent: Wednesday, April 02, 2014 1:09 PM
To: users@httpd.apache.org
Subject: [users@httpd] Apache commercial support

Can anybody recommend any commercial support vendors for apache httpd and 
tomcat?  Who do you use for apache/tomcat support and how does it work out?  

I'm running about 2 dozen servers and am frustrated that my existing vendor 1) 
adds (required) proprietary modules forcing me to pay licensing costs and 2) 
does not distribute current apache httpd/tomcat versions with their current 
software.   They do not support the open source version.  I'm also curious how 
much support of pure open source apache/tomcat costs as a comparison.
 
Joe Jensen 

-
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



[users@httpd] URL Rewrite Question

2014-03-28 Thread Brian Gaber
This is my first attempt at using RewriteRule.

I have about 200 webpages the contain SPS or MENU (in UPPER or lower case) that 
I want to send to a webpage on another server.

I thought this might work, but it has not.

RewriteCond  %{REQUEST_URI}  (SPS|MENU)
RewriteRule  ^/$ http://new-webserver/new-webpage.html  [L]

I based this on what I read in 
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule and this 
example found therein:

RewriteCond  %{HTTP_USER_AGENT}  ^Mozilla
RewriteRule  ^/$ /homepage.max.html  [L]

I am fairly familiar with Perl Regular Expression, but could 
someone explain what ^/$ does?  I understand what ^ and $ do.

Thanks.

Brian



RE: [users@httpd] httpd authentication using ldap fails

2014-03-26 Thread Brian Gaber
Eric,

Thanks, that worked.  Cheers.

Brian

-Original Message-
From: Eric Covener [mailto:cove...@gmail.com] 
Sent: Wednesday, March 26, 2014 7:42 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] httpd authentication using ldap fails

On Wed, Mar 26, 2014 at 7:39 AM, Brian Gaber  wrote:
> AuthLDAPURL ldap://cfallotmentlisting.ssc-spc.gc.ca/"o=gc,c=ca"?uid?sub


try quoting the whole thing instead?

-
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



[users@httpd] httpd authentication using ldap fails

2014-03-26 Thread Brian Gaber
Once I enable OPenLDAP authentication I cannot launch any cgi scripts.  These 
scripts work find without any authentication.

I have set loglevel to debug and get this error:

[Wed Mar 26 07:28:35 2014] [info] Initial (No.1) HTTPS request received for 
child 0 (server cfallotmentlisting.ssc-spc.gc.ca:443)
[Wed Mar 26 07:28:35 2014] [debug] mod_authnz_ldap.c(403): [client 
10.17.12.249] [12779700] auth_ldap authenticate: using URL 
ldap://cfallotmentlisting.ssc-spc.gc.ca/"o=gc,c=ca"?uid?sub, referer: 
https://cfallotmentlisting.ssc-spc.gc.ca/dnd-admin-cgi-bin/addUser.pl?app=dnd
[Wed Mar 26 07:28:35 2014] [info] [client 10.17.12.249] [12779700] auth_ldap 
authenticate: user gaberb authentication failed; URI 
/dnd-admin-cgi-bin/ldapNamSrch.pl [ldap_search_ext_s() for user failed][Invalid 
DN syntax], referer: 
https://cfallotmentlisting.ssc-spc.gc.ca/dnd-admin-cgi-bin/addUser.pl?app=dnd
[Wed Mar 26 07:28:35 2014] [debug] ssl_engine_kernel.c(1910): OpenSSL: Write: 
SSL negotiation finished successfully

Here is the relevant section from the httpd.conf


AllowOverride None
Options None
Order allow,deny
Allow from all
AuthType basic
AuthName "Administrator Authentication"
AuthBasicProvider ldap
AuthLDAPURL ldap://cfallotmentlisting.ssc-spc.gc.ca/"o=gc,c=ca"?uid?sub
Require ldap-group cn=dnd-admins,o=gc,c=ca


Thanks.



RE: [users@httpd] Content-Length is always 0

2012-08-23 Thread Brian Gaber
asaf,

I have had the same issue in the past when using xlc to compile Apache on 
AIX.  The problem is described here: 
http://people.apache.org/~trawick/aixstatus.html

Here is how I got it to work:

Copy AutoMake config.guess that has AIX 6 support into these four places of the 
source before compiling:

.../httpd-2.2.x/build/config.guess
.../httpd-2.2.x/srclib/apr/build/config.guess
.../httpd-2.2.x/srclib/apr-util/build/config.guess
.../httpd-2.2.x/srclib/apr-util/xml/expat/conftools/config.guess

Recompile.

Brian


From: Asaf Dalet [mailto:asaf.da...@gmail.com]
Sent: Wednesday, August 22, 2012 7:51 AM
To: users@httpd.apache.org
Subject: [users@httpd] Content-Length is always 0

Hi,
I compiled apache 2.2 64 bits on AIX 6.1 and the installation seeemed to have 
passed fine. But when I browse to static HTML pages on that server - all pages 
return empty with "Content-Length: 0" in the response headers.

anyone has an idea how to fix this?

thanks
asaf




RE: [users@httpd] Rewrite Rule Help (again)

2012-07-11 Thread Brian Gaber
Does your problem have anything to do with this statement found in 
http://httpd.apache.org/docs/trunk/rewrite/remapping.html

mod_rewrite evaluates the left-hand-side of the RewriteRule before it evaluates 
the RewriteCond directives. 

-Original Message-
From: Chris Arnold [mailto:carn...@electrichendrix.com] 
Sent: Tuesday, July 10, 2012 10:20 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Rewrite Rule Help (again)

In the event anyone comes across this, i got this to work using the following:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^update.domain.com$ [NC] RewriteRule ^/$ 
http://private.ip.address [R,L]


- Original Message -
From: "Chris Arnold" 
To: users@httpd.apache.org
Sent: Tuesday, July 10, 2012 9:37:30 PM
Subject: Re: [users@httpd] Rewrite Rule Help (again)

>You've been already given the answer by Eric what else do you need? Read 
>mod_rewrite manual and combine RewriteCond and RewriteRule >commands thats all 
>you need to do. 

Igor,i have read the rewrite guide and tried what i thought was needed. Which i 
have repeated here more than 1 time but this time i will show what i tried from 
the guide:
Move Homedirs to Different Webserver
Description:
Many webmasters have asked for a solution to the following situation: They 
wanted to redirect just all homedirs on a webserver to another webserver. They 
usually need such things when establishing a newer webserver which will replace 
the old one over time.

Solution:
The solution is trivial with mod_rewrite. On the old webserver we just redirect 
all /~user/anypath URLs to http://newserver/~user/anypath.

RewriteEngine on
RewriteRule   ^/~(.+)  http://newserver/~$1  [R,L]

And here is how i have altered it to fit what i need:
RewriteRule ^/$ http://192.168.123.2/ [L] This just leaves me at the webserver. 
I have also tried what others have suggested here and replied with the results.

BTW, the solution Igor is referring to, does anyone have that email and can 
post it (send it to me) as i seem to have lost that email.

-
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


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



RE: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++

2012-06-28 Thread Brian Gaber
Partial success compiling PHP 5.3.13 with Apache 2.4.2

Compile Environment:
export CC="xlc -q64 -qlangval=extc99"
export LD=ld
export LDFLAGS="-L/opt/freeware/lib"
export OBJECT_MODE=64

configure
export CC="xlc -q64 -qlangval=extc99"
export LD=ld
export LDFLAGS="-L/opt/freeware/lib"
export OBJECT_MODE=64

edit Makefile, search for line with php.sym, remove the '#! .'

"make" is successful
"make test" produces test that either report SKIP or FAIL.  Majority FAIL.

Why all the failed tests?

From: Michael Felt [mailto:mamf...@gmail.com]
Sent: Thursday, June 14, 2012 5:38 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with 
gcc/g++

I have gotten it to compile (5.3.14) - and what I needed to add for the IBM 
compiler was -qlangval=extc99 so that it would accept c++ like comments 
(starting with //)

The other problem I have, and it is an "old" one, is that the AIX make (or 
maybe the ksh) does not execute the $(BUILD_CLI) argument to build 
sapi/cli/php. After editing Makefile, and making sure that "#! ." is not the 
first line of php.sym it completes building.

Anyway, now I need to try a default to "add everything" and see what extras 
need to be built. And also try 5.4.4

On Thu, Jun 14, 2012 at 7:30 PM, Brian Gaber 
mailto:brian.ga...@tpsgc-pwgsc.gc.ca>> wrote:
I was getting errors with sqlite also so I added these two configure directives:

--without-pdo-sqlite
--without-sqlite

This got me past the sqlite problem.



From: Michael Felt [mailto:mamf...@gmail.com<mailto:mamf...@gmail.com>]
Sent: Thursday, June 14, 2012 11:52 AM

To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with 
gcc/g++

Now I need to see if I actually put everything needed in ./build/aix/README for 
httpd.

Starting point for me is: use neither /usr(/local) nor /opt/freeware (as I am 
trying to be independent of "old" RPM's). A secondary goal is that the installp 
packages built are suitable for installation in WPAR (hosting) environments.

Next - I started with a clean installation (AIX 5.3 TL7 first, working mainly 
with AIX 6.1 now) and "added" things as needed.

For zlib - what is needed is to copy zlib.h, and I think there is another zlib 
related include file as well. -- copy to /usr/include, or /opt/include

For apr and apr-util I added build/aix/* files - I'll send copies if you like. 
An independent tester who finds them sucessful may help get them accepted to 
apr and apr-util trunks.

For the other packages that are needed - I wrote a buildaix package that you 
can download via 
http://sourceforge.net/projects/mkinstallp/files/buildaix-1.0.0/

If you add /opt/bin to your PATH the command /opt/bin/buildaix will run the 
./configure command with some defaults - basically - prefix is /opt, 
mandir=/usr/share/man, and confdir is /etc (and another one is /var, I forget 
it's name atm).

I choose /opt as, imho, a better generic prefix for AIX - where /usr/local just 
seems to create problems. (Idea: a symbolic link of /usr/local -> /opt might 
fix a lot of things that break with "./configure" commands that only look at 
/usr and /usr/local by default - but this is an aside".

Summary: drop /usr/local as prefix, stop using old RPM (or any RPM if possible) 
- instead

download and build fresh using buildaix -- /opt, /etc, /var and /usr/share/man 
as default destinations

For httpd: customized version of build/aix/* for apr-util in any case (buildaix 
could be used for apr, but I have a seperate set of files for that package as 
well)

So, e.g., coreutils I built and installed using buildaix, same for pcre and any 
other required external package.

Thus, with php, I started with buildaix.

libxml2 was missing so the basic step was:
root@x104:[/data/prj/libxml2-2.7.7]buildaix

installp -d . aixtools.libxml2.rte

aixtools.libxml2.rte2.7.7.0 USR APPLY   SUCCESS

Added /opt to list of directories to search in configure to look for xml2-config
LINE 21865

And configure completes.

I also got an Syntax errors with embedded sqlite so I compiled an external 
version. However, php continues to try to compile that.

Maybe you can help me beyond this point:

michael@x054:[/data/prj/php-5.3.13]cat php_configure.ksh
#!/usr/bin/ksh

set -x

./configure \
--prefix=/opt \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--with-libdir=/opt/lib \
--with-sqlite3=/opt \
> build/aix/configure.out

Now that configure has finished (there is a makefile) I can use buildaix again 
(it skips the ./configure step if it sees a Makefile)

root@x104:[/data/prj/php-5.3.13]buildaix
NAME: php
VERSION.RELEA

RE: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++

2012-06-28 Thread Brian Gaber
Attempted to compile PHP 5.4.3 against Apache 2.4.2.

Compile Environment:
export CC="xlc -q64 -qcpluscmt"
export LD=ld
export LDFLAGS="-L/opt/freeware/lib"
export OBJECT_MODE=64

Successful configure statement:
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-ldap \
--with-libxml-dir=/opt/freeware \
--with-zlib-dir=/opt/freeware \
--without-pdo-sqlite \
--without-sqlite3

Make returned this error:

"/home/downloads/php-5.4.3/Zend/zend.h", line 179.10: 1506-236 (W) Macro name 
__restrict__ has been redefined.
"/home/downloads/php-5.4.3/Zend/zend.h", line 179.10: 1506-358 (I) 
"__restrict__" is defined on line 186 of /usr/include/standards.h.
/bin/sh /home/downloads/php-5.4.3/libtool --silent --preserve-dup-deps 
--mode=compile xlc -q64 -qcpluscmt  -Iext/mysqli/ 
-I/home/downloads/php-5.4.3/ext/mysqli/ -DPHP_ATOM_INC 
-I/home/downloads/php-5.4.3/include -I/home/downloads/php-5.4.3/main 
-I/home/downloads/php-5.4.3 -I/home/downloads/php-5.4.3/ext/date/lib 
-I/home/downloads/php-5.4.3/ext/ereg/regex -I/opt/freeware/include/libxml2 
-I/opt/freeware/include -I/usr/local/include -I/usr/local/mysql/include 
-I/home/downloads/php-5.4.3/TSRM -I/home/downloads/php-5.4.3/Zend
-I/usr/include -g  -c /home/downloads/php-5.4.3/ext/mysqli/mysqli.c -o 
ext/mysqli/mysqli.lo
"/home/downloads/php-5.4.3/Zend/zend.h", line 179.10: 1506-236 (W) Macro name 
__restrict__ has been redefined.
"/home/downloads/php-5.4.3/Zend/zend.h", line 179.10: 1506-358 (I) 
"__restrict__" is defined on line 186 of /usr/include/standards.h.
"/usr/local/mysql/include/my_config.h", line 1147.9: 1506-236 (W) Macro name 
PACKAGE_NAME has been redefined.
"/usr/local/mysql/include/my_config.h", line 1147.9: 1506-358 (I) 
"PACKAGE_NAME" is defined on line 2104 of 
/home/downloads/php-5.4.3/include/../main/php_config.h.
"/usr/local/mysql/include/my_config.h", line 1150.9: 1506-236 (W) Macro name 
PACKAGE_STRING has been redefined.
"/usr/local/mysql/include/my_config.h", line 1150.9: 1506-358 (I) 
"PACKAGE_STRING" is defined on line 2107 of 
/home/downloads/php-5.4.3/include/../main/php_config.h.
"/usr/local/mysql/include/my_config.h", line 1153.9: 1506-236 (W) Macro name 
PACKAGE_TARNAME has been redefined.
"/usr/local/mysql/include/my_config.h", line 1153.9: 1506-358 (I) 
"PACKAGE_TARNAME" is defined on line 2110 of 
/home/downloads/php-5.4.3/include/../main/php_config.h.
"/usr/local/mysql/include/my_config.h", line 1156.9: 1506-236 (W) Macro name 
PACKAGE_VERSION has been redefined.
"/usr/local/mysql/include/my_config.h", line 1156.9: 1506-358 (I) 
"PACKAGE_VERSION" is defined on line 2116 of 
/home/downloads/php-5.4.3/include/../main/php_config.h.
"/usr/local/mysql/include/my_global.h", line 626.10: 1506-296 (S) #include file 
 not found.
make: 1254-004 The error code from the last command is 1.


Stop.


From: Michael Felt [mailto:mamf...@gmail.com]
Sent: Thursday, June 14, 2012 5:38 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with 
gcc/g++

I have gotten it to compile (5.3.14) - and what I needed to add for the IBM 
compiler was -qlangval=extc99 so that it would accept c++ like comments 
(starting with //)

The other problem I have, and it is an "old" one, is that the AIX make (or 
maybe the ksh) does not execute the $(BUILD_CLI) argument to build 
sapi/cli/php. After editing Makefile, and making sure that "#! ." is not the 
first line of php.sym it completes building.

Anyway, now I need to try a default to "add everything" and see what extras 
need to be built. And also try 5.4.4

On Thu, Jun 14, 2012 at 7:30 PM, Brian Gaber 
mailto:brian.ga...@tpsgc-pwgsc.gc.ca>> wrote:
I was getting errors with sqlite also so I added these two configure directives:

--without-pdo-sqlite
--without-sqlite

This got me past the sqlite problem.



From: Michael Felt [mailto:mamf...@gmail.com<mailto:mamf...@gmail.com>]
Sent: Thursday, June 14, 2012 11:52 AM

To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with 
gcc/g++

Now I need to see if I actually put everything needed in ./build/aix/README for 
httpd.

Starting point for me is: use neither /usr(/local) nor /opt/freeware (as I am 
trying to be independent of "old" RPM's). A secondary goal is that the installp 
packages built are suitable for installation in WPAR (hosting) environments.

Next - I started with a clean installation (AIX 5.3 TL7 first, working mainly 
with AIX 6.1 now) and "added" things as needed.

For zlib - wh

RE: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++

2012-06-14 Thread Brian Gaber
I was getting errors with sqlite also so I added these two configure directives:

--without-pdo-sqlite
--without-sqlite

This got me past the sqlite problem.



From: Michael Felt [mailto:mamf...@gmail.com]
Sent: Thursday, June 14, 2012 11:52 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with 
gcc/g++

Now I need to see if I actually put everything needed in ./build/aix/README for 
httpd.

Starting point for me is: use neither /usr(/local) nor /opt/freeware (as I am 
trying to be independent of "old" RPM's). A secondary goal is that the installp 
packages built are suitable for installation in WPAR (hosting) environments.

Next - I started with a clean installation (AIX 5.3 TL7 first, working mainly 
with AIX 6.1 now) and "added" things as needed.

For zlib - what is needed is to copy zlib.h, and I think there is another zlib 
related include file as well. -- copy to /usr/include, or /opt/include

For apr and apr-util I added build/aix/* files - I'll send copies if you like. 
An independent tester who finds them sucessful may help get them accepted to 
apr and apr-util trunks.

For the other packages that are needed - I wrote a buildaix package that you 
can download via 
http://sourceforge.net/projects/mkinstallp/files/buildaix-1.0.0/

If you add /opt/bin to your PATH the command /opt/bin/buildaix will run the 
./configure command with some defaults - basically - prefix is /opt, 
mandir=/usr/share/man, and confdir is /etc (and another one is /var, I forget 
it's name atm).

I choose /opt as, imho, a better generic prefix for AIX - where /usr/local just 
seems to create problems. (Idea: a symbolic link of /usr/local -> /opt might 
fix a lot of things that break with "./configure" commands that only look at 
/usr and /usr/local by default - but this is an aside".

Summary: drop /usr/local as prefix, stop using old RPM (or any RPM if possible) 
- instead

download and build fresh using buildaix -- /opt, /etc, /var and /usr/share/man 
as default destinations

For httpd: customized version of build/aix/* for apr-util in any case (buildaix 
could be used for apr, but I have a seperate set of files for that package as 
well)

So, e.g., coreutils I built and installed using buildaix, same for pcre and any 
other required external package.

Thus, with php, I started with buildaix.

libxml2 was missing so the basic step was:
root@x104:[/data/prj/libxml2-2.7.7]buildaix

installp -d . aixtools.libxml2.rte

aixtools.libxml2.rte2.7.7.0 USR APPLY   SUCCESS

Added /opt to list of directories to search in configure to look for xml2-config
LINE 21865

And configure completes.

I also got an Syntax errors with embedded sqlite so I compiled an external 
version. However, php continues to try to compile that.

Maybe you can help me beyond this point:

michael@x054:[/data/prj/php-5.3.13]cat php_configure.ksh
#!/usr/bin/ksh

set -x

./configure \
--prefix=/opt \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--with-libdir=/opt/lib \
--with-sqlite3=/opt \
> build/aix/configure.out

Now that configure has finished (there is a makefile) I can use buildaix again 
(it skips the ./configure step if it sees a Makefile)

root@x104:[/data/prj/php-5.3.13]buildaix
NAME: php
VERSION.RELEASE: 5.3.13.0
/usr/bin/buildaix: using existing Makefile
/usr/bin/buildaix: run make distclean to get a standard AIX configure

-rw-r--r-- 1 rootsystem 127516 Jun 14 00:44 ./Makefile
-rw-r--r-- 1 rootsystem  17721 Jun 14 00:44 config.cache
-rw--- 1 michael staff   44892 May  8 11:22 config.guess
-rw-r--r-- 1 rootsystem  47234 Jun 14 00:45 config.log
-rwxr-xr-x 1 rootsystem177 Jun 14 00:42 config.nice
-rwxr-xr-x 1 rootsystem  91276 Jun 14 00:44 config.status
-rw--- 1 michael staff   33387 May  8 11:22 config.sub

+ make > build/aix/make.out
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 893.9: 1506-046 (S) Syntax 
error.
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.41: 1506-045 (S) 
Undeclared identifier i.
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.51: 1506-277 (S) Syntax 
error: possible missing ';' or ','?
"/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.65: 1506-045 (S) 
Undeclared identifier or.
make: 1254-004 The error code from the last command is 1.


Stop.

I hope this is not too lengthy - but I am anxious/curious about what I am doing 
wrong - that make continues to try to compile the embedded sqlite when it has 
an external one.

On Thu, Jun 14, 2012 at 3:03 PM, Brian Gaber 
mailto:brian.ga...@tpsgc-pwgsc.gc.ca>> wrote:
Michael,

Here is the configure that I used:

./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-libxml-dir=/opt/

RE: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++

2012-06-14 Thread Brian Gaber
Michael,

Here is the configure that I used:

./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-libxml-dir=/opt/freeware \
--with-zlib-dir=/opt/freeware

Thanks.

Brian

From: Michael Felt [mailto:mamf...@gmail.com]
Sent: Wednesday, June 13, 2012 3:58 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with 
gcc/g++

started with php build. 1st real error is a syntax error in the embedded sqlite.

After building an external version of sqlite (3.6.22 was the last one I had 
downloaded, haven not looked for a new one) I am stopping for the night. Will 
keep posted.

Question: what are the minimum modules (e.g. gd, jpeg, etc. that need to be 
included. By default most of these are not
being found. my approach will be to get php tp compile with minimal arguments 
to ./configure and then add extra statements as needed.

Michael

On Wed, Jun 13, 2012 at 7:45 PM, Michael Felt 
mailto:mamf...@gmail.com>> wrote:
forgot to mention: no have not tried to compile php against 2.4.x yet. Will 
setup a test machine soon to try.


On Wed, Jun 13, 2012 at 7:44 PM, Michael Felt 
mailto:mamf...@gmail.com>> wrote:
I had tested httpd with xlCv7 and xlCv11 and gcc 4.6.2.

The important thing I noticed is that if you compile apr with gcc you must 
compile httpd with gcc as well, and v.v.
Noone noticed when they were "bundled" I expect.

I also have a buildaix.ksh for both apr and apr-util, but I do not know if 
those have made it into trunk yet. I can send them seperately if interested. 
With apr and apr-util separate the httpd config and build goes much faster.


On Wed, Jun 13, 2012 at 3:16 PM, Brian Gaber 
mailto:brian.ga...@tpsgc-pwgsc.gc.ca>> wrote:
Michael,

I will try your buildaix.ksh script.  I have been using IBM's compiler 
(xlc, cc_r, cc).

On related question, Have you successfully compiled PHP against Apache 
2.4.2?  I have not.  I have tried PHP 5.2, 5.3 and 5.4 and all fail at some 
point.  Against Apache 2.2.x I have not problem compiling PHP.

Cheers.

Brian


From: Michael Felt [mailto:mamf...@gmail.com<mailto:mamf...@gmail.com>]
Sent: Tuesday, June 12, 2012 5:17 PM
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with 
gcc/g++

There are some "more recent" gcc builds for AIX available via: 
http://www.perzl.org/aix/index.php?n=Main.Gcc

Current versions:

 *   AIX5L V5.1: v4.5.3-2
 *   AIX5L V5.2: v4.6.3-2
 *   AIX5L V5.3: v4.6.3-2
 *   AIX V6.1: v4.6.3-2
 *   AIX V7.1: v4.6.3-2

RPM's being what they are - there are several packages that need to be 
installed as mentioned above.

And, I would be very interested in hearing what your experiences are if you use 
the buildaix.ksh script (in ./build/aix directory). The result is (is suppossed 
to be) an installp installable file in build/aix.

Regards,
Michael

On Wed, May 30, 2012 at 7:57 PM, Eric Covener 
mailto:cove...@gmail.com>> wrote:
On Wed, May 30, 2012 at 1:38 PM, Reimer, George
mailto:george.rei...@fisglobal.com>> wrote:
> My browser tells me that "It Works!"  but it took a couple days of banging
> my head against the wall. I encountered the following rough spots and
> eventually stumbled over their solutions as noted:

can you share your gcc experience here in the wiki:

http://wiki.apache.org/httpd/AIXPlatform

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







RE: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++

2012-06-13 Thread Brian Gaber
Michael,

I will try your buildaix.ksh script.  I have been using IBM's compiler 
(xlc, cc_r, cc).

On related question, Have you successfully compiled PHP against Apache 
2.4.2?  I have not.  I have tried PHP 5.2, 5.3 and 5.4 and all fail at some 
point.  Against Apache 2.2.x I have not problem compiling PHP.

Cheers.

Brian


From: Michael Felt [mailto:mamf...@gmail.com]
Sent: Tuesday, June 12, 2012 5:17 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with 
gcc/g++

There are some "more recent" gcc builds for AIX available via: 
http://www.perzl.org/aix/index.php?n=Main.Gcc

Current versions:

 *   AIX5L V5.1: v4.5.3-2
 *   AIX5L V5.2: v4.6.3-2
 *   AIX5L V5.3: v4.6.3-2
 *   AIX V6.1: v4.6.3-2
 *   AIX V7.1: v4.6.3-2

RPM's being what they are - there are several packages that need to be 
installed as mentioned above.

And, I would be very interested in hearing what your experiences are if you use 
the buildaix.ksh script (in ./build/aix directory). The result is (is suppossed 
to be) an installp installable file in build/aix.

Regards,
Michael

On Wed, May 30, 2012 at 7:57 PM, Eric Covener 
mailto:cove...@gmail.com>> wrote:
On Wed, May 30, 2012 at 1:38 PM, Reimer, George
mailto:george.rei...@fisglobal.com>> wrote:
> My browser tells me that "It Works!"  but it took a couple days of banging
> my head against the wall. I encountered the following rough spots and
> eventually stumbled over their solutions as noted:

can you share your gcc experience here in the wiki:

http://wiki.apache.org/httpd/AIXPlatform

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




[users@httpd] RE: httpd-2.4.2 "make install" fails on AIX 6.1

2012-06-05 Thread Brian Gaber
This suggestion worked.

For the "configure" and "make" I had the PATH have "/usr/bin" before 
"/opt/freeware/bin".  Before running "make install" I changed PATH to have 
"/opt/freeware/bin" before "/usr/bin" and this worked.

Having the path with "/opt/freeware/bin" before "/usr/bin"  from the beginning 
resulted in a make error.

Thanks.


From: Reimer, George [mailto:george.rei...@fisglobal.com]
Sent: Tuesday, June 05, 2012 10:31 AM
To: users@httpd.apache.org
Subject: [users@httpd] RE: httpd-2.4.2 "make install" fails on AIX 6.1

Hi Brian,
 I ran into this same problem just a week ago, if I knew more about mailing 
lists and how to update a Wiki I'd be able to refer you to the email I sent In 
about it.

 The problem went away for me when I set up my execution path so that the 
'which install' command found the GNU CoreUtils install program in 
/opt/freeware/bin (I think) instead of the AIX one in /usr/bin. You may need to 
re-run the configure script so the GNU install program gets picked out then.

Yours,

George Reimer

From: Brian Gaber [mailto:brian.ga...@tpsgc-pwgsc.gc.ca]
Sent: Tuesday, June 05, 2012 8:31 AM
To: 'users@httpd.apache.org'
Subject: [users@httpd] httpd-2.4.2 "make install" fails on AIX 6.1

I have similar problem to the problem described here: 
http://grokbase.com/t/apache/dev/11cva03wa7/httpd-2-3-16-beta-make-install-fails

I have coreutils and libtools installed.

I have successfully compiled apr and apr-utils as follows:

# Build and install apr
./configure --prefix=/usr/local/apr-httpd/
make
make install

# Build and install apr-util
./configure --prefix=/usr/local/apr-util-httpd/ 
--with-apr=/usr/local/apr-httpd/ --with-openssl --with-crypto --with-ldap 
--with-expat=/usr
make
make install

# Configure httpd
./configure --with-apr=/usr/local/apr-httpd/ 
--with-apr-util=/usr/local/apr-util-httpd/ \
--with-mpm=prefork \
--enable-auth-basic \
--enable-auth-form \
--enable-authn-anon \
--enable-authn-dbm \
--enable-auth-digest \
--enable-authnz-ldap \
--enable-cern-meta \
--enable-dav \
--enable-dav-fs \
--enable-dbd \
--enable-deflate \
--enable-expires \
--enable-ext-filter \
--enable-headers \
--enable-info \
--enable-ldap \
--enable-mime-magic \
--enable-proxy \
--enable-rewrite \
--enable-session \
--enable-session-cookie \
--enable-session-crypto \
--enable-session-dbd \
--enable-speling \
--enable-ssl \
--enable-unique-id \
--enable-usertrack \
--enable-vhost-alias \
--enable-mods-shared="auth-basic auth-form authn_anon authn_dbm auth_digest 
authnz-ldap cern_meta dav dav_fs dbd deflate expires ext_filter headers info 
ldap mime_magic proxy rewrite session session-cookie session-crypto session-dbd 
ssl speling unique_id usertrack vhost_alias"

make is successful.

make install fails with this error:

Making install in modules
Making install in aaa
rm -f /usr/local/apache2/modules/mod_authn_file.so
/usr/local/apr-httpd//build-1/libtool --silent --mode=install install 
mod_authn_file.la /usr/local/apache2/modules/
find: bad status-- /usr/local/apache2/modules/mod_authn_file.so
install: File mod_authn_file.so was not found.
make: 1254-004 The error code from the last command is 2.


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.


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


Stop.

Thanks for assistance.

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.


RE: [us...@httpd] On 64 bit AIX 6.1 Apache 2.2.14 Not Responding

2009-12-09 Thread Brian Gaber
> Did you ensure that the Listen directive is set?

I left the default which is:

Listen 80

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] On 64 bit AIX 6.1 Apache 2.2.14 Not Responding

2009-12-09 Thread Brian Gaber

Compiled using this environment:

export CC="xlc -q64"
export CFLAGS="-qmaxmem=16384 -DSYSV -D_AIX61 -D_ALL_SOURCE
-DFUNCPROTO=15 -O -I/opt/freeware/include"
export CXX="xlC"
export CXXFLAGS=$CFLAGS
export LD=ld
export LDFLAGS="-L/opt/freeware/lib"
export OBJECT_MODE=64

Compiled and installed fine without errors.  Using default
httpd.conf only changed ServerName.  Start using "apachectl start" and
it starts fine.  ps -ef | grep httpd shows httpd process.  error_log
shows start up, however, when I try to connect from a browser the
error_log records nothing and the browser reports, "The Page Cannot Be
Displayed".

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



RE: [us...@httpd] Compiling Apache 2.2.14 on 64 bit AIX 6.1

2009-12-08 Thread Brian Gaber
> Google can find the thread titled "problem with build on AIX 6.1" from
the development list.

Thanks, this gave me the information to fix my problem:
http://www.mail-archive.com/d...@httpd.apache.org/msg45729.html

I replaced the four Apache httpd config.guess with the AutoMake
config.guess that contains *:AIX:*:[456]

I compiled exactly the same way as before and now I get modules with the
so extension.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Compiling Apache 2.2.14 on 64 bit AIX 6.1

2009-12-08 Thread Brian Gaber

After I build and install Apache in the /modules/ directory I
have paired files like libmod_dbd.a and mod_dbd.la.  The httpd.conf has
all modules with a .so extension.  Have I compiled incorrectly?  Here is
the compile environment:

export CC="cc_r -q64"
export CFLAGS="-qmaxmem=16384 -DSYSV -D_AIX61 -D_ALL_SOURCE
-DFUNCPROTO=15 -O -I/opt/freeware/include"
export CXX="xlC"
export CXXFLAGS=$CFLAGS
export LD=ld
export LDFLAGS="-L/opt/freeware/lib"
export OBJECT_MODE=64

Here is the configure statement:

./configure \
--with-mpm=prefork \
--with-ssl=/opt/freeware \
--enable-cern-meta \
--enable-dbd \
--enable-deflate \
--enable-expires \
--enable-info \
--enable-proxy \
--enable-rewrite \
--enable-speling \
--enable-ssl \
--enable-vhost-alias \
--enable-mods-shared="cern_meta dbd deflate expires info proxy rewrite
speling ssl vhost_alias"

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org