Installation

conflict between apache2 and curl or lwp-request in macports distro

conflict between apache2 and curl or lwp-request in macports distro

by Michael Gage -
Number of replies: 3
With the help of Tom Hagedorn I have installed a macports tree which includes webwork on my MacBook. The following problem will cause the apache2 server child to die. There are reports of similar behavior for other distros on the net -- most of them fixed by upgrading to a later version but not explanation of exactly what has to be changed. I floundered quite a bit while setting this up, so it's possible that this error was caused by something I did during the installation. I'd appreciate it if others could try this problem and see what results they get. In my case I get a blank screen and a report in the server log file that the child process died.

DOCUMENT();

# Load whatever macros you need for the problem
loadMacros("PG.pl",
 "PGstandard.pl",
 #"PGinfo.pl",
 "source.pl",
 );

## Do NOT show partial correct answers
$showPartialCorrectAnswers = 0;
TEXT(beginproblem());

BEGIN_TEXT

Checking the check_url macro on the url http://www.google.com

This effectively executes /user/local/bin/curl -I http://www.google.com

or some similar http fetcher. The purpose is to see if the file exists.

It is used to find a copy of an applet when it is not known exactly in which

repository the applet can be found. It should return 0 if the file is found.

\{check_url("http://www.google.com")\};

It has been crashing the system with apache2 on leopard mac os (using
macports server)


END_TEXT


ENDDOCUMENT();

In reply to Michael Gage

Re: conflict between apache2 and curl or lwp-request in macports distro

by Thomas Hagedorn -

Hi Mike,

I experience exactly the same problem. I also tried it with curl running instead of lwp-request and also got the same behavior.

-Tom

In reply to Thomas Hagedorn

Re: conflict between apache2 and curl or lwp-request in macports distro

by Michael Gage -
Thanks. At least it isn't just my system.

Can someone else using an apache2 server test this problem?

I think this may be a macports distribution issue. I have found indications on the net that this has occured in the past on other distributions such as debian and the problem went away "after upgrading". Unfortunately I haven't been able to figure out was changed to make the problem go away.


In reply to Michael Gage

Re: conflict between apache2 and curl or lwp-request in macports distro

by Arnold Pizer -
Hi Mike,

This works fine on Fedora 9 built with
Server Version: Apache/2.2.8 (Unix) mod_apreq2-20051231/2.6.1 mod_perl/2.0.3 Perl/v5.10.0
I copied your problem exactly except that I commented out "source.pl"
loadMacros("PG.pl",
 "PGstandard.pl",
 #"PGinfo.pl",
 #"source.pl",
 );
Here the result. Note that it did return 0.

All of the answers above are correct.

(1 pt) settest/test1.pg
Checking the check_url macro on the url http://www.google.com This effectively executes /user/local/bin/curl -I http://www.google.com or some similar http fetcher. The purpose is to see if the file exists. It is used to find a copy of an applet when it is not known exactly in which repository the applet can be found. It should return 0 if the file is found. 0; It has been crashing the system with apache2 on leopard mac os (using macports server)

Edit this problem

Show correct answers

Arnie