Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set up on DX Spider Mojo branch #4

Open
maserowik opened this issue Nov 8, 2024 · 0 comments
Open

How to set up on DX Spider Mojo branch #4

maserowik opened this issue Nov 8, 2024 · 0 comments

Comments

@maserowik
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant