[users@httpd] SetEnv not doing what I'd hoped

2012-06-17 Thread Stuart McGraw
I am having a problem get SetEnv to work (at least 
as I think it is supposed to).  I have some python 
cgi scripts that start with:

  #!/usr/bin/env python

I cannot (for logistical reasons) change these scripts.
However, the system python in /usr/bin/ is an old version
that the scripts will not run correctly with.

I installed a new version of python in /opt/python/
and added a SetEnv option to change PATH, putting the 
new python interpreter directory first:

  ScriptAlias /mydir/cgi/ /home/stuart/devel/web/cgi/
  Alias   /mydir/ /home/stuart/devel/web/
  
SetEnv PATH /opt/python/bin:/usr/bin:/bin
...other stuff...


I confirmed that the new python is installed ok, runs correctly
when I set my own path as above, etc.  

However, when I put a cgi script that prints its environment
variables in the web directory, and view it with a browser, 
it shows the PATH has not been changed (and the old interpreter 
is executing it.)  The config section above does and has been 
working fine (except the the wrong python is executed.)

Am I doing something wrong?  How can I get this to work?

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



Re: [users@httpd] "configure" error on openssl v1.0.1c for apache 2.2.22

2012-06-17 Thread Michael Felt
An idea? Yes. Guarantee - no.

Maybe there are new configure options for openssl - so my idea would be to
compare the config.log files of the one that works with the one that does
not, or a diff of the Makefiles.

On Fri, Jun 15, 2012 at 9:10 PM, Ruiyuan Jiang  wrote:

> Hi, all
>
> I am trying to upgrade my Openssl for Apache httpd to the latest version
> v1.0.1c on RHEL v6.2 (64 bit). Openssl compiled and installed no problem. I
> then tried to configure httpd v2.2.22 and got error message:
>
> checking for library containing crypt... -lcrypt
> checking for getpwnam... yes
> checking for getgrnam... yes
> checking for initgroups... yes
> checking for bindprocessor... no
> checking for prctl... yes
> checking for timegm... yes
> checking for getpgid... yes
> checking for void pointer length... no
> checking for tm_gmtoff in struct tm... yes
> checking whether to enable mod_authn_file... shared (all)
> checking whether to enable mod_authn_dbm... shared (all)
> checking whether to enable mod_authn_anon... shared (all)
> checking whether to enable mod_authn_dbd... shared (all)
> checking whether to enable mod_authn_default... shared (all)
> checking whether to enable mod_authn_alias... no
> checking whether to enable mod_authz_host... shared (all)
> checking whether to enable mod_authz_groupfile... shared (all)
> checking whether to enable mod_authz_user... shared (all)
> checking whether to enable mod_authz_dbm... shared (all)
> checking whether to enable mod_authz_owner... shared (all)
> checking whether to enable mod_authnz_ldap... checking dependencies
> checking whether to enable mod_authnz_ldap... shared (all)
> checking whether to enable mod_authz_default... shared (all)
> checking whether to enable mod_auth_basic... shared (all)
> checking whether to enable mod_auth_digest... checking dependencies
> checking whether to enable mod_auth_digest... shared (all)
> checking whether to enable mod_isapi... no
> checking whether to enable mod_file_cache... no
> checking whether to enable mod_cache... no
> checking whether to enable mod_disk_cache... no
> checking whether to enable mod_mem_cache... no
> checking whether to enable mod_dbd... shared (all)
> checking whether to enable mod_bucketeer... no
> checking whether to enable mod_dumpio... shared (all)
> checking whether to enable mod_echo... no
> checking whether to enable mod_example... no
> checking whether to enable mod_case_filter... no
> checking whether to enable mod_case_filter_in... no
> checking whether to enable mod_reqtimeout... shared (all)
> checking whether to enable mod_ext_filter... shared (all)
> checking whether to enable mod_include... shared (all)
> checking whether to enable mod_filter... shared (all)
> checking whether to enable mod_substitute... shared (all)
> checking whether to enable mod_charset_lite... no
> checking whether to enable mod_deflate... checking dependencies
> checking for zlib location... /usr
>  adding "-lz" to LIBS
> checking for zlib library... found
>  forcing MOD_DEFLATE_LDADD to "-lz"
>  removed "-lz" from LIBS
> checking whether to enable mod_deflate... shared (all)
> checking whether to enable mod_ldap... checking dependencies
> checking whether to enable mod_ldap... shared (all)
> checking whether to enable mod_log_config... shared (all)
> checking whether to enable mod_log_forensic... shared (all)
>  adding "-I$(top_builddir)/server" to INCLUDES
> checking whether to enable mod_logio... shared (all)
> checking whether to enable mod_env... shared (all)
> checking whether to enable mod_mime_magic... shared (all)
> checking whether to enable mod_cern_meta... shared (all)
> checking whether to enable mod_expires... shared (all)
> checking whether to enable mod_headers... shared (all)
> checking whether to enable mod_ident... shared (all)
> checking whether to enable mod_usertrack... checking dependencies
> checking sys/times.h usability... yes
> checking sys/times.h presence... yes
> checking for sys/times.h... yes
> checking for times... yes
> checking whether to enable mod_usertrack... shared (all)
> checking whether to enable mod_unique_id... shared (all)
> checking whether to enable mod_setenvif... shared (all)
> checking whether to enable mod_version... shared (all)
> checking whether to enable mod_proxy... shared (all)
> checking whether to enable mod_proxy_connect... shared (all)
> checking whether to enable mod_proxy_ftp... shared (all)
> checking whether to enable mod_proxy_http... shared (all)
> checking whether to enable mod_proxy_scgi... shared (all)
> checking whether to enable mod_proxy_ajp... shared (all)
> checking whether to enable mod_proxy_balancer... shared (all)
>  adding "-I$(top_srcdir)/modules/proxy/../generators" to INCLUDES
> checking whether to enable mod_ssl... checking dependencies
> checking for SSL/TLS toolkit base... /usr/local/ssl-1.0.1c
>  adding "-I/usr/local/ssl-1.0.1c/include" to CPPFLAGS
>  adding "-I/usr/local/ssl-1.0.1c/include" to INCLUDES
>  adding "-L/usr/local/ssl-1.

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

2012-06-17 Thread Michael Felt
There was a short discussion some time back (in dev) about whether to
commit to c89 or c99 syntax. The c++ comments slip in from time to time -
and note it is in php that the c++ comments are giving the problem. Apache
is "clean" and compiles fine against cc defaults (i.e. c89 syntax).

On Fri, Jun 15, 2012 at 12:11 AM, Bennett, Tony wrote:

> RE: what I needed to add for the IBM compiler was -qlangval=extc99 so
> that it would accept c++ like comments
>
> ** **
>
> You can give xlc this argument to allow C++ comments:  
>
> -qcpluscmt
>
> ** **
>
> ** **
>
> ** **
>
> *From:* Michael Felt [mailto:mamf...@gmail.com]
> *Sent:* Thursday, June 14, 2012 2: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 <
> 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] 
>
> *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 (