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
will take a look tomorrow
I keep getting a 404 pop-up saying /anyterm/anyterm-module does not exist. What am I doing wrong?
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
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
Hi Renat, Thanks very much for all this, I'll make the changes. Cheers, Tom
Your recommendations have now all been implemented. anyterm-1.1.8-r2 is now in the tree.