- a few missing items -- mostly SOAP and apreq should be apreq2:
@@ -94,12 +94,14 @@ then
apt-get -y update
apt-get -y upgrade
apt_get_install
+ mkdir /usr/include/apache2 # for Apache2::SOAP use
CPANOPT='-j lib/cpan_config.pm'
cpan $CPANOPT XML::Parser::EasyTree HTML::Template Iterator Iterator::Util Mail::
#ww3
cpan $CPANOPT Dancer Dancer::Plugin::Database Plack::Runner Plack::Handler::FCGI
cpan $CPANOPT File::Find::Rule Path::Class FCGI File::Slurp
- a2enmod apreq
+ cpan $CPANOPT Apache2::SOAP
+ a2enmod apreq2
a2enmod fcgid
apache2ctl restart
elif [ -e "/etc/SuSE-release" ]
in order to create Apache2::SOAP you need to manually create:
/usr/include/apache2 ??
1a. include in instructions: when running install_prequisites.sh by hand use
* sudo bash ./bin/install_prerequisites.sh
* this makes the relative references work.
1b.
* is it possible to set the ServerName to avoid annoying error messages
* setting it in /etc/apache2/sites-enabled/000-default doesn't work
* added globally in /etc/apache2/apache2.conf it does work
ServerName localhost (for example)
- There should be a choice to not install webwork2, pg and webwork-open-problem-libraries over existing copies but to use existing copies instead. I'd suggest that be the result chosen by the non-interactive mode if the directories exist --- otherwise you get into an infinite loop -- as below:
Where should I install webwork? [/opt/webwork/]: /opt/webwork/
Error! You gave me a path which already exists on the filesystem.
1> Enter new location
2> Delete existing /opt/webwork and use that location
3> Quit
How would you like to proceed? [1]: Enter new location
------ in the Vagrant use case the webwork2, pg, and libraries are likely to be installed already
- I haven't tracked this down yet -- but in the automatic mode I can't seem to unarchive directories:
* can't seem to unarchive courses
* Use of uninitialized value $tar_out in concatenation (.) or string at /opt/webwork/webwork2/lib/WeBWorK/Utils/CourseManagement.pm line 768.<br />
Error messages
* Failed to unarchive course directory with command '2>&1 /bin/tar -C /opt/webwork/courses -xzf /opt/webwork/courses/2014_HKUST_demo.tar.gz' (exit=72057594037927935 signal=127 core=128):
--- I can copy that line onto the command line and it fails because of permissions. If I use sudo it works. If I change all the permissions to 777 it works from the command line but still doesn't work seem to work from the admin page. Haven't been able to track it further yet.
-- Can you duplicate this behavior? It might be a fluke of some kind.
- external programs should be set for ubuntu:
$externalPrograms{checkurl} = "lwp-request -d -mHEAD";
$externalPrograms{curlCommand} = "";
should be set by
vagrant@WeBWorK:/opt/webwork/webwork2/conf$ which lwp-request
/usr/bin/lwp-request
vagrant@WeBWorK:/opt/webwork/webwork2/conf$ which curl
/usr/bin/curl
- Findapplets is not working -- haven't tracked down details -- the files are there.
- findAppletCodebase Error: DerivativeDraw11.swf not found after searching......
- Suggestions for more additions to the users .bashrc
- construct some wwlog and wwtiming and wwreload aliases
- alias wwlog ="tail -f /var/log/apache2/error_log" or something like that
- alias wwtiming = "tail -f /opt/webwork/webwork2/logs/timing_log"
these can be very handy for debugging. (paths are only approximate)
- Final message:
cp: cannot stat �webwork_install.log�: No such file or directory
webwork_install.log can be found in /home/vagrant
Cleaning up...
not sure why it's searching for log there in users home directory
worked pretty well. if we can allow for existing repos of webwork2, pg and libraries
it will probably be pretty fast as well.
in order to create Apache2::SOAP you need to manually create:
/usr/include/apache2 ??
Where should I install webwork? [/opt/webwork/]: /opt/webwork/
Error! You gave me a path which already exists on the filesystem.
1> Enter new location
2> Delete existing /opt/webwork and use that location
3> Quit
How would you like to proceed? [1]: Enter new location
------ in the Vagrant use case the webwork2, pg, and libraries are likely to be installed already
--- I can copy that line onto the command line and it fails because of permissions. If I use sudo it works. If I change all the permissions to 777 it works from the command line but still doesn't work seem to work from the admin page. Haven't been able to track it further yet.
-- Can you duplicate this behavior? It might be a fluke of some kind.
$externalPrograms{checkurl} = "lwp-request -d -mHEAD";
$externalPrograms{curlCommand} = "";
should be set by
these can be very handy for debugging. (paths are only approximate)
not sure why it's searching for log there in users home directory
worked pretty well. if we can allow for existing repos of webwork2, pg and libraries
it will probably be pretty fast as well.