Re: [us...@httpd] 500 internal server error running php application
-Original Message- From: J Wilson Sent: 03 September, 2010 3:50 To: users@httpd.apache.org Subject: [us...@httpd] 500 internal server error running php application Hi there, I am installing a PHP application, a shopping cart php based, zen-cart on a Centos 5.3 box, running php 5.1.6 and apache 2.2.3. Have done this many times before no problem, except now I recently had a sys admin set up my new Centos 5 server and the way he set it up, I can't remember if he made some settings in Apache httpd conf.d or php.ini config - when I run the install script on Zen Cart via browser I get an internal server error. I thought he told me at the time he either set up my individual config files for each domain in httpd or php.ini such that all the shopping cart - php scripts - files had to be owned by Apache which I did do, I ran a chown -R apache.apache on cart files they are now owned by apache, then I ran the install script for the new store via browser and I got the internal server error, even though I can view my index.html page no problem whether or not it is owned by Apache. I checked php.ini switches, could not find anything relating to the the domain in question also checked httpd conf.d files for the domain in question and added some Apache directives which I thought might do the trick, namely this between virtual hosts tags: SSLOptions +StdEnvVars no luck So I think this is related to either Apache or php settings for running php scripts could be just a switch in php config riles or httpd. Not sure if it's an apache or a php switch or directive. Can anyone point me in the right direction or give me a hint as to how to troubleshoot? Thanks - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org A 500 Internal Server Error is caused by a script timing out. Do other PHP Scripts run, or do they produce a 500 Internal Server error. Thanks, Daniel - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] 500 internal server error running php application
Hi there, I am installing a PHP application, a shopping cart php based, zen-cart on a Centos 5.3 box, running php 5.1.6 and apache 2.2.3. Have done this many times before no problem, except now I recently had a sys admin set up my new Centos 5 server and the way he set it up, I can't remember if he made some settings in Apache httpd conf.d or php.ini config - when I run the install script on Zen Cart via browser I get an internal server error. I thought he told me at the time he either set up my individual config files for each domain in httpd or php.ini such that all the shopping cart - php scripts - files had to be owned by Apache which I did do, I ran a chown -R apache.apache on cart files they are now owned by apache, then I ran the install script for the new store via browser and I got the internal server error, even though I can view my index.html page no problem whether or not it is owned by Apache. I checked php.ini switches, could not find anything relating to the the domain in question also checked httpd conf.d files for the domain in question and added some Apache directives which I thought might do the trick, namely this between virtual hosts tags: SSLOptions +StdEnvVars no luck So I think this is related to either Apache or php settings for running php scripts could be just a switch in php config riles or httpd. Not sure if it's an apache or a php switch or directive. Can anyone point me in the right direction or give me a hint as to how to troubleshoot? Thanks - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] What IP address is this log entry coming from? (Is "::" a valid IP address?)
Jeff Trawick wrote: On Thu, Sep 2, 2010 at 5:40 PM, J. Greenlees wrote: Jeff Trawick wrote: ~snip~ %a is supposed to be an IP address, so what IP address is "::"? I'm only somewhat familiar with IPv6 but I've never seen "::" before. http://en.wikipedia.org/wiki/IPv6_address#Notation One or any number of consecutive groups of zero value may be replaced with two colons. [ ... ] The localhost (loopback) address, 0:0:0:0:0:0:0:1, and the IPv6 unspecified address, 0:0:0:0:0:0:0:0, are reduced to ::1 and ::, respectively. and it is bogus to have the unspecified address as the client IP address and if you check MS' RPC mechanism it uses 0.0.0.0 for the ip address to glom onto ANY available ip address. That suggests that the client giving the :: address is most likely a bot of some sort. it could be a legitimate bot for an rpc mechanism, or it could be [ seems more likely ] to be one meant to find an exploitable weakness. or, the client could be using an anonymizer service before getting to the OPs site. many reasons that it could be the ip unspecified address, only a few of which are cause for concern to the server admin. That is the source IP address, which is required for routing replies (including those during the "connect" flow) back to the client, so I don't see how this can be 0 simply because of something the client is doing (other than triggering some sort of bug on the server side, of course). scanning for an open proxy, the :: would grab the ip address and the proxy would then be in it's use to route content that may not be legitimately sent to the destination. or content that it is criminal to even possess. [ child porn jumps to mind for an example. ] I suspect that the client is a bot doing a scan for an open proxy, one handing the :: out for that purpose. or, since it causes the 100% cpu load, it's the beginnings of a new ddos attack mechanism. we all may need to explicitly deny unspecified ip addresses from server access right quick. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] What IP address is this log entry coming from? (Is "::" a valid IP address?)
On Thu, Sep 2, 2010 at 5:40 PM, J. Greenlees wrote: > Jeff Trawick wrote: > ~snip~ > > %a is supposed to be an IP address, so what IP address is "::"? I'm only somewhat familiar with IPv6 but I've never seen "::" before. >>> http://en.wikipedia.org/wiki/IPv6_address#Notation >>> >>> One or any number of consecutive groups of zero value may be replaced >>> with two colons. [ ... ] >>> >>> The localhost (loopback) address, 0:0:0:0:0:0:0:1, and the IPv6 >>> unspecified address, 0:0:0:0:0:0:0:0, are reduced to ::1 and ::, >>> respectively. >>> >>> >> and it is bogus to have the unspecified address as the client IP address >> > > and if you check MS' RPC mechanism it uses 0.0.0.0 for the ip address to > glom onto ANY available ip address. That suggests that the client giving the > :: address is most likely a bot of some sort. > it could be a legitimate bot for an rpc mechanism, or it could be [ seems > more likely ] to be one meant to find an exploitable weakness. > > or, the client could be using an anonymizer service before getting to the > OPs site. > > many reasons that it could be the ip unspecified address, only a few of > which are cause for concern to the server admin. That is the source IP address, which is required for routing replies (including those during the "connect" flow) back to the client, so I don't see how this can be 0 simply because of something the client is doing (other than triggering some sort of bug on the server side, of course).
[us...@httpd] problem https with class 3 cert CACert
hi fols hi all the people hi openssl users hi apache httpd users t explain my problem i use CentOS 5.5 use httpd.i386 2.2.3-43.el5.centos.3 rpm's centos use mod_ssl.i386 1:2.2.3-43.el5.centos.3 rpms's centos I sometimes against this kind of problem with certificates of type class 3, it was the color in the address bar with the firefox the color in the address bar disappear sometimes and a reload of web page was view again The padlock disappears for the same occasion ... many return and welcome some ideas are welcome - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] Proxy streaming
Hi all, I'm wondering if someone could help here. Basically what I want to do is provide a proxy for a video stream so that only 1 request goes to the destination server, but will server many people using some sort of caching. My virtual host entry looks something like this: ServerName myserver.name CacheEnable disk /vid SetEnv proxy-sendchunked 1 Options FollowSymLinks Order allow,deny Allow from all ProxyPass /vid/ http://www.destination.server/vid/ My mem_cache settings are: MCacheSize 2500 MCacheMaxObjectCount 5 MCacheMinObjectSize 1 MCacheMaxObjectSize 3000 MCacheMaxStreamingBuffer 30 However, this results in each request producing an additional request to the destination server. What do I need to do? Thanks -- Thom Brown Twitter: @darkixion IRC (freenode): dark_ixion Registered Linux user: #516935 - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] What IP address is this log entry coming from? (Is "::" a valid IP address?)
Jeff Trawick wrote: ~snip~ %a is supposed to be an IP address, so what IP address is "::"? I'm only somewhat familiar with IPv6 but I've never seen "::" before. http://en.wikipedia.org/wiki/IPv6_address#Notation One or any number of consecutive groups of zero value may be replaced with two colons. [ ... ] The localhost (loopback) address, 0:0:0:0:0:0:0:1, and the IPv6 unspecified address, 0:0:0:0:0:0:0:0, are reduced to ::1 and ::, respectively. and it is bogus to have the unspecified address as the client IP address and if you check MS' RPC mechanism it uses 0.0.0.0 for the ip address to glom onto ANY available ip address. That suggests that the client giving the :: address is most likely a bot of some sort. it could be a legitimate bot for an rpc mechanism, or it could be [ seems more likely ] to be one meant to find an exploitable weakness. or, the client could be using an anonymizer service before getting to the OPs site. many reasons that it could be the ip unspecified address, only a few of which are cause for concern to the server admin. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] What IP address is this log entry coming from? (Is "::" a valid IP address?)
We're trying a few of your suggestions. Kind of hard to test it. Thanks for the quick responses. From: Jeff Trawick To: users@httpd.apache.org Sent: Thu, September 2, 2010 12:34:43 PM Subject: Re: [us...@httpd] What IP address is this log entry coming from? (Is "::" a valid IP address?) On Thu, Sep 2, 2010 at 3:03 PM, Apache Issues wrote: That won't work. I can't even get results from 'ps aux' to get a pid, SSH is super laggy (I can type maybe one character every 4 or 5 seconds - if I'm that lucky), and most commands never complete. > >The hardware has been tested and is fine. The problem occurs randomly - we've >gone a week without incident before but we've also had days where this problem >crops up 4-6 times throughout the day. The "::" log entries are the first >real >clue to the cause. And the only "solution" we've come up with is to reboot >the >box. > wild ideas any monitoring scripts which can take action at the first sign of the problem might be more successful than interactive attempts at capturing ps, running gcore against high CPU process, whatever change your "Listen portnumber" directives to "Listen 0.0.0.0:portnumber" to avoid httpd seeing an IPv6 connection (especially one with no source address or which it somehow mangles to look like that) CPU rlimits on httpd perhaps? (I don't think I've ever tried that) Can you nice the httpd down? (haven't tried that) make sure MaxClients isn't way over the capacity of your machine
Re: [us...@httpd] What IP address is this log entry coming from? (Is "::" a valid IP address?)
On Thu, Sep 2, 2010 at 3:03 PM, Apache Issues wrote: > That won't work. I can't even get results from 'ps aux' to get a pid, SSH > is super laggy (I can type maybe one character every 4 or 5 seconds - if I'm > that lucky), and most commands never complete. > > The hardware has been tested and is fine. The problem occurs randomly - > we've gone a week without incident before but we've also had days where this > problem crops up 4-6 times throughout the day. The "::" log entries are the > first real clue to the cause. And the only "solution" we've come up with is > to reboot the box. > wild ideas any monitoring scripts which can take action at the first sign of the problem might be more successful than interactive attempts at capturing ps, running gcore against high CPU process, whatever change your "Listen portnumber" directives to "Listen 0.0.0.0:portnumber" to avoid httpd seeing an IPv6 connection (especially one with no source address or which it somehow mangles to look like that) CPU rlimits on httpd perhaps? (I don't think I've ever tried that) Can you nice the httpd down? (haven't tried that) make sure MaxClients isn't way over the capacity of your machine
Re: [us...@httpd] What IP address is this log entry coming from? (Is "::" a valid IP address?)
That won't work. I can't even get results from 'ps aux' to get a pid, SSH is super laggy (I can type maybe one character every 4 or 5 seconds - if I'm that lucky), and most commands never complete. The hardware has been tested and is fine. The problem occurs randomly - we've gone a week without incident before but we've also had days where this problem crops up 4-6 times throughout the day. The "::" log entries are the first real clue to the cause. And the only "solution" we've come up with is to reboot the box. From: Jeff Trawick To: users@httpd.apache.org Sent: Thu, September 2, 2010 11:32:10 AM Subject: Re: [us...@httpd] What IP address is this log entry coming from? (Is "::" a valid IP address?) On Thu, Sep 2, 2010 at 2:24 PM, Apache Issues wrote: Our server just went nuts again. And again "::" shows up in the logs right around the moment it started chugging 100% CPU. Help! > attach to the high CPU httpd process with a debugger and get backtraces see http://httpd.apache.org/dev/debugging.html
Re: [us...@httpd] What IP address is this log entry coming from? (Is "::" a valid IP address?)
On Thu, Sep 2, 2010 at 2:24 PM, Apache Issues wrote: > Our server just went nuts again. And again "::" shows up in the logs right > around the moment it started chugging 100% CPU. Help! > attach to the high CPU httpd process with a debugger and get backtraces see http://httpd.apache.org/dev/debugging.html
Re: [us...@httpd] What IP address is this log entry coming from? (Is "::" a valid IP address?)
On Wed, Sep 1, 2010 at 11:12 AM, Tom Evans wrote: > On Tue, Aug 31, 2010 at 12:00 AM, Apache Issues > wrote: > > I'm using: > > > > CustomLog "/var/log/apache2/access_log" "%a %l %u %t \"%r\" %>s %b > > \"%{Referer}i\"" > > > > And I occasionally see this right around the time the CPU starts running > at > > 100%: > > > > :: - - [27/Aug/2010:12:28:01 -0700] "GET /favicon.ico HTTP/1.1" 200 - "-" > > > > %a is supposed to be an IP address, so what IP address is "::"? I'm only > > somewhat familiar with IPv6 but I've never seen "::" before. > > http://en.wikipedia.org/wiki/IPv6_address#Notation > > One or any number of consecutive groups of zero value may be replaced > with two colons. [ ... ] > > The localhost (loopback) address, 0:0:0:0:0:0:0:1, and the IPv6 > unspecified address, 0:0:0:0:0:0:0:0, are reduced to ::1 and ::, > respectively. > and it is bogus to have the unspecified address as the client IP address
Re: [us...@httpd] What IP address is this log entry coming from? (Is "::" a valid IP address?)
Our server just went nuts again. And again "::" shows up in the logs right around the moment it started chugging 100% CPU. Help! From: Apache Issues To: users@httpd.apache.org Sent: Wed, September 1, 2010 11:36:02 AM Subject: Re: [us...@httpd] What IP address is this log entry coming from? (Is "::" a valid IP address?) Okay... That makes it rather difficult to track down a solution. Any theory as to why this occurs/how this can occur would be quite helpful. From: Tom Evans To: users@httpd.apache.org Sent: Wed, September 1, 2010 8:12:23 AM Subject: Re: [us...@httpd] What IP address is this log entry coming from? (Is "::" a valid IP address?) On Tue, Aug 31, 2010 at 12:00 AM, Apache Issues wrote: > I'm using: > > CustomLog "/var/log/apache2/access_log" "%a %l %u %t \"%r\" %>s %b > \"%{Referer}i\"" > > And I occasionally see this right around the time the CPU starts running at > 100%: > > :: - - [27/Aug/2010:12:28:01 -0700] "GET /favicon.ico HTTP/1.1" 200 - "-" > > %a is supposed to be an IP address, so what IP address is "::"? I'm only > somewhat familiar with IPv6 but I've never seen "::" before. http://en.wikipedia.org/wiki/IPv6_address#Notation One or any number of consecutive groups of zero value may be replaced with two colons. [ ... ] The localhost (loopback) address, 0:0:0:0:0:0:0:1, and the IPv6 unspecified address, 0:0:0:0:0:0:0:0, are reduced to ::1 and ::, respectively. Cheers Tom
Re: [us...@httpd] Intermittent crashing web server service
> C:\oracle\ora81\Apache\Apache\Apache.exe -v > Server version: Apache/1.3.12 (Win32) > Server built: Nov 8 2000 20:08:38 > > Service: OracleOraHome81HTTPServer Oracle uses Apache as a base, but does its own things with the server. The only people who can help you are Oracle tech, because the Apache people don't know what Oracle changed in their software. Their answer will probably be 'Oracle 8 wasn't meant to run on Windows 2008. Upgrade to a recent version'. Joost - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] Apache segmentation fault
Hi all, I've built Apache/2.2.14 (Unix) in an embedded environment (openembedded) including SSL and PHP5 modules. SSL works fine, but PHP5 module after being loaded won't work. With the mod_php module loaded it is not possible to get any page from server, also even if the connection is fine (the browser doesn't show an error message, but an empty page). On logs I see an error message each time I try to load the page from browser: [Thu Sep 02 18:23:54 2010] [notice] child pid 2919 exit signal Segmentation fault (11) [Thu Sep 02 18:24:01 2010] [notice] child pid 2917 exit signal Segmentation fault (11) The following is the result of launching httpd with strace (only at the moment of SIGSEGV, since the caught of the request from browser): [pid 2976] wait4(-1, 0xbec3da4c, WNOHANG|WSTOPPED, NULL) = 0 [pid 2976] select(0, NULL, NULL, NULL, {1, 0} [pid 2978] <... poll resumed> [{fd=4, events=POLLIN}, {fd=3, events=POLLIN, revents=POLLIN}], 2, 1) = 1 [pid 2978] SYS_285(0x3, 0xbec3d940, 0xbec3d92c, 0xb1860, 0xbec3da34) = 8 [pid 2978] fcntl64(8, F_GETFL) = 0x2 (flags O_RDWR) [pid 2978] fcntl64(8, F_SETFL, O_RDWR) = 0 [pid 2978] fcntl64(8, F_GETFD) = 0 [pid 2978] fcntl64(8, F_SETFD, FD_CLOEXEC) = 0 [pid 2978] SYS_298(0xf0004, 0x402ff740, 0x1, 0x402ff198, 0x130c68) = 0 [pid 2978] SYS_286(0x8, 0x1f2238, 0x1f2224, 0x1, 0x1f21d8) = 0 [pid 2978] fcntl64(8, F_GETFL) = 0x2 (flags O_RDWR) [pid 2978] fcntl64(8, F_SETFL, O_RDWR|O_NONBLOCK) = 0 [pid 2978] brk(0x21d000) = 0x21d000 [pid 2978] read(8, "GET /index.html HTTP/1.1\r\nHost: "..., 8000) = 387 [pid 2978] gettimeofday({1283449429, 539}, NULL) = 0 [pid 2978] stat64("/usr/share/apache2/htdocs/index.html", {st_mode=S_IFREG|0644, st_size=44, ...}) = 0 [pid 2978] --- SIGSEGV (Segmentation fault) @ 0 (0) --- [pid 2978] chdir("/usr") = 0 [pid 2978] rt_sigaction(SIGSEGV, {SIG_DFL}, {SIG_DFL}, 8) = 0 [pid 2978] kill(2978, SIGSEGV) = 0 [pid 2978] sigreturn() = ? (mask now [QUIT ILL TRAP ABRT PIPE TERM STKFLT CHLD TSTP URG SYS]) [pid 2978] --- SIGSEGV (Segmentation fault) @ 0 (0) --- Process 2978 detached [pid 2977] <... SYS_298 resumed> ) = 0 [pid 2977] poll( [pid 2976] <... select resumed> ) = ? ERESTARTNOHAND (To be restarted) [pid 2976] --- SIGCHLD (Child exited) @ 0 (0) --- [pid 2976] select(0, NULL, NULL, NULL, {0, 498333}) = 0 (Timeout) [pid 2976] clone(Process 2983 attached child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x400206c8) = 2983 [pid 2976] wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}], WNOHANG|WSTOPPED, NULL) = 2978 [pid 2976] gettimeofday({1283449429, 579544}, NULL) = 0 [pid 2976] write(2, "[Thu Sep 02 18:43:49 2010] [noti"..., 87 [pid 2983] rt_sigaction(SIGHUP, {0x7e5b4, [], SA_INTERRUPT|0x400}, {0x7d7c4, [HUP USR1], 0x400 /* SA_??? */}, 8) = 0 [pid 2983] rt_sigaction(SIGTERM, {0x7e5b4, [], SA_INTERRUPT|0x400}, {0x7d794, [], 0x400 /* SA_??? */}, 8) = 0 [pid 2983] rt_sigaction(SIGUSR1, {0x7de20, [], SA_INTERRUPT|0x400}, {0x7d7c4, [HUP USR1], 0x400 /* SA_??? */}, 8) = 0 [pid 2983] geteuid32() = 0 [pid 2983] setgid32(1) = 0 [pid 2983] open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 8 [pid 2983] read(8, "65536\n", 31) = 6 [pid 2976] <... write resumed> ) = 87 [pid 2976] wait4(-1, 0xbec3da4c, WNOHANG|WSTOPPED, NULL) = 0 [pid 2976] select(0, NULL, NULL, NULL, {1, 0} [pid 2983] close(8)= 0 [pid 2983] open("/etc/group", O_RDONLY|0x8) = 8 [pid 2983] _llseek(8, 0, [0], SEEK_CUR) = 0 [pid 2983] fstat64(8, {st_mode=S_IFREG|0644, st_size=548, ...}) = 0 [pid 2983] mmap2(NULL, 548, PROT_READ, MAP_SHARED, 8, 0) = 0x40022000 [pid 2983] _llseek(8, 548, [548], SEEK_SET) = 0 [pid 2983] fstat64(8, {st_mode=S_IFREG|0644, st_size=548, ...}) = 0 [pid 2983] munmap(0x40022000, 548) = 0 [pid 2983] close(8)= 0 [pid 2983] setgroups32(1, [1]) = 0 [pid 2983] geteuid32() = 0 [pid 2983] setuid32(1) = 0 [pid 2983] gettimeofday({1283449429, 629288}, NULL) = 0 [pid 2983] SYS_298(0xf0004, 0x402ff734, 0x1, 0x402ff198, 0x130c68 [pid 2976] <... select resumed> ) = 0 (Timeout) [pid 2976] wait4(-1, 0xbec3da4c, WNOHANG|WSTOPPED, NULL) = 0 [pid 2976] select(0, NULL, NULL, NULL, {1, 0} Does anyone can help me with this? Thanks in advance. -- Fabio Mauri - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Intermittent crashing web server service
On Thu, Sep 2, 2010 at 4:12 PM, Mike Schleif wrote: > I'd settle for any ideas from the Apache community. How would you > troubleshoot this as a web server issues? > > What is Apache error # 10038? That isn't an Apache error code, it is a windows error code (did you try googling for it?) that is raised when an application tries to do socket operations on something that isn't a socket. > > Where are Apache configurations for sockets? In 1.3, there are none. > > How could a Firefox browser session introduce a socket to a session that is > NOT introduced in an IE session? > Application bug? > Thank you, for your consideration. I'm simply trying to troubleshoot this > as far as I can. > > Also, I initially prepared this client for a scenario that we may need to > REJECT Firefox browsers at session initialization. What may be the > simplest, most effective way to accomplish this? RewriteEngine On RewriteCond %{HTTP_USER_AGENT} Firefox RewriteRule ^ - [F] Cheers Tom - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Intermittent crashing web server service
On Sat, Aug 28, 2010 at 8:28 PM, Mike Schleif wrote: > I've a client running Apache on a MSWindows server with an intermittent > crashing web server service. > > [1] Names & Versions: > > OS Name Microsoft® Windows® Web Server 2008 > Version 6.0.6002 Service Pack 2 Build 6002 > > C:\oracle\ora81\Apache\Apache\Apache.exe -v > Server version: Apache/1.3.12 (Win32) > Server built: Nov 8 2000 20:08:38 > > Service: OracleOraHome81HTTPServer > Seriously? 1) If you must run Apache 1.3, you should at least be running the latest release. 1.3.12 has more holes than Emmental. 2) That Apache 1.3 runs on windows at all is a minor miracle, it was not designed to. You really should not be using 1.3 on windows (you really should not be using 1.3 at all tbh!) 3) There's virtually nothing anyone on this list can do to help you resolve this problem. If it is a bug in Apache 1.3.12, there won't be a fix for that version. If it isn't, it is probably in your application. The only way to test that is to upgrade Apache - preferably to 2.2 - and see if that solves the issues. Cheers Tom - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Intermittent crashing web server service
On 9/2/2010 7:51 AM, Javier Arancibia wrote: > you have oracle. Open a metalink ticket, > > Javier > Mike Schleif > > Para > 30/08/2010 15:33 users@httpd.apache.org > cc > > Por favor, Asunto responda a > Re: [us...@httpd] Intermittent crashing web server service > > On 8/28/2010 10:39 PM, Frank Gingras wrote: > > On 08/28/2010 03:28 PM, Mike Schleif wrote: > >> I've a client running Apache on a MSWindows server with an > >> intermittent crashing web server service. > >> > >> [1] Names& Versions: > >> > >> OS Name Microsoft® Windows® Web Server 2008 > >> Version 6.0.6002 Service Pack 2 Build 6002 > >> > >> C:\oracle\ora81\Apache\Apache\Apache.exe -v > >> Server version: Apache/1.3.12 (Win32) > >> Server built: Nov 8 2000 20:08:38 > >> > >> Service: OracleOraHome81HTTPServer > >> > >> [2] SSL / https > >> > >> [3] Apparently, the service crashes when accessed by Firefox browsers, > >> not Internet Explorer. > >> > >> [4] Following error_log message correlates with crashed service; but, > >> service does NOT always crash when this error occurs: > >> > >> [crit] (10038)An operation was attempted on something that is not a > >> socket: Parent: WSADuplicateSocket failed for socket 284. > >> > >> It is always: "10038" ; always "WSADuplicateSocket" ; always "socket > 284" > >> > >> What else do you need to identify the root cause? > >> > >> How can we correct this problem and prevent this problem from > recurring? > >> > >> I appreciate all assistance in resolving this issue. > > > Mike, > > > > Are you really still running 1.3.12? > > > > Frank > > Yes. I've googled the error, and others have experienced it on v2.x > apache - so, something with this problem is apache version agnostic. > > My client fears tampering with version dependencies. Notice that their > application is on Oracle v8.1x. Nothing about this problem is vendor > supported, which is why I'm consulting on this. > > If they're right, and this problem only occurs with Firefox, there > should be several less invasive solutions. > > Please, advise. Of course, you noticed that this is running Oracle v8.1x ... I'd settle for any ideas from the Apache community. How would you troubleshoot this as a web server issues? What is Apache error # 10038? Where are Apache configurations for sockets? How could a Firefox browser session introduce a socket to a session that is NOT introduced in an IE session? Thank you, for your consideration. I'm simply trying to troubleshoot this as far as I can. Also, I initially prepared this client for a scenario that we may need to REJECT Firefox browsers at session initialization. What may be the simplest, most effective way to accomplish this? If ever I can be of service to you; contact me at once. I wish for you a truly extraordinary day ... -- Best Regards, Mike Schleif 612-235-6060 http://mdsresource.net http://www.linkedin.com/in/schleif http://facebook.com/MDSResource http://twitter.com/mikeschleif If ever I can be of service to you; contact me at once. I wish for you a truly extraordinary day ... - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Can't load driver file apr_dbd_mysql.so
This worked! It built using my 5.0.67 version of mysql. After that I installed the 2.2.16 build, added the 5.0.67 mysql lib folder to the LD_LIBRARY_PATH in envvars and all was well! :) The configuration entry 'DBDriver mysql' now loads apr_dbd_mysql.so yea! Nick I appreciate your inputs! -Steve On 9/2/2010 9:02 AM, Steve Whitson wrote: I modified the mysql_config to replace "-xarch=v8" with "-mcpu=v8" based on: http://www.zabbix.com/forum/showthread.php?t=13151 and http://forums.mysql.com/read.php?51,7767,183553#msg-183553 That seems to allow it to configure at least recognize that it has a usable mysql :) Thanks! I'll post what I find once the build finished (now using 2.2.16, and 5.0.67). -Steve On 9/2/2010 8:46 AM, Nick Kew wrote: On Thu, 02 Sep 2010 07:04:01 -0500 Steve Whitson wrote: configure:27065: gcc -o conftest -g -O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I/usr/local/mysql/include -xarch=v8 -L/usr/local/mysql/lib -lmysqlclient_r -lz -lpthread -lthread -lposix4 -lgen -lsocket -lnsl -lm -lpthread -lthread conftest.c -lmysqlclient_r -lrt -xarch=v8 -L/usr/local/mysql/lib -lmysqlclient_r -lz -lpthread -lthread -lposix4 -lgen -lsocket -lnsl -lm>&5 gcc: language arch=v8 not recognized ld: fatal: file conftest.c: unknown file type Where does that configure come from? -xarch=v8 looks like an option for Sun CC, but breaks gcc. As a workaround, remove it (if nothing else breaks, for the same reason). Or use Sun CC.
[us...@httpd] Default DocumentRoot is /apache/htdocs under Windows but another in documentation
Default DocumentRoot is /apache/htdocs under Windows but another in documentation http://httpd.apache.org/docs/2.2/mod/core.html#documentroot This is a bug? -- OS: Windows XP SP2 - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Can't load driver file apr_dbd_mysql.so
I modified the mysql_config to replace "-xarch=v8" with "-mcpu=v8" based on: http://www.zabbix.com/forum/showthread.php?t=13151 and http://forums.mysql.com/read.php?51,7767,183553#msg-183553 That seems to allow it to configure at least recognize that it has a usable mysql :) Thanks! I'll post what I find once the build finished (now using 2.2.16, and 5.0.67). -Steve On 9/2/2010 8:46 AM, Nick Kew wrote: On Thu, 02 Sep 2010 07:04:01 -0500 Steve Whitson wrote: configure:27065: gcc -o conftest -g -O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I/usr/local/mysql/include -xarch=v8 -L/usr/local/mysql/lib -lmysqlclient_r -lz -lpthread -lthread -lposix4 -lgen -lsocket -lnsl -lm -lpthread -lthread conftest.c -lmysqlclient_r -lrt -xarch=v8 -L/usr/local/mysql/lib -lmysqlclient_r -lz -lpthread -lthread -lposix4 -lgen -lsocket -lnsl -lm>&5 gcc: language arch=v8 not recognized ld: fatal: file conftest.c: unknown file type Where does that configure come from? -xarch=v8 looks like an option for Sun CC, but breaks gcc. As a workaround, remove it (if nothing else breaks, for the same reason). Or use Sun CC.
Re: [us...@httpd] Can't load driver file apr_dbd_mysql.so
On Thu, 02 Sep 2010 07:04:01 -0500 Steve Whitson wrote: > configure:27065: gcc -o conftest -g -O2 -DSOLARIS2=10 > -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE > -I/usr/local/mysql/include -xarch=v8 -L/usr/local/mysql/lib > -lmysqlclient_r -lz -lpthread -lthread -lposix4 -lgen -lsocket -lnsl > -lm -lpthread -lthread conftest.c -lmysqlclient_r -lrt -xarch=v8 > -L/usr/local/mysql/lib -lmysqlclient_r > -lz -lpthread -lthread -lposix4 -lgen -lsocket -lnsl -lm >&5 > gcc: language arch=v8 not recognized > ld: fatal: file conftest.c: unknown file type Where does that configure come from? -xarch=v8 looks like an option for Sun CC, but breaks gcc. As a workaround, remove it (if nothing else breaks, for the same reason). Or use Sun CC. -- Nick Kew - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Intermittent crashing web server service
you have oracle. Open a metalink ticket, Javier Mike Schleif Para 30/08/2010 15:33 users@httpd.apache.org cc Por favor, Asunto responda a Re: [us...@httpd] Intermittent us...@httpd.apach crashing web server service e.org On 8/28/2010 10:39 PM, Frank Gingras wrote: > On 08/28/2010 03:28 PM, Mike Schleif wrote: >> I've a client running Apache on a MSWindows server with an >> intermittent crashing web server service. >> >> [1] Names & Versions: >> >> OS Name Microsoft® Windows® Web Server 2008 >> Version 6.0.6002 Service Pack 2 Build 6002 >> >> C:\oracle\ora81\Apache\Apache\Apache.exe -v >> Server version: Apache/1.3.12 (Win32) >> Server built: Nov 8 2000 20:08:38 >> >> Service: OracleOraHome81HTTPServer >> >> [2] SSL / https >> >> [3] Apparently, the service crashes when accessed by Firefox browsers, >> not Internet Explorer. >> >> [4] Following error_log message correlates with crashed service; but, >> service does NOT always crash when this error occurs: >> >> [crit] (10038)An operation was attempted on something that is not a >> socket: Parent: WSADuplicateSocket failed for socket 284. >> >> It is always: "10038" ; always "WSADuplicateSocket" ; always "socket 284" >> >> What else do you need to identify the root cause? >> >> How can we correct this problem and prevent this problem from recurring? >> >> I appreciate all assistance in resolving this issue. > Mike, > > Are you really still running 1.3.12? > > Frank Yes. I've googled the error, and others have experienced it on v2.x apache - so, something with this problem is apache version agnostic. My client fears tampering with version dependencies. Notice that their application is on Oracle v8.1x. Nothing about this problem is vendor supported, which is why I'm consulting on this. If they're right, and this problem only occurs with Firefox, there should be several less invasive solutions. Please, advise. If ever I can be of service to you; contact me at once. I wish for you a truly extraordinary day ... -- Best Regards, Mike Schleif 612-235-6060 http://mdsresource.net http://www.linkedin.com/in/schleif http://facebook.com/MDSResource http://twitter.com/mikeschleif - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Can't load driver file apr_dbd_mysql.so
Here's the error in the config log for 2.2.10 built against prebuilt mysql 5.0.67 configure:39653: checking for mysql_init in -lmysqlclient_r configure:39688: gcc -o conftest -g -O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I/usr/local/mysql/include -xarch=v8 -L/usr/local/mysql/lib -lmysqlclient_r -l z -lpthread -lthread -lposix4 -lgen -lsocket -lnsl -lm -lpthread -lthread conftest.c -lmysqlclient_r -lrt -xarch=v8 -L/usr/local/mysql/lib -lmysqlclient_r -lz -lpthread -lthread -lposix4 -lgen -lsocket -lnsl -lm >&5 gcc: language arch=v8 not recognized ld: fatal: file conftest.c: unknown file type ld: fatal: File processing errors. No output written to conftest collect2: ld returned 1 exit status I believe this is why it is setting apu_have_mysql='0'. Thanks, -Steve On 9/2/2010 7:04 AM, Steve Whitson wrote: > In the config.log for apr-util I see an error when I use the (from > mysql community) prebuilt 5.0.67 version of mysql & when I use the > prebuild latest version of 5.1.x of mysql. > > Here's an example (not sure which of the two I was building against with > this error, since I went back to trying builds of 2.2.9 & 2.2.10)... > > configure:27065: gcc -o conftest -g -O2 -DSOLARIS2=10 > -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE > -I/usr/local/mysql/include -xarch=v8 -L/usr/local/mysql/lib > -lmysqlclient_r -lz -lpthread -lthread -lposix4 -lgen -lsocket -lnsl > -lm -lpthread -lthread conftest.c -lmysqlclient_r -lrt -xarch=v8 > -L/usr/local/mysql/lib -lmysqlclient_r > -lz -lpthread -lthread -lposix4 -lgen -lsocket -lnsl -lm >&5 > gcc: language arch=v8 not recognized > ld: fatal: file conftest.c: unknown file type > > It results in setting > apu_have_mysql='0' > > and therefore doesn't build the mysql drivers. > > I may result in building my own mysql to see if that helps... unless you > have any ideas... > > Thanks much, > -Steve > > On 9/1/2010 7:44 PM, Nick Kew wrote: >> On 1 Sep 2010, at 23:03, Steve Whitson wrote: >> >>> I did notice that this version of mysql is 4.0. I want to be using 5.0 but >>> the libmysqlclient_r library isn't available in this installation. As I >>> had mentioned, I do have an apache 2.2.9 working using the mysql 4.0 >>> version client. >> Is it possible you may have built against a different version to what you're >> trying to run with? APR shouldn't work with any MySQL older than 4.1! >> >>> Anyway, I'm downloading a 5.0 version of mysql to see if it will work. >>> Apparently 5.1 isn't known, since in the config.log for apr_util (I'm >>> sticking to just building this piece util I get it right) it had problems. >> You've lost me there! >> - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Can't load driver file apr_dbd_mysql.so
In the config.log for apr-util I see an error when I use the (from mysql community) prebuilt 5.0.67 version of mysql & when I use the prebuild latest version of 5.1.x of mysql. Here's an example (not sure which of the two I was building against with this error, since I went back to trying builds of 2.2.9 & 2.2.10)... configure:27065: gcc -o conftest -g -O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I/usr/local/mysql/include -xarch=v8 -L/usr/local/mysql/lib -lmysqlclient_r -lz -lpthread -lthread -lposix4 -lgen -lsocket -lnsl -lm -lpthread -lthread conftest.c -lmysqlclient_r -lrt -xarch=v8 -L/usr/local/mysql/lib -lmysqlclient_r -lz -lpthread -lthread -lposix4 -lgen -lsocket -lnsl -lm >&5 gcc: language arch=v8 not recognized ld: fatal: file conftest.c: unknown file type It results in setting apu_have_mysql='0' and therefore doesn't build the mysql drivers. I may result in building my own mysql to see if that helps... unless you have any ideas... Thanks much, -Steve On 9/1/2010 7:44 PM, Nick Kew wrote: > On 1 Sep 2010, at 23:03, Steve Whitson wrote: > >> I did notice that this version of mysql is 4.0. I want to be using 5.0 but >> the libmysqlclient_r library isn't available in this installation. As I had >> mentioned, I do have an apache 2.2.9 working using the mysql 4.0 version >> client. > Is it possible you may have built against a different version to what you're > trying to run with? APR shouldn't work with any MySQL older than 4.1! > >> Anyway, I'm downloading a 5.0 version of mysql to see if it will work. >> Apparently 5.1 isn't known, since in the config.log for apr_util (I'm >> sticking to just building this piece util I get it right) it had problems. > You've lost me there! > - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Issue with APR APIs
Even we thought of this (using apr_thread_create) initially, but later realized that we can't achive time-bound functionality with this, similar to what we've in Windows - WaitForSingleObject(). Thanks, PR On Thu, Sep 2, 2010 at 3:23 AM, William A. Rowe Jr. wrote: > On 9/1/2010 6:12 AM, Pravesh Rai wrote: > > Hi, > > > > Observed that, if we use following set of functions: > > > > subrequest = ap_sub_req_lookup_uri( webapp->sChpUrl, r, r->output_filters > ); > > ap_run_sub_req( subrequest ); > > ap_rflush( subrequest ); > > ap_destroy_sub_req( subrequest ); > > > > in a thread [using CreateThread() on Windows OS], every execution of > these, left some > > Private Bytes consumed. i.e. Memory Leaks. Do anybody has any clue on > this ? > > Why would you be using CreateThread()? You've mixed your apples and > oranges. > > If you expect apr/httpd to have any chance, you would first use > apr_thread_create, > and be certain to apr_thread_join all of the completed threads. Still no > guarantee > that there are no leaks in this scenario, as msvcr may be creating per > thread > objects. > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > " from the digest: users-digest-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > >