server-side scripts used to run VaST on NMW survey images
This is very much work in progress. You may reach me at kirx[at]kirx.net
- place the code in 'cgi-bin'
cd /var/www/scan.sai.msu.ru/cgi-bin
git clone https://github.com/kirxkirx/unmw.git
- create the data directory
mkdir /home/NMW_web_upload
- create a symlink (or use
mount --bind
if you Apache configuration does not allow symlinks) to the data directory
cd /var/www/scan.sai.msu.ru/cgi-bin/unmw
ln -s /home/NMW_web_upload uploads
- copy the content of 'move_to_htdocs' folder to your htdocs
cp -r move_to_htdocs /var/www/scan.sai.msu.ru/htdocs/unmw
- create a symlink (or use
mount --bind
) to the data directory in htdocs
cd /var/www/scan.sai.msu.ru/htdocs/unmw
ln -s /home/NMW_web_upload uploads
-
go back to the cgi directory and set the data directory path and the URL exposing it in 'local_config.sh', see the example in 'local_config.sh_example'
-
Add
unmw/combine_reports.sh
to cron for it to be run every few minutes. For example/etc/crontab
may look like:
*/8 * * * * www-data /dataX/cgi-bin/unmw/combine_reports.sh &> /dev/null
where www-data is the apache user, /dataX/cgi-bin/unmw/combine_reports.sh
is the full path to combine_reports.sh
(will be different for your system).