Skip to content

How to set up on DX Spider Mojo branch #4

@maserowik

Description

@maserowik

Although I do not consider myself a professional programmer, I was able to successfully implement this solution using the Mojo branch of DX Spider. Below are the steps I followed to make it work. These steps were tested and verified on both my test system and production system, ensuring they function as expected.

I would appreciate it if anyone could verify these steps to ensure accuracy and offer any suggestions for improvement.

sudo usermod -aG spider www-data
groups www-data
git clone https://github.com/ea1nk/xmlDxSpider.git
ls
cd xmlDxSpider/
ls
cd perl
ls
sudo cp webclusterXML.pl /usr/local/bin/webclusterXML.pl
sudo nano /usr/local/bin/webclusterXML.pl
Change
$spotfile=sprintf("/spider/data/spots/%4.4d/%3.3d.dat",$year,$yday);
$annfile=sprintf("/spider/data/log/%4.4d/%2.2d.dat",$year,$mon);
$wcyfile=sprintf("/spider/data/wcy/%4.4d/%2.2d.dat",$year,$mon);
$wwvfile=sprintf("/spider/data/wwv/%4.4d/%2.2d.dat",$year,$mon);
$dxccfile=sprintf("/spider/data/dxcc.list");
To
$spotfile=sprintf("/spider/local_data/spots/%4.4d/%3.3d.dat",$year,$yday);
$annfile=sprintf("/spider/local_data/log/%4.4d/%2.2d.dat",$year,$mon);
$wcyfile=sprintf("/spider/local_data/wcy/%4.4d/%2.2d.dat",$year,$mon);
$wwvfile=sprintf("/spider/local_data/wwv/%4.4d/%2.2d.dat",$year,$mon);
$dxccfile=sprintf("/spider/data_data/dxcc.list");
cd ..
ls
cp dxcc.list /home/sysop/spider/local_data/dxcc.list
cd /spider/local_data/
sudo a2enmod cgi
sudo systemctl restart apache2
cd /home/sysop/xmlDxSpider/perl
sudo cp webclusterXML /usr/lib/cgi-bin/webclusterXML
sudo chmod 755 /usr/lib/cgi-bin/webclusterXML
sudo chmod 755 /usr/local/bin/webclusterXML.pl
apache2ctl -M | grep cgi
sudo a2enmod cgi
sudo nano /etc/apache2/sites-available/000-default.conf
<Directory /usr/lib/cgi-bin>
Options +ExecCGI
AddHandler cgi-script .cgi .pl
AllowOverride None
Require all granted

sudo systemctl reload apache2
sudo apt install -y perl libcgi-pm-perl libxml-simple-perl
grep "DocumentRoot" /etc/apache2/sites-available/000-default.conf
sudo mkdir /var/www/webcluster
sudo cp -r /home/sysop/xmlDxSpider/htmldocs/* /var/www/webcluster/

http://your_ip_address/webcluster

Thanks
Mike- N3BSQ

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions