Re: [us...@httpd] Service Temporarily Unavailable
The problem is solved. Our network and firewall is has some problems and not stable. It's fixed now. -- View this message in context: http://www.nabble.com/Service-Temporarily-Unavailable-tp25907783p25987110.html Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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
[us...@httpd] modul development, insertion of postdata into request
Hello, the thing to have: inserting (raw) postdata to a request, so later modules like php can reach it. reading is simple with 'apr_brigade_flatten' but writing draws problems, i tried 'apr_brigade_write' and flush it into input filters - internal server error :-/ have anyone some snippets of code, that solves it? btw: [x] queried google [x] queried books Yours Martin -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser - 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] modul development, insertion of postdata into request
broetche...@gmx.net wrote: Hello, the thing to have: inserting (raw) postdata to a request, so later modules like php can reach it. reading is simple with 'apr_brigade_flatten' but writing draws problems, i tried 'apr_brigade_write' and flush it into input filters - internal server error :-/ have anyone some snippets of code, that solves it? Sounds like you're looking to write an input filter. The input chain works by pull, so you don't push to it! [x] queried books http://www.apachetutor.org/ -- 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] modul development, insertion of postdata into request
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi inserting (raw) postdata to a request, so later modules like php can reach it. reading is simple with 'apr_brigade_flatten' but writing draws problems, i tried 'apr_brigade_write' and flush it into input filters - internal server error :-/ have anyone some snippets of code, that solves it? Sounds like you're looking to write an input filter. The input chain works by pull, so you don't push to it! yes, i have a input filter module - okay noticed input is readonly [x] queried books http://www.apachetutor.org/ that book is laying on my desk, it only deescribes howto get the data, not howto insert it thanks, Yours martin -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkrfHuAACgkQ7Quuf9/D+8sG7gCg0+7+cdNF+fyOt/LTy3sg8Mew cs4AmwaZdnPJLDWwFr0YvnM9uuIKQF4m =oOsz -END PGP SIGNATURE- - 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_ext_filter cmd output is garbage
Marcos Mendez wrote: Hi, I'm having problem running anything other than the sample sed command used with ext_filter in the documentation (eg cmd=/bin/sed s/verdana/aria/g). When I try to run a script (sh, bash, or php) I always get (binary) garbage in the output. Any ideas? My filters are defined as: ExtFilterDefine myfilter1 mode=output intype=text/html cmd=/usr/bin/php -f /etc/apache2/script1.php ExtFilterDefine myfilter2 mode=output intype=text/html cmd=/bin/sh -f /etc/apache2/script2.sh ExtFilterDefine myfilter3 mode=output intype=text/html cmd=/etc/apache2/script3.sh Not that we question your script-writing abilities, but it is a bit difficult to figure out what happens without actually seeing any of these scripts. Can you create a simple one, try it and show it here ? - 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] modul development, insertion of postdata into request
Martin Schuhmacher wrote: that book is laying on my desk, it only deescribes howto get the data, not howto insert it Um, haven't time to check just now, but I'm sure there's an input filter example! Anyway, you insert data by making a bucket (or buckets) of them, and inserting that in your caller's brigade. -- 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] mod_ext_filter cmd output is garbage
Heheheh... I doubt my script-writing abilities! Here's a simple php5 script to echo the output. ? php $stdin = file_get_contents('php://stdin'); print($stdin); ? I've tried the script with cat sometextfile | php -f test.php and it echoes the standard input. Regards, Marcos On Wed, Oct 21, 2009 at 11:15 AM, André Warnier a...@ice-sa.com wrote: Marcos Mendez wrote: Hi, I'm having problem running anything other than the sample sed command used with ext_filter in the documentation (eg cmd=/bin/sed s/verdana/aria/g). When I try to run a script (sh, bash, or php) I always get (binary) garbage in the output. Any ideas? My filters are defined as: ExtFilterDefine myfilter1 mode=output intype=text/html cmd=/usr/bin/php -f /etc/apache2/script1.php ExtFilterDefine myfilter2 mode=output intype=text/html cmd=/bin/sh -f /etc/apache2/script2.sh ExtFilterDefine myfilter3 mode=output intype=text/html cmd=/etc/apache2/script3.sh Not that we question your script-writing abilities, but it is a bit difficult to figure out what happens without actually seeing any of these scripts. Can you create a simple one, try it and show it here ? - 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 - 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] Re: modul development, insertion of postdata into request
Nick Kew n...@webthing.com writes: Martin Schuhmacher wrote: that book is laying on my desk, it only deescribes howto get the data, not howto insert it Um, haven't time to check just now, but I'm sure there's an input filter example! 8.12.4 Input Filter Example (p. 232 in my copy) -- Dan Poirier poir...@pobox.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_ext_filter cmd output is garbage
I should probably also mention that being through mod_proxy. I've setup a transparent proxy and I'm trying to add some content on the fly. Just doesn't seem to work with my php script. --- example proxy conf --- ExtFilterDefine myfilter1 mode=output intype=text/html cmd=/usr/bin/php -f /etc/apache2/script1.php IfModule mod_proxy.c Proxy * SetOutputFilter myfilter1 /Proxy /IfModule Regards, Marcos On Wed, Oct 21, 2009 at 12:06 PM, Marcos Mendez marcosrmen...@gmail.com wrote: Heheheh... I doubt my script-writing abilities! Here's a simple php5 script to echo the output. ? php $stdin = file_get_contents('php://stdin'); print($stdin); ? I've tried the script with cat sometextfile | php -f test.php and it echoes the standard input. Regards, Marcos On Wed, Oct 21, 2009 at 11:15 AM, André Warnier a...@ice-sa.com wrote: Marcos Mendez wrote: Hi, I'm having problem running anything other than the sample sed command used with ext_filter in the documentation (eg cmd=/bin/sed s/verdana/aria/g). When I try to run a script (sh, bash, or php) I always get (binary) garbage in the output. Any ideas? My filters are defined as: ExtFilterDefine myfilter1 mode=output intype=text/html cmd=/usr/bin/php -f /etc/apache2/script1.php ExtFilterDefine myfilter2 mode=output intype=text/html cmd=/bin/sh -f /etc/apache2/script2.sh ExtFilterDefine myfilter3 mode=output intype=text/html cmd=/etc/apache2/script3.sh Not that we question your script-writing abilities, but it is a bit difficult to figure out what happens without actually seeing any of these scripts. Can you create a simple one, try it and show it here ? - 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 - 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] SOAP calls are not processed after upgrade to 2.2.14
I am trying to upgrade my Apache http server from 2.2.4 to 2.2.14 and all SOAP calls are returned with a 500 Internal Server Error message. I have loaded all modules I used in 2.2.4 and am using the same basic configuration in my httpd.conf. The server starts without any errors and if I uninstall 2.2.14 I can install 2.2.4 and start on the same box and it works so I can't see it being a file location or permissions issue. The only error I get in my logs is Premature end of script headers: SOAPISAP.dll Has anyone seen anything like this when handling a SOAP call? Do I need to load a new module or add a new configuration item in 2.2.14 to support SOAP? Thanks in advance. Tom Hickey - 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] SOAP calls are not processed after upgrade to 2.2.14
Hickey, Tom wrote: I am trying to upgrade my Apache http server from 2.2.4 to 2.2.14 and all SOAP calls are returned with a 500 Internal Server Error message. I have loaded all modules I used in 2.2.4 and am using the same basic configuration in my httpd.conf. The server starts without any errors and if I uninstall 2.2.14 I can install 2.2.4 and start on the same box and it works so I can't see it being a file location or permissions issue. The only error I get in my logs is Premature end of script headers: SOAPISAP.dll Has anyone seen anything like this when handling a SOAP call? Do I need to load a new module or add a new configuration item in 2.2.14 to support SOAP? Thanks in advance. I may be mistaken, but I can't recall that any standard Apache module handles SOAP calls. Are you sure this SOAPISAP.dll is really a part of Apache httpd ? If not, you may want to look for the appropriate support forum for that extension. Maybe you need another version to support Apache 2.2.14 ? - 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] mod_filter with mod_include problem
I am trying to use mod_filter to setup server-side includes as well as compression. However, I'm observing rather odd behavior. Apache sends the Content-Encoding: gzip header, but sends the data uncompressed (causing FireFox to display Content Encoding Error). The compression works fine for pages that don't end in .shtml. Below are the relevant bits of my configuration files. I'm ussing Apache 2.2.9. Can anyone offer insights or suggestions? Any help would be greatly appreciated. AddHandler server-parsed .shtml FilterDeclare ssi FilterProvider ssi INCLUDES handler server-parsed FilterProtocol ssi INCLUDES change=yes FilterChain @ssi FilterDeclare deflate FilterProvider deflate DEFLATE resp=Content-Type /text.*|application.(x-)?javascript/ FilterProtocol deflate DEFLATE change=yes;bytesranges=no FilterChain +deflate -- Daniel Stutzbach, Ph.D. http://www.barsoom.org/ http://www.barsoom.org/feed http://agthorr.livejournal.com/ http://www.facebook.com/daniel.stutzbach http://www.linkedin.com/in/agthorr http://www.netflix.com/BeMyFriend/PpZ2BnXBYLDGNcE3EdzH http://twitter.com/DanielStutzbach
Re: [us...@httpd] mod_ext_filter cmd output is garbage
Could it be some output encoding issue (UTF vs ASCII)? Or perhaps compression issue? On Wed, Oct 21, 2009 at 1:19 PM, Marcos Mendez marcosrmen...@gmail.com wrote: I should probably also mention that being through mod_proxy. I've setup a transparent proxy and I'm trying to add some content on the fly. Just doesn't seem to work with my php script. --- example proxy conf --- ExtFilterDefine myfilter1 mode=output intype=text/html cmd=/usr/bin/php -f /etc/apache2/script1.php IfModule mod_proxy.c Proxy * SetOutputFilter myfilter1 /Proxy /IfModule Regards, Marcos On Wed, Oct 21, 2009 at 12:06 PM, Marcos Mendez marcosrmen...@gmail.com wrote: Heheheh... I doubt my script-writing abilities! Here's a simple php5 script to echo the output. ? php $stdin = file_get_contents('php://stdin'); print($stdin); ? I've tried the script with cat sometextfile | php -f test.php and it echoes the standard input. Regards, Marcos On Wed, Oct 21, 2009 at 11:15 AM, André Warnier a...@ice-sa.com wrote: Marcos Mendez wrote: Hi, I'm having problem running anything other than the sample sed command used with ext_filter in the documentation (eg cmd=/bin/sed s/verdana/aria/g). When I try to run a script (sh, bash, or php) I always get (binary) garbage in the output. Any ideas? My filters are defined as: ExtFilterDefine myfilter1 mode=output intype=text/html cmd=/usr/bin/php -f /etc/apache2/script1.php ExtFilterDefine myfilter2 mode=output intype=text/html cmd=/bin/sh -f /etc/apache2/script2.sh ExtFilterDefine myfilter3 mode=output intype=text/html cmd=/etc/apache2/script3.sh Not that we question your script-writing abilities, but it is a bit difficult to figure out what happens without actually seeing any of these scripts. Can you create a simple one, try it and show it here ? - 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 - 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_ext_filter cmd output is garbage
Now wait, you are talking about a forward proxy here ? You mean that the browsers of your network have this one set up as a http proxy, and it goes and gets the pages out there for them, and returns them ? If that's the case, then of course you could have character set issues, unless you parse all the documents on the way back, and figure out a) what kind of data this is (a jpeg image, a css stylesheet ?) b) if it is a text type, what character set and encoding it's in c) what kind of transfer encoding may have been used (compressed ?) etc.. I don't think that s/foo/bar/g will really do it. Marcos Mendez wrote: Could it be some output encoding issue (UTF vs ASCII)? Or perhaps compression issue? On Wed, Oct 21, 2009 at 1:19 PM, Marcos Mendez marcosrmen...@gmail.com wrote: I should probably also mention that being through mod_proxy. I've setup a transparent proxy and I'm trying to add some content on the fly. Just doesn't seem to work with my php script. --- example proxy conf --- ExtFilterDefine myfilter1 mode=output intype=text/html cmd=/usr/bin/php -f /etc/apache2/script1.php IfModule mod_proxy.c Proxy * SetOutputFilter myfilter1 /Proxy /IfModule Regards, Marcos On Wed, Oct 21, 2009 at 12:06 PM, Marcos Mendez marcosrmen...@gmail.com wrote: Heheheh... I doubt my script-writing abilities! Here's a simple php5 script to echo the output. ? php $stdin = file_get_contents('php://stdin'); print($stdin); ? I've tried the script with cat sometextfile | php -f test.php and it echoes the standard input. Regards, Marcos On Wed, Oct 21, 2009 at 11:15 AM, André Warnier a...@ice-sa.com wrote: Marcos Mendez wrote: Hi, I'm having problem running anything other than the sample sed command used with ext_filter in the documentation (eg cmd=/bin/sed s/verdana/aria/g). When I try to run a script (sh, bash, or php) I always get (binary) garbage in the output. Any ideas? My filters are defined as: ExtFilterDefine myfilter1 mode=output intype=text/html cmd=/usr/bin/php -f /etc/apache2/script1.php ExtFilterDefine myfilter2 mode=output intype=text/html cmd=/bin/sh -f /etc/apache2/script2.sh ExtFilterDefine myfilter3 mode=output intype=text/html cmd=/etc/apache2/script3.sh Not that we question your script-writing abilities, but it is a bit difficult to figure out what happens without actually seeing any of these scripts. Can you create a simple one, try it and show it here ? - 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 - 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 - 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_ext_filter cmd output is garbage
Yes absolutely. I've setup a forward proxy, where I have to open a port (8080) for people to use it. I've set the filter type to text/html. So I guess it's definately an encoding issue. Any way how to solve that? Strangely enough, the sed filter examples work no matter what. So I don't understand why this doesn't. I'm including the log output for the request... [Wed Oct 21 17:25:31 2009] [debug] mod_proxy_http.c(56): proxy: HTTP: canonicalising URL //skyblender.com/ [Wed Oct 21 17:25:31 2009] [debug] proxy_util.c(1498): [client 172.16.1.199] proxy: *: found forward proxy worker for http://skyblender.com/ [Wed Oct 21 17:25:31 2009] [debug] mod_proxy.c(993): Running scheme http handler (attempt 0) [Wed Oct 21 17:25:31 2009] [debug] mod_proxy_http.c(1931): proxy: HTTP: serving URL http://skyblender.com/ [Wed Oct 21 17:25:31 2009] [debug] proxy_util.c(1991): proxy: HTTP: has acquired connection for (*) [Wed Oct 21 17:25:31 2009] [debug] proxy_util.c(2047): proxy: connecting http://skyblender.com/ to skyblender.com:80 [Wed Oct 21 17:25:31 2009] [debug] proxy_util.c(2145): proxy: connected / to skyblender.com:80 [Wed Oct 21 17:25:31 2009] [debug] proxy_util.c(2300): proxy: HTTP: fam 2 socket created to connect to * [Wed Oct 21 17:25:31 2009] [debug] proxy_util.c(2406): proxy: HTTP: connection complete to 97.74.154.241:80 (skyblender.com) [Wed Oct 21 17:25:31 2009] [debug] mod_proxy_http.c(1714): proxy: start body send [Wed Oct 21 17:25:31 2009] [debug] mod_ext_filter.c(628): [client 172.16.1.199] filtering `http://skyblender.com/' of type `text/html' through `/etc/apache2/simple.php', cfg ExtFilterOptions DebugLevel=10 NoLogStderr !PreserveContentLength ExtFilterInType text/html ExtFilterOuttype (unchanged) [Wed Oct 21 17:25:31 2009] [debug] mod_ext_filter.c(820): [client 172.16.1.199] (11)Resource temporarily unavailable: apr_file_read(child output), len -1 [Wed Oct 21 17:25:31 2009] [debug] mod_ext_filter.c(820): [client 172.16.1.199] apr_file_read(child output), len 5 [Wed Oct 21 17:25:31 2009] [debug] mod_ext_filter.c(820): [client 172.16.1.199] apr_file_read(child output), len 526 [Wed Oct 21 17:25:31 2009] [debug] mod_ext_filter.c(820): [client 172.16.1.199] (70014)End of file found: apr_file_read(child output), len -1 [Wed Oct 21 17:25:31 2009] [debug] mod_deflate.c(619): [client 172.16.1.199] Zlib: Compressed 531 to 362 : URL http://skyblender.com/ [Wed Oct 21 17:25:31 2009] [debug] mod_proxy_http.c(1807): proxy: end body send [Wed Oct 21 17:25:31 2009] [debug] proxy_util.c(2009): proxy: HTTP: has released connection for (*) On Wed, Oct 21, 2009 at 5:33 PM, André Warnier a...@ice-sa.com wrote: Now wait, you are talking about a forward proxy here ? You mean that the browsers of your network have this one set up as a http proxy, and it goes and gets the pages out there for them, and returns them ? If that's the case, then of course you could have character set issues, unless you parse all the documents on the way back, and figure out a) what kind of data this is (a jpeg image, a css stylesheet ?) b) if it is a text type, what character set and encoding it's in c) what kind of transfer encoding may have been used (compressed ?) etc.. I don't think that s/foo/bar/g will really do it. Marcos Mendez wrote: Could it be some output encoding issue (UTF vs ASCII)? Or perhaps compression issue? On Wed, Oct 21, 2009 at 1:19 PM, Marcos Mendez marcosrmen...@gmail.com wrote: I should probably also mention that being through mod_proxy. I've setup a transparent proxy and I'm trying to add some content on the fly. Just doesn't seem to work with my php script. --- example proxy conf --- ExtFilterDefine myfilter1 mode=output intype=text/html cmd=/usr/bin/php -f /etc/apache2/script1.php IfModule mod_proxy.c Proxy * SetOutputFilter myfilter1 /Proxy /IfModule Regards, Marcos On Wed, Oct 21, 2009 at 12:06 PM, Marcos Mendez marcosrmen...@gmail.com wrote: Heheheh... I doubt my script-writing abilities! Here's a simple php5 script to echo the output. ? php $stdin = file_get_contents('php://stdin'); print($stdin); ? I've tried the script with cat sometextfile | php -f test.php and it echoes the standard input. Regards, Marcos On Wed, Oct 21, 2009 at 11:15 AM, André Warnier a...@ice-sa.com wrote: Marcos Mendez wrote: Hi, I'm having problem running anything other than the sample sed command used with ext_filter in the documentation (eg cmd=/bin/sed s/verdana/aria/g). When I try to run a script (sh, bash, or php) I always get (binary) garbage in the output. Any ideas? My filters are defined as: ExtFilterDefine myfilter1 mode=output intype=text/html cmd=/usr/bin/php -f /etc/apache2/script1.php ExtFilterDefine myfilter2 mode=output intype=text/html cmd=/bin/sh -f /etc/apache2/script2.sh ExtFilterDefine myfilter3 mode=output intype=text/html cmd=/etc/apache2/script3.sh Not that we question your script-writing abilities, but it is a bit difficult to
Re: [us...@httpd] mod_ext_filter cmd output is garbage
would mod_filter solve this? i'm going to try some changes and see if that works. On Wed, Oct 21, 2009 at 5:37 PM, Marcos Mendez marcosrmen...@gmail.com wrote: Yes absolutely. I've setup a forward proxy, where I have to open a port (8080) for people to use it. I've set the filter type to text/html. So I guess it's definately an encoding issue. Any way how to solve that? Strangely enough, the sed filter examples work no matter what. So I don't understand why this doesn't. I'm including the log output for the request... [Wed Oct 21 17:25:31 2009] [debug] mod_proxy_http.c(56): proxy: HTTP: canonicalising URL //skyblender.com/ [Wed Oct 21 17:25:31 2009] [debug] proxy_util.c(1498): [client 172.16.1.199] proxy: *: found forward proxy worker for http://skyblender.com/ [Wed Oct 21 17:25:31 2009] [debug] mod_proxy.c(993): Running scheme http handler (attempt 0) [Wed Oct 21 17:25:31 2009] [debug] mod_proxy_http.c(1931): proxy: HTTP: serving URL http://skyblender.com/ [Wed Oct 21 17:25:31 2009] [debug] proxy_util.c(1991): proxy: HTTP: has acquired connection for (*) [Wed Oct 21 17:25:31 2009] [debug] proxy_util.c(2047): proxy: connecting http://skyblender.com/ to skyblender.com:80 [Wed Oct 21 17:25:31 2009] [debug] proxy_util.c(2145): proxy: connected / to skyblender.com:80 [Wed Oct 21 17:25:31 2009] [debug] proxy_util.c(2300): proxy: HTTP: fam 2 socket created to connect to * [Wed Oct 21 17:25:31 2009] [debug] proxy_util.c(2406): proxy: HTTP: connection complete to 97.74.154.241:80 (skyblender.com) [Wed Oct 21 17:25:31 2009] [debug] mod_proxy_http.c(1714): proxy: start body send [Wed Oct 21 17:25:31 2009] [debug] mod_ext_filter.c(628): [client 172.16.1.199] filtering `http://skyblender.com/' of type `text/html' through `/etc/apache2/simple.php', cfg ExtFilterOptions DebugLevel=10 NoLogStderr !PreserveContentLength ExtFilterInType text/html ExtFilterOuttype (unchanged) [Wed Oct 21 17:25:31 2009] [debug] mod_ext_filter.c(820): [client 172.16.1.199] (11)Resource temporarily unavailable: apr_file_read(child output), len -1 [Wed Oct 21 17:25:31 2009] [debug] mod_ext_filter.c(820): [client 172.16.1.199] apr_file_read(child output), len 5 [Wed Oct 21 17:25:31 2009] [debug] mod_ext_filter.c(820): [client 172.16.1.199] apr_file_read(child output), len 526 [Wed Oct 21 17:25:31 2009] [debug] mod_ext_filter.c(820): [client 172.16.1.199] (70014)End of file found: apr_file_read(child output), len -1 [Wed Oct 21 17:25:31 2009] [debug] mod_deflate.c(619): [client 172.16.1.199] Zlib: Compressed 531 to 362 : URL http://skyblender.com/ [Wed Oct 21 17:25:31 2009] [debug] mod_proxy_http.c(1807): proxy: end body send [Wed Oct 21 17:25:31 2009] [debug] proxy_util.c(2009): proxy: HTTP: has released connection for (*) On Wed, Oct 21, 2009 at 5:33 PM, André Warnier a...@ice-sa.com wrote: Now wait, you are talking about a forward proxy here ? You mean that the browsers of your network have this one set up as a http proxy, and it goes and gets the pages out there for them, and returns them ? If that's the case, then of course you could have character set issues, unless you parse all the documents on the way back, and figure out a) what kind of data this is (a jpeg image, a css stylesheet ?) b) if it is a text type, what character set and encoding it's in c) what kind of transfer encoding may have been used (compressed ?) etc.. I don't think that s/foo/bar/g will really do it. Marcos Mendez wrote: Could it be some output encoding issue (UTF vs ASCII)? Or perhaps compression issue? On Wed, Oct 21, 2009 at 1:19 PM, Marcos Mendez marcosrmen...@gmail.com wrote: I should probably also mention that being through mod_proxy. I've setup a transparent proxy and I'm trying to add some content on the fly. Just doesn't seem to work with my php script. --- example proxy conf --- ExtFilterDefine myfilter1 mode=output intype=text/html cmd=/usr/bin/php -f /etc/apache2/script1.php IfModule mod_proxy.c Proxy * SetOutputFilter myfilter1 /Proxy /IfModule Regards, Marcos On Wed, Oct 21, 2009 at 12:06 PM, Marcos Mendez marcosrmen...@gmail.com wrote: Heheheh... I doubt my script-writing abilities! Here's a simple php5 script to echo the output. ? php $stdin = file_get_contents('php://stdin'); print($stdin); ? I've tried the script with cat sometextfile | php -f test.php and it echoes the standard input. Regards, Marcos On Wed, Oct 21, 2009 at 11:15 AM, André Warnier a...@ice-sa.com wrote: Marcos Mendez wrote: Hi, I'm having problem running anything other than the sample sed command used with ext_filter in the documentation (eg cmd=/bin/sed s/verdana/aria/g). When I try to run a script (sh, bash, or php) I always get (binary) garbage in the output. Any ideas? My filters are defined as: ExtFilterDefine myfilter1 mode=output intype=text/html cmd=/usr/bin/php -f /etc/apache2/script1.php ExtFilterDefine myfilter2 mode=output intype=text/html
[us...@httpd] Trying to detect client dropping connection before CGI process is finished, stuck...:(
Dear All, I seem to be completely stuck with trying to detect client dropping connection, no matter how hard I try. I start with a simple Perl script running as a standard CGI app: #!/usr/bin/perl use strict; Log($$: starting process); $SIG{PIPE} = sub { Log($$: PIPE!!); }; $SIG{TERM} = sub { Log($$: TERM!!); }; $SIG{HUP} = sub { Log($$: HUP); }; $SIG{INT} = sub { Log($$: INT); }; Log($$: Processing request); print \n\n; for(1 .. 10) { Log($$: Sleep $_ ); sleep(1); } print Content\n; Log($$: Done); I also have tried the following modification of the script for mod_perl: #!/usr/bin/perl use strict; use Apache2::RequestRec; use Apache2::Connection; Log($$: starting process); $SIG{PIPE} = sub { Log($$: PIPE!!); }; $SIG{TERM} = sub { Log($$: TERM!!); }; $SIG{HUP} = sub { Log($$: HUP); }; $SIG{INT} = sub { Log($$: INT); }; local our $Conn = Apache2::RequestRec-connection(); Log($$: Processing request); print \n\n; for(1 .. 10) { Log($$: Sleep $_, aborted:, $Conn-aborted()); sleep(1); } print Content\n; Log($$: Done); and another modification for mod_fcgid (same idea with trying to intercept signals and both with and w/o trying to use Apache2::Connection). Log() function just outputs messages to a log file, that i am tail -f 'ing. I make a request using curl, curl http://localhost/script.pl and also have tried LWP::UserAgent. The way I test it is run the request process (either curl or a simple .pl with a request made via LWP::UserAgent), and Control-C at some point (while watching 'Sleep XX' messages appear in the log file). In all three cases with both LWP and curl i see the same behavior - no indication of a client dropping the connection (even with aborted() method of mod_perl) whatsoever, no signals, no messages about client dropping connection appearing in error.log of the server (LogLevel is set to 'info'), etc. The CGI process in CGI case doesn't get terminated and / or killed; it continues to loop and sleep until 10 seconds pass. From what I have been able to find, I tried: * Looks like adding print STDOUT in the loop should cause PIPE signal ('broken pipe'), I tried adding 'print STDOUT ' right before sleep() call in the loop with no luck. * Trying to see if the same print before sleep() would return failure ('print STDOUT or Log(Print failed!)', w/o any luck * In mod_perl tests, trying to use Apache2::RequestRec-print() instead of print. * LogLevel info should be giving me messages about clients dropping connections in error.log. I am not seeing any. In addition, I clearly recall solving the same problem under mod_perl and Apache using $Conn-aborted() method, and it worked (but that was a different version of Apache 2 and mod_perl, unfortunately, I don’t have that env right now to compare…). I have tried this on 2 versions of Apache and mod_perl, * Ubuntu + apache 2.2.8 / mod_perl 2.0.3: r...@vmubuntu ~/api # apache2 -V Server version: Apache/2.2.8 (Ubuntu) Server built: Feb 2 2008 04:03:01 Server's Module Magic Number: 20051115:11 Server loaded: APR 1.2.11, APR-Util 1.2.12 Compiled using: APR 1.2.11, APR-Util 1.2.12 Architecture: 32-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with -D APACHE_MPM_DIR=server/mpm/prefork -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT= -D SUEXEC_BIN=/usr/lib/apache2/suexec -D DEFAULT_PIDLOG=/var/run/apache2.pid -D DEFAULT_SCOREBOARD=logs/apache_runtime_status -D DEFAULT_LOCKFILE=/var/run/apache2/accept.lock -D DEFAULT_ERRORLOG=logs/error_log -D AP_TYPES_CONFIG_FILE=/etc/apache2/mime.types -D SERVER_CONFIG_FILE=/etc/apache2/apache2.conf * Gentoo + apache 2.2.11 + mod_perl 2.0.4: newcore tmp # apache2 -V Server version: Apache/2.2.11 (Unix) Server built: Oct 21 2009 16:42:25 Server's Module Magic Number: 20051115:21 Server loaded: APR 1.2.8, APR-Util 1.2.8 Compiled using: APR 1.2.8, APR-Util 1.2.8 Architecture: 32-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with -D APACHE_MPM_DIR=server/mpm/prefork -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D
Re: [us...@httpd] mod_ext_filter cmd output is garbage
I'll continue to top-post.. I really don't know enough about how mod_proxy handles things in the forward direction, to be able to help more. I see a mod_deflate somewhere in your log, indicating that some compression is taking place, but I don't know if that's before or after your filter comes into play. Only one thing : the response from the remote server may be text/html (in the Content-type header), but it may also be compressed (as per the Transfer-encoding header). I don't know if mod_proxy, per se, would always decompress it before passing it to, or through, your filter. If not, then your filter may be seeing alternatively uncompressed and compressed html pages; and your example sed filter may just have been lucky, and happened to run only on uncompressed stuff. For the charset and encoding, you have to look at the possible charset attribute in the Content-type. There also, you may have been lucky : characters in the strict US-ASCII printable range have the same encoding in iso-8859-1 (the default in http) as in UTF-8 (a single byte per character, and the same value indidentally). But if you ever got html pages with these funny accented non-English characters, that would no longer be the case, and your s/foo/bar/ stuff may create a real mess. And we haven't even started talking about chunked encoding here... All in all, for this kind of usage, and supposing that all you are trying to do is to add some kind of footer or so to incoming html pages, even for that you would really need to a) parse the incoming html into some kind of memory structure b) insert your stuff where appropriate in the structure c) re-assemble the html before forwarding it to the client I am not sure that the investment to do that is really worth it for your expected benefit. By the way, have you looked at : http://httpd.apache.org/docs/2.2/mod/mod_substitute.html (but I'm not sure even that one takes charsets into account). and maybe also http://httpd.apache.org/docs/2.2/mod/mod_charset_lite.html I also remember vaguely that there was a module which really allowed to modify html content on the way out, but I don't find it in the list of standard Apache 2.2 modules. Marcos Mendez wrote: Yes absolutely. I've setup a forward proxy, where I have to open a port (8080) for people to use it. I've set the filter type to text/html. So I guess it's definately an encoding issue. Any way how to solve that? Strangely enough, the sed filter examples work no matter what. So I don't understand why this doesn't. I'm including the log output for the request... ... [Wed Oct 21 17:25:31 2009] [debug] mod_ext_filter.c(628): [client 172.16.1.199] filtering `http://skyblender.com/' of type `text/html' through `/etc/apache2/simple.php', cfg ExtFilterOptions DebugLevel=10 NoLogStderr !PreserveContentLength ExtFilterInType text/html ExtFilterOuttype (unchanged) ... [Wed Oct 21 17:25:31 2009] [debug] mod_deflate.c(619): [client 172.16.1.199] Zlib: Compressed 531 to 362 : URL http://skyblender.com/ [Wed Oct 21 17:25:31 2009] [debug] mod_proxy_http.c(1807): proxy: end body send [Wed Oct 21 17:25:31 2009] [debug] proxy_util.c(2009): proxy: HTTP: has released connection for (*) - 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_filter with mod_include problem
Daniel Stutzbach wrote: I am trying to use mod_filter to setup server-side includes as well as compression. Have you checked the exact output, and whether this could be in the family of https://issues.apache.org/bugzilla/show_bug.cgi?id=17629 https://issues.apache.org/bugzilla/show_bug.cgi?id=43939 -- 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] mod_filter with mod_include problem
On Wed, Oct 21, 2009 at 5:37 PM, Nick Kew n...@webthing.com wrote: Daniel Stutzbach wrote: I am trying to use mod_filter to setup server-side includes as well as compression. Have you checked the exact output, and whether this could be in the family of https://issues.apache.org/bugzilla/show_bug.cgi?id=17629 https://issues.apache.org/bugzilla/show_bug.cgi?id=43939 I checked the exact output using a packet sniffer. The content is the correct content, but uncompressed, even though apache sends the Content-Encoding: gzip header. Bug 17629 looks like it may well be related. Unfortunately, that bug has been open since 2003 (!) and none of the comments suggest a workaround as far as I can see. :-( -- Daniel Stutzbach, Ph.D. http://www.barsoom.org/ http://www.barsoom.org/feed http://agthorr.livejournal.com/ http://www.facebook.com/daniel.stutzbach http://www.linkedin.com/in/agthorr http://www.netflix.com/BeMyFriend/PpZ2BnXBYLDGNcE3EdzH http://twitter.com/DanielStutzbach
Re: [us...@httpd] mod_ext_filter cmd output is garbage
Thanks Andre. I got Substitute working in no time. :) On Wed, Oct 21, 2009 at 6:32 PM, André Warnier a...@ice-sa.com wrote: I'll continue to top-post.. I really don't know enough about how mod_proxy handles things in the forward direction, to be able to help more. I see a mod_deflate somewhere in your log, indicating that some compression is taking place, but I don't know if that's before or after your filter comes into play. Only one thing : the response from the remote server may be text/html (in the Content-type header), but it may also be compressed (as per the Transfer-encoding header). I don't know if mod_proxy, per se, would always decompress it before passing it to, or through, your filter. If not, then your filter may be seeing alternatively uncompressed and compressed html pages; and your example sed filter may just have been lucky, and happened to run only on uncompressed stuff. For the charset and encoding, you have to look at the possible charset attribute in the Content-type. There also, you may have been lucky : characters in the strict US-ASCII printable range have the same encoding in iso-8859-1 (the default in http) as in UTF-8 (a single byte per character, and the same value indidentally). But if you ever got html pages with these funny accented non-English characters, that would no longer be the case, and your s/foo/bar/ stuff may create a real mess. And we haven't even started talking about chunked encoding here... All in all, for this kind of usage, and supposing that all you are trying to do is to add some kind of footer or so to incoming html pages, even for that you would really need to a) parse the incoming html into some kind of memory structure b) insert your stuff where appropriate in the structure c) re-assemble the html before forwarding it to the client I am not sure that the investment to do that is really worth it for your expected benefit. By the way, have you looked at : http://httpd.apache.org/docs/2.2/mod/mod_substitute.html (but I'm not sure even that one takes charsets into account). and maybe also http://httpd.apache.org/docs/2.2/mod/mod_charset_lite.html I also remember vaguely that there was a module which really allowed to modify html content on the way out, but I don't find it in the list of standard Apache 2.2 modules. Marcos Mendez wrote: Yes absolutely. I've setup a forward proxy, where I have to open a port (8080) for people to use it. I've set the filter type to text/html. So I guess it's definately an encoding issue. Any way how to solve that? Strangely enough, the sed filter examples work no matter what. So I don't understand why this doesn't. I'm including the log output for the request... ... [Wed Oct 21 17:25:31 2009] [debug] mod_ext_filter.c(628): [client 172.16.1.199] filtering `http://skyblender.com/' of type `text/html' through `/etc/apache2/simple.php', cfg ExtFilterOptions DebugLevel=10 NoLogStderr !PreserveContentLength ExtFilterInType text/html ExtFilterOuttype (unchanged) ... [Wed Oct 21 17:25:31 2009] [debug] mod_deflate.c(619): [client 172.16.1.199] Zlib: Compressed 531 to 362 : URL http://skyblender.com/ [Wed Oct 21 17:25:31 2009] [debug] mod_proxy_http.c(1807): proxy: end body send [Wed Oct 21 17:25:31 2009] [debug] proxy_util.c(2009): proxy: HTTP: has released connection for (*) - 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 - 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] Apache modules question
Hello everyone , I have a project where i want to add a new phase between the content generation and the logging phase of a request. In other words i want after the response is generated and ready to be sent to the client to manipulate the html produced code (do my stuff) and then send it to the browser. I have already read stuff on how to write apache2 modules but i understood that modules can only substitute other modules that are enabled in the standard faces of a request processing and not involve somehow a new phase. My friend who works in the same project has done this with filters (i think) but we are looking for a faster way (maybe a new module enabled after the content generation). Please tell me how to do that. Sorry for bad english. Regards, Tony - 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] server side scripts + local display
Thanks Eric. U provided a good clue. I got it running and heres what I did incase any one needs to know. My Xen server runs Apache and I have VNC server enabled on it as a no priv user. This user has, in there ,bashrc; xhost + In my Python script running server side via http://xen-dom-U-apache- server/python-script.py, I have print os.putenv('DISPLAY',':3') print.os.system('some program that needs display to run') Its 3 because I have VNC running on port 3 to avoid any Xen console conflicts with dom0. This allowed the program needing a display to work on the Apache server. On Oct 20, 2009, at 6:23 PM, Eric Covener wrote: On Tue, Oct 20, 2009 at 7:31 PM, aurfal...@gmail.com wrote: So I run a command in my script which requires an xterm, say xeyes for example. X11 applications look at the DISPLAY environment variable to figure out where to well, display.. Your Xserver has access control that is automagically sorted out for you by your desktop session or ssh client. It will be a little complicated having your Apache user be able to securely access your X server. DISPLAY environment variable, xauth, and x11 forwarding might be some good background. -- 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 - 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] please need help starting apache2 ASAP
Hi Guys, I am a newbie here, I have the following issue, when I try to start apache, o get the following message this server contains several virtual host, here is the error: /usr/sbin/apache2 -k start (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Thank you for any help!
Re: [us...@httpd] Apache modules question
On Wed, Oct 21, 2009 at 8:54 PM, antoine antonis...@gmail.com wrote: My friend who works in the same project has done this with filters (i think) but we are looking for a faster way (maybe a new module enabled after the content generation). I think anything but a filter is a complete dead end. -- 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] Apache modules question
antoine wrote: Hello everyone , I have a project where i want to add a new phase between the content generation and the logging phase of a request. In other words i want after the response is generated and ready to be sent to the client to manipulate the html produced code (do my stuff) and then send it to the browser. That's called an output filter. See http://www.apachetutor.org/dev/request for the brief overview, then get the book for details of how to implement it (and of why it would be hugely inefficient to make it a new phase). -- 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] please need help starting apache2 ASAP
Hi, I would simplify things and comment out all the virtual servers to see what haps. Then uncomment 1 by 1, restarting the Apache server between each uncommenting. Although at 1st glance, sound like you have some kind of issue with the log dir. On Oct 21, 2009, at 6:35 PM, khalid touati wrote: Hi Guys, I am a newbie here, I have the following issue, when I try to start apache, o get the following message this server contains several virtual host, here is the error: /usr/sbin/apache2 -k start (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Thank you for any help!
Re: [us...@httpd] please need help starting apache2 ASAP
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 What happened when you googled that error message? (This is Lesson 1 in how to solve problems). -- 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] please need help starting apache2 ASAP
On Wed, Oct 21, 2009 at 9:47 PM, aurfal...@gmail.com wrote: Hi, I would simplify things and comment out all the virtual servers to see what haps. Then uncomment 1 by 1, restarting the Apache server between each uncommenting. Although at 1st glance, sound like you have some kind of issue with the log dir. All of this is misleading. -- 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] please need help starting apache2 ASAP
Funny thing, I noticed google doesn't return as much cool stuff like it used to a few years back. While I don't have any #s or results proven via the scientific method, as of late I feel they are censoring/controlling the results. On Oct 21, 2009, at 6:50 PM, Nick Kew wrote: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 What happened when you googled that error message? (This is Lesson 1 in how to solve problems). -- 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 - 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] please need help starting apache2 ASAP
Hello Khalid, Please read : http://wiki.apache.org/httpd/CouldNotBindToAddress Frank. aurfal...@gmail.com wrote: Hi, I would simplify things and comment out all the virtual servers to see what haps. Then uncomment 1 by 1, restarting the Apache server between each uncommenting. Although at 1st glance, sound like you have some kind of issue with the log dir. On Oct 21, 2009, at 6:35 PM, khalid touati wrote: Hi Guys, I am a newbie here, I have the following issue, when I try to start apache, o get the following message this server contains several virtual host, here is the error: /usr/sbin/apache2 -k start (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Thank you for any help! - 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] please need help starting apache2 ASAP
Well, if you have a better idea, please advice our friend. On Oct 21, 2009, at 6:51 PM, Eric Covener wrote: On Wed, Oct 21, 2009 at 9:47 PM, aurfal...@gmail.com wrote: Hi, I would simplify things and comment out all the virtual servers to see what haps. Then uncomment 1 by 1, restarting the Apache server between each uncommenting. Although at 1st glance, sound like you have some kind of issue with the log dir. All of this is misleading. -- 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 - 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] please need help starting apache2 ASAP
See my previous response: http://wiki.apache.org/httpd/CouldNotBindToAddress Frank. On Wed, Oct 21, 2009 at 9:56 PM, aurfal...@gmail.com wrote: Well, if you have a better idea, please advice our friend. On Oct 21, 2009, at 6:51 PM, Eric Covener wrote: On Wed, Oct 21, 2009 at 9:47 PM, aurfal...@gmail.com wrote: Hi, I would simplify things and comment out all the virtual servers to see what haps. Then uncomment 1 by 1, restarting the Apache server between each uncommenting. Although at 1st glance, sound like you have some kind of issue with the log dir. All of this is misleading. -- 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 - 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 - 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] please need help starting apache2 ASAP
Thnks, I did comment out include that point to VH but nothing happend, for logs we are using symb link to point to dir! Sent from my Verizon Wireless BlackBerry -Original Message- From: aurfal...@gmail.com Date: Wed, 21 Oct 2009 18:47:57 To: users@httpd.apache.org Subject: Re: [us...@httpd] please need help starting apache2 ASAP Hi, I would simplify things and comment out all the virtual servers to see what haps. Then uncomment 1 by 1, restarting the Apache server between each uncommenting. Although at 1st glance, sound like you have some kind of issue with the log dir. On Oct 21, 2009, at 6:35 PM, khalid touati wrote: Hi Guys, I am a newbie here, I have the following issue, when I try to start apache, o get the following message this server contains several virtual host, here is the error: /usr/sbin/apache2 -k start (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Thank you for any help! __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: [us...@httpd] please need help starting apache2 ASAP
Francois Gingras wrote: See my previous response: http://wiki.apache.org/httpd/CouldNotBindToAddress Frank. On Wed, Oct 21, 2009 at 9:56 PM, aurfal...@gmail.com wrote: Well, if you have a better idea, please advice our friend. On Oct 21, 2009, at 6:51 PM, Eric Covener wrote: On Wed, Oct 21, 2009 at 9:47 PM, aurfal...@gmail.com wrote: Hi, I would simplify things and comment out all the virtual servers to see what haps. Then uncomment 1 by 1, restarting the Apache server between each uncommenting. Although at 1st glance, sound like you have some kind of issue with the log dir. All of this is misleading. -- 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 - 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 - 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 __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ thank you very much that was extremely helpful, however i still can't see the child process and website still down, i'm trying to uncommunt every VHost and restart apache using /usr/sbin/apche2 - k restart? any better idea for the second part plz!
Re: [us...@httpd] please need help starting apache2 ASAP
khalid touati wrote: Francois Gingras wrote: See my previous response: http://wiki.apache.org/httpd/CouldNotBindToAddress Frank. On Wed, Oct 21, 2009 at 9:56 PM, aurfal...@gmail.com wrote: Well, if you have a better idea, please advice our friend. On Oct 21, 2009, at 6:51 PM, Eric Covener wrote: On Wed, Oct 21, 2009 at 9:47 PM, aurfal...@gmail.com wrote: Hi, I would simplify things and comment out all the virtual servers to see what haps. Then uncomment 1 by 1, restarting the Apache server between each uncommenting. Although at 1st glance, sound like you have some kind of issue with the log dir. All of this is misleading. -- 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 - 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 - 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 __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ thank you very much that was extremely helpful, however i still can't see the child process and website still down, i'm trying to uncommunt every VHost and restart apache using /usr/sbin/apche2 - k restart? any better idea for the second part plz! __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Hi i've read it carrefully but i can't find the answer to my case! - 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] AllowOverride
Hi, Currently if i do not allow a directive in AllowOverride then apache throws 500 internal server error. Which i am not comfortable with as, If you a r telling apache to owner only certain directives in htaccess then putting a not allowed directive actually brings website down.( which is worse then the effect of directive that is ignored. Is there any way that i can change this behaviour so that apache should just Ignore the directive which is not allowed in htaccess file ? Pls suggest Thanks Singh
Re: [us...@httpd] please need help starting apache2 ASAP
Maybe you need to use sudo to start in order to bind to that port? -- Scott * If you contact me off list replace talklists@ with scott@ * On Oct 21, 2009, at 10:38 PM, khalid touati wrote: Hi i've read it carrefully but i can't find the answer to my case! - 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] please need help starting apache2 ASAP
Scott Haneda wrote: Maybe you need to use sudo to start in order to bind to that port? actually what is happening is when i kill all the process, and i start apche i cant see this process using ps aux | grep httpd but i can see it using netsat -plant, and this seems to be not the process father, cause i still can't launch the website!!! - 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