Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Installing/Configuring nodewatch on Debian 7
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Installing/Configuring nodewatch on Debian 7

Hey,

I always wanted to use nodewatch on Debian, but it doesn't work out of the box.

I wrote this tutorial to show others how you can get nodewatch running on a Debian system within minutes, maybe some of you find this useful:

http://vpsaddicted.com/installing-and-configuring-nodewatch-on-debian-7/

Regards

tr1cky

«1

Comments

  • THANK YOU!!!

    Thanked by 1tr1cky
  • linuxthefishlinuxthefish Member
    edited September 2014

    I've followed this exactly, but I'm getting this error at the end and nodewatch won't start fully :(

    Nodewatch build 0350
    Copyright (c) 2009-2014 IT7 Networks Inc.
    http://vpsantiabuse.com/

    Nodewatch needs 2 minutes to restart.
    /nodewatch/scripts/nodewatch_restart.sh: line 9: /nodewatch/php/bin/php: No such file or >directory

  • @linuxthefish said:
    I've followed this exactly, but I'm getting this error at the end and nodewatch won't start fully :(

    /nodewatch/scripts/nodewatch_restart.sh: line 9: /nodewatch/php/bin/php: No such file or >directory

    ....

    apt-get install php php-cli

    yum install php php-cli

    This isn't rocket surgery,

  • WintereiseWintereise Member
    edited September 2014

    GoodHosting said: This isn't rocket surgery,

    Invocation location seems custom, it probably ships with a version of PHP and that didn't get installed (i.e: incomplete)

    You can try symlinking the original binary from php{5}-cli and see if it works as expected. If not, you'll have to see why the nodewatch one is missing. @OP.

  • Fixed, installing openssl-dev* helped!

  • @linuxthefish said:
    Fixed, installing openssl-dev* helped!

    Same thing happened to me. I was trying to get gnome working, installed nano and boom!

    Thanked by 1linuxthefish
  • dccdcc Member, Host Rep

    Thanks for the guide, would you mind if we link to it from vpsantiabuse.com?

  • @dcc said:
    Thanks for the guide, would you mind if we link to it from vpsantiabuse.com?

    Not at all, I would be honored.

  • The script suspend the abusers by default not terminate as you have mentioned in your post

  • @ftpit said:
    The script suspend the abusers by default not terminate as you have mentioned in your post

    Thanks, edited that.

  • ZEROFZEROF Member
    edited September 2014

    Your ssl site version is not working here. Good share. I will try to make something cool with this script, i will share when it's done. Thanks

    Edit:

    I need nodewatch_config.php file, default, not edited.

    And if somebody can host mirror files it will be good, vpsantiabuse server need more then 10min to send 11MB file.

    @tr1cky

  • dccdcc Member, Host Rep

    @ZEROF:

    Default config file:
    http://deploy.vpsantiabuse.com/nodewatch/nodewatch_config.php.txt

    Can you post a traceroute to vpsantiabuse.com? Or mtr if you can.

  • ZEROFZEROF Member
    edited October 2014

    @dcc

    First thank you, this will save my coding time. Download stopped few times, traceroute as well. And i get that php-5.2.17.tar.gz is corrupted (will try again)

    traceroute to vpsantiabuse.com

    (23.252.100.100), 30 hops max, 60 byte packets

    1. ec2-79-125-0-136.eu-west-1.compute.amazonaws.com (79.125.0.136) 0.587 ms 0.560 ms 0.742 ms

    2. 178.236.0.124 (178.236.0.124) 1.123 ms 1.301 ms 1.268 ms

    3. 178.236.0.129 (178.236.0.129) 1.113 ms 1.079 ms 178.236.0.127 (178.236.0.127) 1.189 ms

    4. ae51.bar1.Dublin.Level3.net (212.73.251.101) 1.327 ms 213.242.106.85 (213.242.106.85) 1.295 ms

  • ZEROFZEROF Member
    edited October 2014

    @dcc

    Pls check your server settings (i guess php.ini or firewall), download of your php package stop every time in some point:

    Because of this i can't see if other parts of my script are good, and nodewatch directory have 0 files inside. Etc..

  • dccdcc Member, Host Rep

    @ZEROF

    I have tried downloading from 4 different locations:

    Germany:

    # wget -O /dev/null http://deploy.vpsantiabuse.com/php-5.2.17.tar.gz
    --2014-10-01 05:14:03--  http://deploy.vpsantiabuse.com/php-5.2.17.tar.gz
    Resolving deploy.vpsantiabuse.com... 23.252.100.100
    Connecting to deploy.vpsantiabuse.com|23.252.100.100|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 11801597 (11M) [application/x-gzip]
    Saving to: “/dev/null”
    
    100%[=============================>] 11,801,597  4.35M/s   in 2.6s
    
    2014-10-01 05:14:06 (4.35 MB/s) - “/dev/null” saved [11801597/11801597]
    

    Netherlands:

    # wget -O /dev/null http://deploy.vpsantiabuse.com/php-5.2.17.tar.gz
    --2014-09-30 23:13:29--  http://deploy.vpsantiabuse.com/php-5.2.17.tar.gz
    Resolving deploy.vpsantiabuse.com... 23.252.100.100
    Connecting to deploy.vpsantiabuse.com|23.252.100.100|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 11801597 (11M) [application/x-gzip]
    Saving to: “/dev/null”
    100%[=============================>]  11,801,597  3.51M/s   in 3.2s
    
    2014-09-30 23:13:33 (3.51 MB/s) - “/dev/null” saved [11801597/11801597]
    

    USA:

    # wget -O /dev/null http://deploy.vpsantiabuse.com/php-5.2.17.tar.gz
    --2014-09-30 23:14:06--  http://deploy.vpsantiabuse.com/php-5.2.17.tar.gz
    Resolving deploy.vpsantiabuse.com... 23.252.100.100
    Connecting to deploy.vpsantiabuse.com|23.252.100.100|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 11801597 (11M) [application/x-gzip]
    Saving to: “/dev/null”
    
    100%[=============================>]  11,801,597  18.4M/s   in 0.6s
    
    2014-09-30 23:14:07 (18.4 MB/s) - “/dev/null” saved [11801597/11801597]
    

    I just created an aws instance (my IP: 79.125.0.134, looks like this one is in the same DC as yours) and I am still able to download without issues (tried a few times):

    #  wget -O /dev/null http://deploy.vpsantiabuse.com/php-5.2.17.tar.gz
    --2014-10-01 03:31:33--  http://deploy.vpsantiabuse.com/php-5.2.17.tar.gz
    Resolving deploy.vpsantiabuse.com... 23.252.100.100
    Connecting to deploy.vpsantiabuse.com|23.252.100.100|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 11801597 (11M) [application/x-gzip]
    Saving to: “/dev/null”
    
    100%[=============================>]  11,801,597  3.45M/s   in 3.4s
    
    2014-10-01 03:31:37 (3.30 MB/s) - “/dev/null” saved [11801597/11801597]
    
  • ZEROFZEROF Member
    edited October 2014

    @dcc, ok i will try now.

    Edit: Looks good this time, just in the end i get:

    Nodewatch needs 2 minutes to restart.

    /nodewatch/scripts/nodewatch_restart.sh: line 9: /nodewatch/php/bin/php: No such file or directory

  • dccdcc Member, Host Rep

    @ZEROF said:
    /nodewatch/scripts/nodewatch_restart.sh: line 9: /nodewatch/php/bin/php: No such file or directory

    Are you trying this on Debian? linuxthefish mentioned above you need to install openssl-dev*.

  • ZEROFZEROF Member
    edited October 2014

    @dcc

    I can't say you for sure, but something is wrong with that path. I don't have time to check all now, first i need to clean up script and comment all parts, then we will see if this is issue because of openssl-dev or just wrong path inside nodewatch_restart.sh. That line 9 have nothing to do from what i can see, but i will say again, maybe i'm wrong.

    How Nodewatch installer looks for now:

    It will be click by click install and setting script.

    Edit: @dcc i can send you script if you want to try.

  • I can confirm link download just fine

    --2014-10-01 13:41:22--  http://deploy.vpsantiabuse.com/php-5.2.17.tar.gz
    Resolving deploy.vpsantiabuse.com (deploy.vpsantiabuse.com)... 23.252.100.100
    Connecting to deploy.vpsantiabuse.com (deploy.vpsantiabuse.com)|23.252.100.100|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 11801597 (11M) [application/x-gzip]
    Saving to: `/dev/null'
    
    100%[===============================================================================================================================================>] 11,801,597  3.56M/s   in 3.2s    
    
    2014-10-01 13:41:26 (3.56 MB/s) - `/dev/null' saved [11801597/11801597]
    
  • Here you can download and try 0.1b version. Keep me posted.

    https://gist.github.com/ZEROF/065b8708cbe3cd62d83d

  • SimpleVMSimpleVM Member
    edited October 2014

    As there is no openssl-dev in deb7 (its in deb6 only) and installing libssl-dev is not enough, was anyone able to find a way around these errors on deb7?

    ext/openssl/xp_ssl.o: In function 'php_openssl_setup_crypto': /root/nodewatch/build/php-5.2.17/ext/openssl/xp_ssl.c:357: undefined reference to 'SSLv2_server_method' /root/nodewatch/build/php-5.2.17/ext/openssl/xp_ssl.c:337: undefined reference to 'SSLv2_client_method' collect2: error: ld returned 1 exit status make: *** [sapi/cgi/php-cgi] Error 1

    And openssl-dev reps are all installed

    # apt-get install openssl-dev* Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'libcurl3-openssl-dev' for regex 'openssl-dev*' Note, selecting 'libcurl4-openssl-dev' for regex 'openssl-dev*' Note, selecting 'libglobus-openssl-dev' for regex 'openssl-dev*' Note, selecting 'libcurl4-openssl-dev' instead of 'libcurl3-openssl-dev' Note, selecting 'libglobus-common-dev' instead of 'libglobus-openssl-dev' libglobus-common-dev is already the newest version. libcurl4-openssl-dev is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

    Scratch that
    Here is a solution (patch) http://www.claudiokuenzler.com/blog/406/php-5.2.17-on-debian-wheezy-7-solve-make-errors-xp_ssl-lltdl#.VCyEn0uppuY

  • ZEROFZEROF Member
    edited October 2014

    If we need to do all this to make all working, i don't see how regular users can fix this. People need patched source or package. But i don't see that Debian developers will do that soon. I made install script, but now i see that maybe i did spend some time for almost nothing hope to see @dcc making this patched package integrated with their php package.

  • dccdcc Member, Host Rep

    Openssl is only needed for nodewatch daemon to post data to nodewatch-web script via https. If you do not use nodewatch-web or don't care about https, then you could safely disable openssl when building PHP.

  • ZEROFZEROF Member
    edited October 2014

    @SimpleVM

    I have found simple bash coding solution and it was added to my install script. I will use last patch from php community i have found, i guess it's same like one you did share with us:

    But, this is not end of storry. I have found that we need few more libs if not php make will not build php installation.

    I have updated my install script to version 0.2, pls take your time for testing. It's working with Debian x64.

    https://gist.github.com/ZEROF/065b8708cbe3cd62d83d

  • SimpleVMSimpleVM Member
    edited October 2014

    @ZEROF,
    Yeah, i see you included libltdl-dev libltdl7.
    please also add patch into apt-get install line as sometimes systems do not have patch utility installed.
    Script works fine on deb7. I just tested it.

  • @SimpleVM

    Ok, that is good news. Patch added to apt-get ;).

  • ZEROFZEROF Member
    edited October 2014

    How we know when our code is working? I got mail from one free hosting provider where I hosted openssl patch for my script and this is what i saw:

    Just amazing. Almost 30k hits in last 24h. And i didn't get any bug report :)

    @dcc
    @SimpleVM

  • dccdcc Member, Host Rep

    @ZEROF
    Would you mind if we add a link to the nodewatch manual?

    PS. I think you could safely replace php-5.2.17 with a later version (5.3 or 5.4). We will eventually make the switch anyway. We have tested the latest build on php 5.4 and had no issues.

  • ZEROFZEROF Member
    edited October 2014

    @dcc +1 Not at all, I would be honored.

    And about php .. Give me your php package download link and i will update my script. But be sure that nodewatch don't have issues (just saying :) ). And if you are going to update php package, are you going to update ioncube_loader or not?

    In the future .... When you make packages upgrades pls contact me and I will keep this install script up to date as much as i can. From what i can see a lot of VPS providers want to use Nodewatch with Debian/OpenVZ servers.

    Edit:

    Script was update to version 0.3. Somebody asked about removing Nodewatch installation, now it's possible.

    Download

    https://gist.github.com/ZEROF/065b8708cbe3cd62d83d

  • @dcc said:

    PS. I think you could safely replace php-5.2.17 with a later version (5.3 or 5.4). We will eventually make the switch anyway. We have tested the latest build on php 5.4 and had no issues.

    I also tested it on Centos with latest php 5.4 from atomicorp repo without issues...

    ps I was wonder doses somebody try it on proxmox vz

Sign In or Register to comment.