Re: [us...@httpd] apxs: not found
Hi Sakthi, I have removed this line from apxs, i got following output $ ./apxs -c -I/usr/include/libxml2 -I. -i mod_xml2enc.c./apxs: require: not found./apxs: use: not found./apxs: package: not found./apxs: syntax error at line 26: `(' unexpected$ Line 26 in apxs is following:my %config_vars = (); Thanks. --- On Fri, 5/7/10, Sakthi Esakiappan sakthi.esakiap...@mercuryminds.com wrote: From: Sakthi Esakiappan sakthi.esakiap...@mercuryminds.com Subject: Re: [us...@httpd] apxs: not found To: users@httpd.apache.org Date: Friday, May 7, 2010, 1:58 PM Hi Tapan, I could notice there is space missing in the first line between # and ! #!/usr/local/bin/perl -w it should be # !/usr/local/bin/perl -w so only I want you delete the entire line, have a try with it and let me know the output. On 7 May 2010 18:03, Tapan Maheshwari tapan...@yahoo.com wrote: Hi Sakthi,Thanks very much for you time and information, i have followed following steps:1. executed this command in the shell # PATH=$PATH:/usr/local/apache2/bin:/usr/local/bin/ # export $PATH 2.changed the permissions for apxs to 755 3. perl was already installed (checked with command $ which perl) this gave me the location of perl installation, added perl install location to PATH variable, The first line in the apxs shell script(#!/usr/local/bin/perl -w) is already commented out, it won't be executed anyways?? Still i get the same error ./apxs: not found stuck on the same step.any thoughts?? Thanks.Tapan --- On Thu, 5/6/10, Sakthi Esakiappan sakthi.esakiap...@mercuryminds.com wrote: From: Sakthi Esakiappan sakthi.esakiap...@mercuryminds.com Subject: Re: [us...@httpd] apxs: not found To: users@httpd.apache.org Date: Thursday, May 6, 2010, 12:08 PM Hello, Check the following steps 1. I could see the path variable is not set. Add the following lines to the homedirectory/.bash_profile PATH=$PATH:/usr/local/apache2/bin:/usr/local/bin/ now reboot the computer to take this effect, if the system can't rebooted then just execute this in the shell # PATH=$PATH:/usr/local/apache2/bin:/usr/local/bin/ # export $PATH 2. Change the file permission, none of the shell script should be with 777 permission(rwx,rwx,rwx) chmod 755 apxs 3. Make sure perl is installed in /usr/local/bin/perl, since I could see the script uses perl for its execution. # which perl add this output to PATH variable. or try deleting the first line in the apxs shell script(#!/usr/local/bin/perl -w) On 6 May 2010 15:59, Tapan Maheshwari tapan...@yahoo.com wrote: --- On Wed, 5/5/10, Sakthi Esakiappan sakthi.esakiap...@mercuryminds.com wrote: From: Sakthi Esakiappan sakthi.esakiap...@mercuryminds.com Subject: Re: [us...@httpd] apxs: not found To: users@httpd.apache.org Date: Wednesday, May 5, 2010, 3:19 PM Also post cat /usr/local/apache2/bin/apxs On 5 May 2010 19:38, Hendrik Schmieder hendrik.schmie...@jedox.com wrote: Tapan Maheshwari schrieb: YES, i am executing this command from this directory: /usr/local/apache2/bin where apxs is present. again, apxs is not a binary, this is a text file Thanks, What is the output of ls -l /usr/local/apache2/bin/apxs ? Hendrik - The official User-To-User support forum of the Apache HTTP Server Project. See URL: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 -- With Regards, Sakthi Esakiappan.M Server Administrator MercuryMinds Technologies Pvt Ltd www.mercuryminds.com An E-Commerce mentor +91 44 45588587 sakthi.esakiap...@mercuryminds.com www.mercuryminds.com Disclaimer: This message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you have received this message in error, you are hereby notified that we do not consent to any reading, dissemination, distribution or copying of this message. If you have received this communication in error, please notify the sender immediately and destroy the transmitted information. - The official User-To-User support forum of the Apache HTTP Server Project. See URL: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 -- With Regards, Sakthi Esakiappan.M Server Administrator MercuryMinds Technologies Pvt Ltd www.mercuryminds.com An E-Commerce mentor +91 44 45588587 sakthi.esakiap...@mercuryminds.com www.mercuryminds.com Disclaimer: This message is
Re: [us...@httpd] apxs: not found
On Mon, May 10, 2010 at 5:13 AM, Tapan Maheshwari tapan...@yahoo.comwrote: Hi Sakthi, I have removed this line from apxs, i got following output $ ./apxs -c -I/usr/include/libxml2 -I. -i mod_xml2enc.c ./apxs: require: not found ./apxs: use: not found ./apxs: package: not found ./apxs: syntax error at line 26: `(' unexpected Try prefixing that entire command with perl, since you removed the line that tells your system how to interpret the file. -- Eric Covener cove...@gmail.com
[us...@httpd] Apache and daemon capabilities
Hi, I'm trying to use Apache for a file service, with multiple processes. I want to get user file permissions from the OS itself, by setfsuid-ing every time of the individual daemon process (yes, I know that there are other - perhaps better - ways to achieve this. but this is what I need). I'm using the mod_wsgi module, and a python script. I'm setting up several daemon processes for serving the requests, when Apache is originally executed from a root-process that has SETUID and SETGID capabilities, in all its capabilities sets (I set them in the INHERITABLE set, and verified). The daemon (non-root) processes run under daemon user (uid = 2). However when I look at /proc/some httpd pid/status I see that the capabilites are only passed to the initial httpd process, and all the others have them set only in their INHERITABLE set. i.e. initial process has CapInh: 00c0 CapPrm: feff CapEff: feff while the others have CapInh: 00c0 CapPrm: CapEff: And as expected setfsuid() has no effect. To rule out mod_wsgi as the source of the problem, I deleted the check that forbids it from being used with root user, re-installed, and indeed I can then setfsuid() as I wish. So it seems to me the problem does not lie there, but somewhere in the way httpd creates the new processes and the capabilities are passed on. Admittedly I'm no kernel expert, and this is my first experience with the capabilities feature. So I'd appreciate any help and useful idea to what I do wrong. Some tecnical details: httpd 2.2.14 OS - RHEL 5.34 (kernel 2.6.18) mod_wsgi 3.1 Python 2.5.4 Thank you, Osi - The official User-To-User support forum of the Apache HTTP Server Project. See URL: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] Installation: Enabling HTTPS on 2.2.15 win32 with SSL - throws error.
I am completely new to the Apache Web Server. I had no problems installing and running HTTP. The problems started when enabling HTTPS. I could not find instructions in the documentation but I noticed that httpd.conf has two commented sections: LoadModule ssl_module modules/mod_ssl.so Include conf/extra/httpd-ssl.conf Where the second one points to a file generated by the install process using my installation's values, and that contains the instructions that I found in a (clearly old) google posting. It seemed obvious that uncommenting these two lines would enable HTTPS. Unfortunately all the reference to httpd-ssl.conf causes Apache Web Server to fail to start but puts no information about the cause in the logs. My guess is that I missed doing something. Can someone point me in the right direction, or if the steps to enable HTTPS on 2.2.15 are documented somewhere, please point me to that documentation? Thanks.
[us...@httpd] Appserver Queues Filling Up
Apache version:2.2.3 JBoss version: 5 JBoss Web: 2.1.3.GA http://2.1.3.ga/ mod_jk: 1.2.30 Dear community, We are having a Wicket-based Java application deployed in a production server cluster using Apache (2.2.3) with mod_jk (1.2.30) as load balancing component w/ sticky session and Jboss 5 as application container for the Java application. We are inconsistently seeing an issue in our production environment where our AJP queues between Apache and Jboss as shown in the JMX console fill up with requests to the point where the application server is no longer taking on any new requests. When looking at all involved system components (overall traffic, load db, process list db, load of all clustered application server nodes) nothing points towards a capacity issue which would explain why the calls are being stalled in the AJP queue. Instead all systems appear sufficiently idle. So far, our only remedy to this issue is to restart the appservers and the load balancer which only occasionally clears the AJP queues. We are trying to figure out why the queues are filling up to the point that no calls get returned to the end user although the system is not under a high load. Has anyone else experienced similar problems? Are there any other system metrics we should monitor that could explain the queuing behavior? Is this potentially a mod_jk issue? If so, is it advisable to swap mod_jk with mod_cluster to resolve the issue? Any advice is highly appreciated. If I can provide additional information for the sake of troubleshooting I would be more than willing to do so. /Ben *Ben Knight* System Engineer • Fi *T:* +1 212 941 5220 / *M:* +1 917 664 0297 ben.kni...@f-i.com / www.f-i.com This communication is confidential and is only intended for the use of the individual or entity to which it is directed. It may contain information that is privileged and exempt from disclosure under applicable law. If you are not the Intended recipient, please notify us immediately. You should not copy it or disclose its content to any other person.
RE: [us...@httpd] mod_expires Why are both the Expires and Cache-Control HTTP headers set?
crickets chirping Is this the wrong forum for this question? /crickets chirping The HTTP spec linked below says, Servers specify explicit expiration times using *either* the Expires header, or the max-age directive of the Cache-Control header. So why then does mod_expires set *both* the Expires HTTP header *and* the max-age directive of the Cache-Control HTTP header? It's overkill to set both, right? http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.2.1 http://httpd.apache.org/docs/2.2/mod/mod_expires.html Thanks, http://www.t1shopper.com/ PS. It would be great if mod_expires had a Directive something like ExpiresHeader where the syntax could be something like Expires|Cache-Control|All smime.p7s Description: S/MIME cryptographic signature
Re: [us...@httpd] mod_expires Why are both the Expires and Cache-Control HTTP headers set?
On Mon, May 10, 2010 at 6:37 PM, Geoff Millikan gmilli...@t1shopper.com wrote: The HTTP spec linked below says, Servers specify explicit expiration times using *either* the Expires header, or the max-age directive of the Cache-Control header. It later talks about times when you might want to set them to different values, so I wouldn't interpret either as not allowing both. So why then does mod_expires set *both* the Expires HTTP header *and* the max-age directive of the Cache-Control HTTP header? It's overkill to set both, right? It's been like that in mod_expires for more than 10 years, perhaps there were clients that knew Cache-Control but not Expires (and 1.0 clients that have the other side) -- Eric Covener cove...@gmail.com - The official User-To-User support forum of the Apache HTTP Server Project. See URL: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] mod_expires Why are both the Expires and Cache-Control HTTP headers set?
On 10 May 2010, at 23:37, Geoff Millikan wrote: The HTTP spec linked below says, Servers specify explicit expiration times using *either* the Expires header, or the max-age directive of the Cache-Control header. So why then does mod_expires set *both* the Expires HTTP header *and* the max-age directive of the Cache-Control HTTP header? It's overkill to set both, right? It's a cousin of (half of) Postel's law: be careful in what you send. If the server sets both headers, it maximises the chance of an unknown client understanding at least one of them. -- Nick Kew - The official User-To-User support forum of the Apache HTTP Server Project. See URL: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] Installation: Enabling HTTPS on 2.2.15 win32 with SSL - throws error.
hi, you must provide the RSA Private Keys and Certificates in the httpd-ssl.conf see more here:http://httpd.apache.org/docs/2.2/ssl/ssl_faq.html#aboutcerts Best regards, Sharl.Jimh.Tsin 2010/5/11 Bruno Melloni bruno.mell...@chickasaw.net: I am completely new to the Apache Web Server. I had no problems installing and running HTTP. The problems started when enabling HTTPS. I could not find instructions in the documentation but I noticed that httpd.conf has two commented sections: LoadModule ssl_module modules/mod_ssl.so Include conf/extra/httpd-ssl.conf Where the second one points to a file generated by the install process using my installation’s values, and that contains the instructions that I found in a (clearly old) google posting. It seemed obvious that uncommenting these two lines would enable HTTPS. Unfortunately all the reference to httpd-ssl.conf causes Apache Web Server to fail to start but puts no information about the cause in the logs. My guess is that I missed doing something. Can someone point me in the right direction, or if the steps to enable HTTPS on 2.2.15 are documented somewhere, please point me to that documentation? Thanks. - The official User-To-User support forum of the Apache HTTP Server Project. See URL: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