[Dxspider-support] WebCluster

Dirk Koopman djk at tobit.co.uk
Sat Oct 6 09:17:02 BST 2012


I suggest that you try 'chown www-data:www-date  webcluster.cnt'

On 05/10/12 20:47, Michael Serowik wrote:
> I had to completely rebuild my system due to a system board error.
>
> I got the system back up and running with the old notes I had.
>
> Operating system is Ubuntu 12.04 LTS
>
> I have the webcluster website up and running but for some reason I am
> unable to get the counter to work.
>
> root at DX-Spider:/usr/lib/cgi-bin# ls
>
> spider.cgi  webcluster  webcluster10  webcluster35  webcluster.cnt
>
> root at DX-Spider:/usr/lib/cgi-bin# ls -l
>
> total 16
>
> -rwxrwxrwx 1 sysop sysop 3065 Oct  4 18:10 spider.cgi
>
> -rwxr-xr-x 1 root  root   312 Oct  5 15:01 webcluster
>
> -rwxr-xr-x 1 root  root   312 Oct  5 15:02 webcluster10
>
> -rwxr-xr-x 1 root  root   312 Oct  5 15:02 webcluster35
>
> -rwxr-xr-x 1 root  root     0 Oct  5 15:09 webcluster.cnt
>
> root at DX-Spider:/usr/lib/cgi-bin#
>
> root at DX-Spider:/usr/local/bin# ls -l
>
> total 84
>
> -rwxr-xr-x 1 root root 73074 Oct  3 07:10 noip2
>
> -rwxr-xr-x 1 root root 10068 Oct  5 14:56 webcluster.pl
>
> # read and increase hit counter
>
> #if (open(CNTFILE, "/var/local/httpd/cgi-bin/webcluster.cnt")) {  -<
> original line
>
> if (open(CNTFILE, "/usr/lib/cgi-bin/webcluster.cnt")) {
>
>      $cnt = <CNTFILE>;
>
>      close(CNTFILE);
>
>      chop($cnt);
>
>      $cnt++;
>
> } else {
>
>      $cnt = 1;
>
> }
>
> # write counter back to file
>
> #if (open(CNTFILE, ">/var/local/httpd/cgi-bin/webcluster.cnt")) {  -<
> Original Line
>
> if (open(CNTFILE, ">/usr/lib/cgi-bin/webcluster.cnt")) {
>
>      printf(CNTFILE "$cnt\n");
>
>      close(CNTFILE);
>
> }
>
>
>
> _______________________________________________
> Dxspider-support mailing list
> Dxspider-support at dxcluster.org
> http://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
>




More information about the Dxspider-support mailing list