Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66167 - default PIWI installation results in "500 Internal Server error"
Summary: default PIWI installation results in "500 Internal Server error"
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High blocker
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-02 15:17 UTC by nobody
Modified: 2005-05-29 05:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nobody 2004-10-02 15:17:36 UTC
It seems that the ebuild for piwi doesn't install correctly. Maybe it doesn't work well with the new webapp-config stuff?

Reproducible: Always
Steps to Reproduce:
1. emerge piwi
2.
3.

Actual Results:  
http://127.0.0.1/piwi/index.pl gives an "500 Internal Server Error".
In /var/log/apache/error_log this shows up:
----
Sat Oct 02 23:47:36 2004] [error] [client 192.168.0.4] mod_mime_magic: can't
read `/var/www/localhost/htdocs/piwi/index.pl'
[Sat Oct 02 23:47:36 2004] [error] [client 192.168.0.4] (13)Permission denied:
exec of '/var/www/localhost/htdocs/piwi/index.pl' failed
[Sat Oct 02 23:47:36 2004] [error] [client 192.168.0.4] Premature end of script
headers: index.pl
[Sat Oct 02 23:47:36 2004] [error] [client 192.168.0.4] File does not exist:
/var/www/localhost/htdocs/favicon.ico
----

Expected Results:  
Going to "http://127.0.0.1/piwi/index.pl" should have shown the default PIWI page.

I tried to correct the error manually.

First I did a "chown -R apache:apache /var/www/localhost/htdocs/piwi/". In
"/var/log/apache/error_log" the message changed to:
----
[Sat Oct 02 23:52:16 2004] [error] [client 192.168.0.4] Can't locate
Functions/config.pl in @INC (@INC contains:
/etc/perl/usr/lib/perl5/site_perl/5.8.5/i686-linux
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4/i686-linux
/usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3/i686-linux
/usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2/i686-linux
/usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i686-linux /usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl/5.8.4/i686-linux /usr/lib/perl5/vendor_perl/5.8.4
/usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.5/i686-linux /usr/lib/perl5/5.8.5
/usr/local/lib/site_perl /usr/lib/perl5/site_perl/5.8.4/i686-linux
/usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3/i686-linux
/usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2/i686-linux
/usr/lib/perl5/site_perl/5.8.2 .) at /var/www/localhost/htdocs/piwi/index.pl line 5.
[Sat Oct 02 23:52:16 2004] [error] [client 192.168.0.4] Premature end of script
headers: index.pl
[Sat Oct 02 23:52:16 2004] [error] [client 192.168.0.4] File does not exist:
/var/www/localhost/htdocs/favicon.ico
----

So next I did "cp /etc/piwi/config.pl
/var/www/localhost/htdocs/piwi/Functions/;chown -R apache:apache
/var/www/localhost/htdocs/piwi/".

Now PIWI did jump automatically to "http://127.0.0.1/piwi/test/index.pl" to
indicate:
----
Profiles/ directory perms : Profiles/ sub-dir is not readable by this webserver
: No such file or directory . Do chown -R apacheuser.apachegrp Profiles/
----

The "Profiles" are in fact in the "/etc/piwi" directory.

So I did:

cp -a /etc/piwi/Profiles/ /var/www/localhost/htdocs/piwi/
chown -R apache:apache /var/www/localhost/htdocs/piwi/

Now PIWI shows it's default page, but an error remains: "Impossible to save
Filter to disk : No such file or directory".
Comment 1 Michael Boman (RETIRED) gentoo-dev 2004-10-29 11:50:48 UTC
What version of PIWI are you trying to emerge?
Comment 2 nobody 2004-10-29 14:03:27 UTC
I have this problem on two machines running gentoo unstable, so it is version "net-analyzer/piwi-0.8.0.20031109-r3".
Comment 3 Daniel Black (RETIRED) gentoo-dev 2005-05-29 05:15:03 UTC
piwi removed - prewikki exists as a replacement.