Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120115 - www-apache/anyterm needs a check by a webapp expert
Summary: www-apache/anyterm needs a check by a webapp expert
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL: http://anyterm.org/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-23 16:20 UTC by Tom Payne (RETIRED)
Modified: 2006-01-25 11:42 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 Tom Payne (RETIRED) gentoo-dev 2006-01-23 16:20:56 UTC
Hi Webapp Herd,

I've just added an ebuild for anyterm ( http://anyterm.org/ ), a rather neat
AJAX terminal emulator (get a shell on your box from any web browser, means you
can use mutt from any internet cafe).

anyterm is a webapp that needs an apache2 module, consequently it inherits both the webapp and apache-module eclasses.

I *think* I've done the right thing USE=-vhosts installations, but I'd be very grateful if one of you webapp experts could check the ebuild to make sure that I haven't done anything stupid.

Many thanks,

Tom
Comment 1 Renat Lumpau (RETIRED) gentoo-dev 2006-01-23 18:34:56 UTC
will take a look tomorrow
Comment 2 Renat Lumpau (RETIRED) gentoo-dev 2006-01-24 04:44:23 UTC
I keep getting a 404 pop-up saying /anyterm/anyterm-module does not exist. What am I doing wrong?
Comment 3 Tom Payne (RETIRED) gentoo-dev 2006-01-24 05:54:47 UTC
anyterm-module is a "virtual" file created in
  /var/www/localhost/htdocs/anyterm/.htaccess
with these lines:
  <Files anyterm-module>
    SetHandler anyterm
    # ...
  </Files>

There are a number of possible problems:

Maybe this .htaccess file is not being read. Check /etc/apache2/conf/modules.d/50_anyterm.conf. Is the Directory directive correct for the location of the anyterm webapp? (This might well be wrong if you're using vhosts).

Maybe the .htaccess file disables itself: it only activates if both mod_ssl and mod_auth_pam are loaded. Do you have both of the following?
- net-www/apache built with USE=ssl
- net-www/mod_auth_pam
- -D ANYTERM -D SSL -D AUTH_PAM in your /etc/conf.d/apache2 APACHE2_OPTS

Hope it's one of these. If it's not could you send me the relevant lines from your apache logs?

Cheers,

Tom

Comment 4 Renat Lumpau (RETIRED) gentoo-dev 2006-01-24 06:36:46 UTC
ah, i never upgraded my mod_auth_pam for the new layout. works now.

1. You most likely want to set WEBAPP_MANUAL_SLOT="yes" and SLOT="0"

2. Instructions in pkg_postinst, .htaccess, and Apache2 config file assume USE="-vhosts" and will break if w-c is called into another vhost or destination directory.
 - You can use webapp_postinst_txt to display customized instructions for the right vhost/directory
 - the .htaccess file can be automatically adjusted using webapp_hook_script.
 - hook scripts are sandboxed and cannot modify files in /etc. You'll need to warn the user to set the correct directory in the Apache config file

http://www.gentoo.org/proj/en/webapps/webapp-eclass.xml may be helpful

Also, please use epause instead of sleep.

Hope this helps, let me know if you have any other questions. Feel free to ping me in #gentoo-web
Comment 5 Tom Payne (RETIRED) gentoo-dev 2006-01-24 06:50:18 UTC
Hi Renat,

Thanks very much for all this, I'll make the changes.

Cheers,

Tom
Comment 6 Tom Payne (RETIRED) gentoo-dev 2006-01-25 11:42:48 UTC
Your recommendations have now all been implemented. anyterm-1.1.8-r2 is now in the tree.