RE: [users@httpd] compiling apache on ubuntu
You need to install some development packages like build-essential , libssl-dev , zlib1g-dev and probably others too depending on what modules you want . -Original Message- From: Roberto Marzialetti [mailto:roberto.marziale...@gmail.com] Sent: Tuesday, May 23, 2017 9:45 PM To: users@httpd.apache.org Subject: [users@httpd] compiling apache on ubuntu hi all! i try to compile Apache 2.2.32 on: [code] DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS" NAME="Ubuntu" VERSION="16.04.2 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.2 LTS" VERSION_ID="16.04" [/code] this is my configure: [code] ./configure --enable-rewrite --enable-vhost-alias --enable-so --enable-ssl --enable-deflate --enable-headers [/code] i get this error on "make": [code] network_io/unix/sockaddr.c: In function ‘find_addresses’: network_io/unix/sockaddr.c:518:20: error: storage size of ‘hs’ isn’t known struct hostent hs; ^ network_io/unix/sockaddr.c:551:14: warning: implicit declaration of function ‘gethostbyname_r’ [-Wimplicit-function-declaration] hp = gethostbyname_r(hostname, &hs, tmp, GETHOSTBYNAME_BUFLEN - 1, ^ network_io/unix/sockaddr.c:566:21: error: ‘h_errno’ undeclared (first use in this function) return (h_errno + APR_OS_START_SYSERR); ^ network_io/unix/sockaddr.c:566:21: note: each undeclared identifier is reported only once for each function it appears in network_io/unix/sockaddr.c:573:14: error: dereferencing pointer to incomplete type ‘struct hostent’ while (hp->h_addr_list[curaddr]) { [/code] (i get the error without any options too) in config.log there are these strage "unknown": [code] /usr/bin/uname -p = unknown [...] /bin/arch = unknown [/code] here my all config.log: https://apaste.info/6Jbg any idea? many many thanks i'm going crazy... -- Roberto Marzialetti webdeveloper m. 329 0681847 - 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 apache on ubuntu
On Wed, May 24, 2017 at 7:24 AM, Alexandru Duzsardi wrote: > You need to install some development packages like build-essential , > libssl-dev , zlib1g-dev and probably others too depending on what modules you > want . On Ubuntu you can "apt-get build-dep $the-existing-pkg" for a good head start. -- 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] Rewrite REMOTE_USER environment variable
On Tue, May 23, 2017 at 8:45 PM, Ken Mycock wrote: > Eric > > It seems to make sense that REMOTE_USER wasn't set when the rule I tried in > htaccess ran, as that would explain RU not being set. > > But, REMOTE_USER must be set by Apache, even if it is late in the sequence, > so where/how can I get at it? ap_add_common_vars() sets REMOTE_USER from r->user, and practically nothing happens between then and the execution of the cgi script (assuming you're using mod_cgi, I haven't checked anything else). So it looks like your options are - change the environment variable in the CGI process itself - write an apache module to remove the leading zeroes - possibly use mod_lua rainer - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Building httpd2.4.25 on powerpc-ibm-aix7.1.0.0
I have been trying to install/compile Apache Subversion 1.9.5 with HTTPD-2.2.32, and it's been failing consistently. Someone mentioned that Subversion1.9.5 may not have been fully tested with HTTPD2.2.x. So I decided to install httpd-2.4.25 on the same machine and give it a try. Except that I am getting errors when building httpd-2.2.32. Config command line is as follows: It was created by configure, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure --enable-so -enable-dav --prefix=/opt/eai/ci/httpd-2.4.25/apache --with-iconv=/opt/eai/ci/libiconv-1.15/libiconv/lib --with-apr=/opt/fre eware/bin/apr-1-config --with-apr-util=/opt/freeware/bin --with-pcre=/opt/eai/ci/httpd-2.2.32/pcre/pcre-config There are no significant errors in config, as far as I can see. The make fails with the following: Target "shared-build" is up to date. Building shared: mod_authn_file.la mod_authn_dbm.la mod_authn_anon.la mod_authn_dbd.la mod_authn_socache.la mod_authn_core.la mod_authz_host .la mod_authz_groupfile.la mod_authz_user.la mod_authz_dbm.la mod_authz_owner.la mod_authz_dbd.la mod_authz_core.la mod_authnz_ldap.la mod_a ccess_compat.la mod_auth_basic.la mod_auth_form.la mod_auth_digest.la mod_allowmethods.la /opt/freeware/lib/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 -qHALT=E -U__STR__ -D_THREAD_SAFE -D_USE_IRS -D_L ARGEFILE64_SOURCE -I. -I/opt/eai/ci/httpd-2.4.25/os/unix -I/opt/eai/ci/httpd-2.4.25/include -I/opt/freeware/include/apr-1 -I/opt/eai/ci/ httpd-2.2.32/pcre/include -I/opt/eai/ci/httpd-2.4.25/modules/aaa -I/opt/eai/ci/httpd-2.4.25/modules/cache -I/opt/eai/ci/httpd-2.4.25/modules /core -I/opt/eai/ci/httpd-2.4.25/modules/database -I/opt/eai/ci/httpd-2.4.25/modules/filters -I/opt/eai/ci/httpd-2.4.25/modules/ldap -I/opt/ eai/ci/httpd-2.4.25/modules/loggers -I/opt/eai/ci/httpd-2.4.25/modules/lua -I/opt/eai/ci/httpd-2.4.25/modules/proxy -I/opt/eai/ci/httpd-2.4. 25/modules/session -I/opt/eai/ci/httpd-2.4.25/modules/ssl -I/opt/eai/ci/httpd-2.4.25/modules/test -I/opt/eai/ci/httpd-2.4.25/server -I/opt/e ai/ci/httpd-2.4.25/modules/arch/unix -I/opt/eai/ci/httpd-2.4.25/modules/dav/main -I/opt/eai/ci/httpd-2.4.25/modules/generators -I/opt/eai/ci /httpd-2.4.25/modules/mappers -prefer-pic -c mod_authn_file.c && touch mod_authn_file.slo gcc: unrecognized option '-qHALT=E' /opt/freeware/lib/apr-1/build/libtool --silent --mode=link gcc -std=gnu99 -qHALT=E -Wl,-brtl -Wl,-brtl-o mod_authn_file.l a -rpath /opt/eai/ci/httpd-2.4.25/apache/modules -module -avoid-version mod_authn_file.lo /opt/freeware/lib/apr-1/build/libtool[3447]: cc: not found make: 1254-004 The error code from the last command is 127. 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. I am using previously installed apr and apr-util, as well as pcre for httpd2.2.32. Can you guys provide some guidance ? It's really appreciated. Thanks
Re: [users@httpd] mod_lua and subprocess_env
Does anybody know anything about Yann? 🤔 On Thu, Apr 27, 2017 at 3:47 PM, Andrei Ivanov wrote: > Yann? 😓 > > > On Wed, Apr 19, 2017 at 11:49 AM, Andrei Ivanov > wrote: > >> On Apr 10, 2017 12:10 PM, "Andrei Ivanov" >> wrote: >> >> On Tue, Apr 4, 2017 at 4:25 PM, Andrei Ivanov >> wrote: >> >>> On Wed, Mar 29, 2017 at 12:16 PM, Andrei Ivanov >> > wrote: >>> On Thu, Mar 23, 2017 at 3:52 PM, Andrei Ivanov >>> > wrote: > On Wed, Mar 22, 2017 at 5:08 PM, Yann Ylavic > wrote: > >> On Wed, Mar 22, 2017 at 3:45 PM, Andrei Ivanov < >> andrei.iva...@gmail.com> wrote: >> > On Wed, Mar 22, 2017 at 3:53 PM, Andrei Ivanov < >> andrei.iva...@gmail.com> >> > wrote: >> > >> > Argh! You've sent more emails but Gmail received them out of order >> so I >> > didn't see your initial email about the changed syntax. >> >> We seem to talk past each other :) >> Anyway, maybe past failures make more sense now... >> >> > >> > It works now! :-) >> > Wooohooo! >> >> Cool. >> >> > >> > Now... any chance of getting the patches included in the next >> release? :-D >> >> Possibly, we'll propose and ask for feedbacks on the dev@ mailing >> list first ;) >> > > Any way I can help with this? > I saw a discussion already started about 2.4.26... > Yann? :-D >>> >>> Ping :-/ >>> >> >> Yann, please come baaack! >> >> >> 😲 >> >> >> >>> >>> > > Btw, I also created a ticket for what I thought was the solution at > that time: https://bz.apache.org/bugzilla/show_bug.cgi?id=60456 > I guess that would still make sense to have in the future... > > >> >> > >> > Thank you very much, I owe you many beers! :-) >> >> I can drink that! let's see :) >> > >>> >> >
Re: [users@httpd] Building httpd2.4.25 on powerpc-ibm-aix7.1.0.0
Niltze [Hello] On Wed, May 24, 2017 at 8:08 AM, Joseph, Anselm wrote: > > I have been trying to install/compile Apache Subversion 1.9.5 with > HTTPD-2.2.32, and it’s been failing consistently. > > Someone mentioned that Subversion1.9.5 may not have been fully tested with > HTTPD2.2.x. So I decided to install httpd-2.4.25 on the same machine and give > it a try. > > Except that I am getting errors when building httpd-2.2.32. > > Config command line is as follows: > > It was created by configure, which was > > generated by GNU Autoconf 2.69. Invocation command line was > > > > $ ./configure --enable-so –enable-dav > --prefix=/opt/eai/ci/httpd-2.4.25/apache > --with-iconv=/opt/eai/ci/libiconv-1.15/libiconv/lib --with-apr=/opt/fre > > eware/bin/apr-1-config --with-apr-util=/opt/freeware/bin > --with-pcre=/opt/eai/ci/httpd-2.2.32/pcre/pcre-config > > There are no significant errors in config, as far as I can see. > > The make fails with the following: > > Target "shared-build" is up to date. > > Building shared: mod_authn_file.la mod_authn_dbm.la mod_authn_anon.la > mod_authn_dbd.la mod_authn_socache.la mod_authn_core.la mod_authz_host > > .la mod_authz_groupfile.la mod_authz_user.la mod_authz_dbm.la > mod_authz_owner.la mod_authz_dbd.la mod_authz_core.la mod_authnz_ldap.la mod_a > > ccess_compat.la mod_auth_basic.la mod_auth_form.la mod_auth_digest.la > mod_allowmethods.la > > /opt/freeware/lib/apr-1/build/libtool --silent --mode=compile gcc > -std=gnu99 -qHALT=E -U__STR__ -D_THREAD_SAFE -D_USE_IRS -D_L > > ARGEFILE64_SOURCE -I. -I/opt/eai/ci/httpd-2.4.25/os/unix > -I/opt/eai/ci/httpd-2.4.25/include -I/opt/freeware/include/apr-1 > -I/opt/eai/ci/ > > httpd-2.2.32/pcre/include -I/opt/eai/ci/httpd-2.4.25/modules/aaa > -I/opt/eai/ci/httpd-2.4.25/modules/cache -I/opt/eai/ci/httpd-2.4.25/modules > > /core -I/opt/eai/ci/httpd-2.4.25/modules/database > -I/opt/eai/ci/httpd-2.4.25/modules/filters > -I/opt/eai/ci/httpd-2.4.25/modules/ldap -I/opt/ > > eai/ci/httpd-2.4.25/modules/loggers -I/opt/eai/ci/httpd-2.4.25/modules/lua > -I/opt/eai/ci/httpd-2.4.25/modules/proxy -I/opt/eai/ci/httpd-2.4. > > 25/modules/session -I/opt/eai/ci/httpd-2.4.25/modules/ssl > -I/opt/eai/ci/httpd-2.4.25/modules/test -I/opt/eai/ci/httpd-2.4.25/server > -I/opt/e > > ai/ci/httpd-2.4.25/modules/arch/unix > -I/opt/eai/ci/httpd-2.4.25/modules/dav/main > -I/opt/eai/ci/httpd-2.4.25/modules/generators -I/opt/eai/ci > > /httpd-2.4.25/modules/mappers -prefer-pic -c mod_authn_file.c && touch > mod_authn_file.slo > > gcc: unrecognized option '-qHALT=E' > > /opt/freeware/lib/apr-1/build/libtool --silent --mode=link gcc > -std=gnu99 -qHALT=E -Wl,-brtl -Wl,-brtl-o mod_authn_file.l > > a -rpath /opt/eai/ci/httpd-2.4.25/apache/modules -module -avoid-version > mod_authn_file.lo > > /opt/freeware/lib/apr-1/build/libtool[3447]: cc: not found > > make: 1254-004 The error code from the last command is 127. > > > > > > 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. > > I am using previously installed apr and apr-util, as well as pcre for > httpd2.2.32. > > Can you guys provide some guidance ? It’s really appreciated. > > Thanks > > Please, look at: < http://www.aixtools.net/index.php/httpd-2.4 > And/Or try your build with tools in this bundle: < http://download.aixtools.net/tools/apache/aixtools.httpd-2.4.bundle.tar.bz2 > Best Professional Regards. -- Jose R R http://metztli.it - Download Debian-Reiser4 for AMD64 https://sf.net/projects/debian-reiser4/ - Try at no charge http://b2evolution.net for http://OpenShift.com PaaS - from our GitHub http://Nepohualtzintzin.com repository. Cloud the easy way! - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Building httpd2.4.25 on powerpc-ibm-aix7.1.0.0
On Wed, May 24, 2017 at 11:08 AM, Joseph, Anselm wrote: > I have been trying to install/compile Apache Subversion 1.9.5 with > HTTPD-2.2.32, and it’s been failing consistently. Some notes about build environments on AIX here: https://wiki.apache.org/httpd/AIXPlatform -- 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] Apache HTTP Server - 2.4.15-mod_prefork module
Thanks, I managed to install and load the mpm_prefork module. I would like to acheive HTTP connection queuing using prefork maxclients and listenbacklogs parameters . I am able to achieve some queueing when connection exceeds the limit specified in maxclients, Is there any way for me to hold the pending connectiobs for specific time in the Q? Apache is a proxy and weblogic is back-end server. On May 23, 2017 20:56, "Alexandru Duzsardi" < alexandru.duzsa...@pitechnologies.ro> wrote: > Yes , i looked at the configure script again , i was used to seeing some > mpm in the name when listing the loaded modules J > > I don’t think i ever compliled apache with statically linked mpm modules , > sorry for the confusion. > > > > From the configure script help: > > > > --with-mpm=MPM Choose the process model for Apache to use by > > default. MPM={event|worker|prefork|winnt} This > will > > be statically linked as the only available MPM > > unless --enable-mpms-shared is also specified > > > > > > > > *From:* Velmurugan Dhakshnamoorthy [mailto:dvel@gmail.com] > *Sent:* Tuesday, May 23, 2017 3:40 PM > *To:* users@httpd.apache.org > *Subject:* Re: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork > module > > > > hi, > > > > here is the list of loaded modules.seems, there is a mpm_event_module is > enabled. but I would like to use prefork module to do some testing on > connection queuing. how do I move forward now? please suggest. > > > > core_module (static) > > so_module (static) > > http_module (static) > > mpm_event_module (static) > > authn_file_module (shared) > > authn_core_module (shared) > > authz_host_module (shared) > > authz_groupfile_module (shared) > > authz_user_module (shared) > > authz_core_module (shared) > > access_compat_module (shared) > > auth_basic_module (shared) > > reqtimeout_module (shared) > > filter_module (shared) > > mime_module (shared) > > log_config_module (shared) > > env_module (shared) > > headers_module (shared) > > setenvif_module (shared) > > version_module (shared) > > ssl_module (shared) > > unixd_module (shared) > > status_module (shared) > > autoindex_module (shared) > > dir_module (shared) > > alias_module (shared) > > weblogic_module (shared) > > qos_module (shared) > > > > > > > Regards, > > Velmurugan Dhakshnamoorthy (Vel) > > Singapore. > > > > On Tue, May 23, 2017 at 8:30 PM, Daniel wrote: > > 2017-05-23 14:28 GMT+02:00 Alexandru Duzsardi > : > > That’s good , no mpm compiled in . > > > > What about httpd –M ? > > > > It clearly says event.c > > So yes, mpm compiled in. > > > > > > -- > Daniel Ferradal > IT Specialist > > email dferradal at gmail.com > linkedin es.linkedin.com/in/danielferradal > > - > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > > >