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.
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
Comments
THANK YOU!!!
I've followed this exactly, but I'm getting this error at the end and nodewatch won't start fully
....
apt-get install php php-cli
yum install php php-cli
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!
Same thing happened to me. I was trying to get gnome working, installed nano and boom!
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
Thanks, edited that.
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
@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.
@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
ec2-79-125-0-136.eu-west-1.compute.amazonaws.com (79.125.0.136) 0.587 ms 0.560 ms 0.742 ms
178.236.0.124 (178.236.0.124) 1.123 ms 1.301 ms 1.268 ms
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
ae51.bar1.Dublin.Level3.net (212.73.251.101) 1.327 ms 213.242.106.85 (213.242.106.85) 1.295 ms
@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..
@ZEROF
I have tried downloading from 4 different locations:
Germany:
Netherlands:
USA:
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):
@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
Are you trying this on Debian? linuxthefish mentioned above you need to install openssl-dev*.
@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
Here you can download and try 0.1b version. Keep me posted.
https://gist.github.com/ZEROF/065b8708cbe3cd62d83d
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
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.
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.
@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
@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 .
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
@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.
@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
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