Has anyone figured out how to install Apache::Test?

I’m running into the same problem others have. All Apache tests fail
while installing
Apache::Request, complaining about Apache::Test, which refuses to
install. Any suggestions? Thanks,
Don

I ended up installing Apache::Test manually (that is, from the cpan
tarball rather than the install command at the cpan prompt), and it
installed successfully. However, this still did not satisfy
Apache::Request, which for me still refuses to build (I get several
pages of errors during the make portion of the installation).
Every other dependency of RT3 with mod_perl is there, and it is actually
running on our test-box without Apache::Request.

Our solution to this may be to give up on Apache::Request on the
test-box (Suse 8.2) and install Debian or FreeBSD for production
(following some earlier advice found on this list).

–AndrewOn Wed, Dec 03, 2003 at 11:30:52PM -0500, Don Brett wrote:

I’m running into the same problem others have. All Apache tests fail
while installing
Apache::Request, complaining about Apache::Test, which refuses to
install. Any suggestions? Thanks,
Don


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

I ended up installing Apache::Test manually (that is, from the cpan
tarball rather than the install command at the cpan prompt), and it
installed successfully. However, this still did not satisfy
Apache::Request, which for me still refuses to build (I get several
pages of errors during the make portion of the installation).

I had similar problems, but following some advice I found elsewhere I
used the ‘force install Apache::Test’ command at the cpan prompt and it
not only installed fine, but allowed all the other modules to install too.

So far RT is running without a hitch (besides those caused by running on
perl 5.6.1, that is… :slight_smile:

mike

MAS wrote:

I had similar problems, but following some advice I found elsewhere I
used the ‘force install Apache::Test’ command at the cpan prompt and it
not only installed fine, but allowed all the other modules to install too.

One of the reasons this works is that some Apache-related modules
require you to run the test portion as a non-root user. This means that
you can’t simply open cpan as root and get a successful system-wide
installation of the module; the tests will always fail.

Whether or not you should force the install depends on how customized
your environment is. In some cases, it’s better to download the tarball,
run make and make test as a nonprivileged user, then su to root to run
make install.

Since I install rt under its own environment with its own user and
binaries, I don’t run into this problem anymore. So far, it’s running
stable and doesn’t interfere with the rest of the machine.

I’m running into the same problem others have. All Apache tests fail
while installing
Apache::Request, complaining about Apache::Test, which refuses to
install. Any suggestions? Thanks,
Don

I had to force the install. And all seems to be working well.

I’m running into the same problem others have. All Apache tests fail
while installing
Apache::Request, complaining about Apache::Test, which refuses to
install. Any suggestions? Thanks,
Don

I had to force the install. And all seems to be working well.

At the risk of chiming in with another “Me too”. I did the same. Under
Solaris, I always config, and make as a normal user, and then make
install as root. Doing otherwise invites permissions problems later.
With this install, however, I wasn’t worried about permissions so I
forced the install since I understood the Apache::Test wanted to be run
under a normal user.

Long story made longer. I skipped the tests for that one module and did
a forced install. The one thing I didn’t try was SUDO, but I’d assume
that’d still have issues since it’s running with a UID of 0 (root).

John

Sorry, managed to reply to the OP instead of the list.---------- Forwarded Message ----------

On Thursday 04 December 2003 04:30, Don Brett wrote:

I’m running into the same problem others have. All Apache tests fail
while installing
Apache::Request, complaining about Apache::Test, which refuses to
install. Any suggestions? Thanks,
Don

I also had the same issues when installing Apache::Test. I eventually found
out that the problem is permissions.

Usually, perl mods have to be installed as root. My .cpan directory is in
root’s home directory. People familiar with apache might already have sniffed
the problem from this. Apache runs as a particular user, usually httpd,
sometimes apache (thanks RedHat). This user needs read access to any
directory it serves content from. Permissions on root’s home directory (like
all other home directories) are usually 700. The test suite for Apache::Test
fires up a test httpd on some port, and then tries to request a page from it.
But this page is somewhere in the .cpan directory, which is very often in a
directory which the httpd user does not have read access to. So the response
code is 5xx (Forbidden or Access Denied, can’t remember), which the test
suite interprets as a failure to install the module or run the httpd server,
therefore it bombs out. This is why a force install usually doesn’t cause any
problems, because most often the install goes OK, it’s just the test that
fails.

Various solutions present themselves:

  1. Put .cpan in a world readable directory, maybe /tmp
  2. “chmod 755 /root” before installation and “chmod 700 /root” afterwards (or
    wherever your .cpan is)
  3. Cross your fingers and force the install

HTH
Rich

I also had the same issues when installing Apache::Test. I eventually
found
out that the problem is permissions.

Another common problem is the enforcement of a proxy, which the test
scripts don’t use. Take care to preempt the machine You are installing
on from proxy enforcement by means of firewalls, or the tests might
hang.

Regards,
Harald

Wow. This did it for me! Funny thing is, APXS still reported
failure, but Apache::Test installed fine, and then Apache::Request did
as well. Thanks Rich.

E-

Richard Gration wrote:

Sorry, managed to reply to the OP instead of the list.

---------- Forwarded Message ----------

I’m running into the same problem others have. All Apache tests fail
while installing
Apache::Request, complaining about Apache::Test, which refuses to
install. Any suggestions? Thanks,
Don

I also had the same issues when installing Apache::Test. I eventually found
out that the problem is permissions.

Usually, perl mods have to be installed as root. My .cpan directory is in
root’s home directory. People familiar with apache might already have sniffed
the problem from this. Apache runs as a particular user, usually httpd,
sometimes apache (thanks RedHat). This user needs read access to any
directory it serves content from. Permissions on root’s home directory (like
all other home directories) are usually 700. The test suite for Apache::Test
fires up a test httpd on some port, and then tries to request a page from it.
But this page is somewhere in the .cpan directory, which is very often in a
directory which the httpd user does not have read access to. So the response
code is 5xx (Forbidden or Access Denied, can’t remember), which the test
suite interprets as a failure to install the module or run the httpd server,
therefore it bombs out. This is why a force install usually doesn’t cause any
problems, because most often the install goes OK, it’s just the test that
fails.

Various solutions present themselves:

  1. Put .cpan in a world readable directory, maybe /tmp
  2. “chmod 755 /root” before installation and “chmod 700 /root” afterwards (or
    wherever your .cpan is)
  3. Cross your fingers and force the install

HTH
Rich



rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Ethan Kiczek
Information Technology Manager
Weatherhead Center for International Affairs
617-496-3772
Email: ekiczek@wcfia.harvard.edu mailto:ekiczek@wcfia.harvard.edu
Web site: http://www.wcfia.harvard.edu