SERP Hacker support forum - serposcope

Support forum for open-source softwares built by serphacker.com : serposcope the rank checker.

You are not logged in.

#1 2016-12-12 20:15:28

jbbmedia
Member
Registered: 2016-11-28
Posts: 27

Install instructions not clear!

Hi,

Why it is so difficult to make easy step by step instructions? Probably the software is good, but i would love to see that there was a little bit more thinking behind making the instructions.

I am a newbie with server side things like linux etcetera (and probably there are much more people like that). We maybe also want to use serposcope!


What i want:

I have a VPS (Virtual Private Server). I'm using PUTTY. My VPS is running on:

[]# cat /etc/*release
CentOS release 6.7 (Final)

I want to run serposcope on that server or on a domain on that server.

What i did:
I wanted to follow the instructions:

https://serposcope.serphacker.com/en/doc/install.html

My VPS is running on CentOS, so i am checking: "Generic jar (Mac, CentOS and other unix distribution) install instructions"

First thing they are saying: "First, check if java > 1.8 is setup. Open a terminal and execute java -version and be sure it is at least 1.8 version."

I checked:

[]# java -version
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-b15)
OpenJDK 64-Bit Server VM (build 25.111-b15, mixed mode)

So i think it is at least 1.8 version.

Now they are saying:

"Download the jar version of serposcope."

Download? This is the first thing what is totally not clear! I have searched on the internet and do they mean (in linux / putty command):

wget https://serposcope.serphacker.com/downl … -2.6.0.jar

????

I did that anyway for now and to test. Then i did:

java -jar serposcope-2.6.0.jar

Also not clear in the instructions for people who has no idea what they are doing. In the instructions they are saying: "java -jar serposcope.jar".

And then they are saying: "it will start serposcope at the following URL http://127.0.0.1:7134/"

Nothing starts?? But i am on a webserver, so of course nothing is on 127.0.0.1, so that's also totally not clear. I tried to check ip_of_vps:7134, but that's also not working.

Do you have any idea how many time people will save if the instructions are a bit better? I know for sure a lot of people are struggling with it and they are "wasting" a lot of time to get it working. I see this with a lot of instructions, so that explains the frustration wink.

Enough complaining wink, now my question: How i can let it work? What i have to do different?

Thanks in advance!

Offline

#2 2016-12-13 10:24:57

serphacker
Administrator
Registered: 2014-06-13
Posts: 411

Re: Install instructions not clear!

Hi thanks for the feedback.

Offline

#3 2016-12-13 13:08:56

jbbmedia
Member
Registered: 2016-11-28
Posts: 27

Re: Install instructions not clear!

But is there also a solution for now? wink How do i have to install it (see my questions / problems above)...

Offline

#4 2016-12-13 13:18:18

serphacker
Administrator
Registered: 2014-06-13
Posts: 411

Re: Install instructions not clear!

You did every step perfectly.

If you can't connect to your server on port 7134 you may have a firewall issue or another problems (check serposcope logs).

you can do a netstats command tocheck if serposcope is running and listening  : netstat -lntp

And you should see something like :

tcp        0      0 0.0.0.0:7134        0.0.0.0:*               LISTEN      20907/java


Install is easier on an ubuntu distribution using the .deb package, with a .jar you will have to manage yourself server restart/reboot etc. it's much more complicated.

Offline

#5 2016-12-13 14:37:08

jbbmedia
Member
Registered: 2016-11-28
Posts: 27

Re: Install instructions not clear!

I'm on a VPS and with my know-how about servers i don't think it's possible to change it to Ubuntu. And i also don't know if the host allows me to change that kind of things.

First i just tried to do: netstat -lntp

There was nothing from serposcope, so i tried to start serposcope again. I'm getting:

********
[~]# java -jar serposcope-2.6.0.jar
starting serposcope service
[2016-12-13 15:24:36,647] [NinjaJetty] INFO  c.SerposcopeConf - serposcope.version          : 2.6.0
[2016-12-13 15:24:36,651] [NinjaJetty] INFO  c.SerposcopeConf - serposcope.datadir          : /root/serposcope
[2016-12-13 15:24:36,651] [NinjaJetty] INFO  c.SerposcopeConf - serposcope.logdir           : /root/serposcope/logs
[2016-12-13 15:24:36,651] [NinjaJetty] INFO  c.SerposcopeConf - serposcope.db.url           : jdbc:h2:/root/serposcope/db;MODE=MySQL
[2016-12-13 15:24:36,651] [NinjaJetty] INFO  c.SerposcopeConf - serposcope.db.debug         : false
[2016-12-13 15:24:36,651] [NinjaJetty] INFO  c.SerposcopeConf - serposcope.listenAddress    : 0.0.0.0
[2016-12-13 15:24:36,651] [NinjaJetty] INFO  c.SerposcopeConf - serposcope.listenPort       : 7134
[2016-12-13 15:24:38,056] [NinjaJetty] WARN  o.e.j.s.h.ContextHandler - Empty contextPath
[2016-12-13 15:24:38,118] [NinjaJetty] INFO  s.l.MyNinjaJetty - Trying to start jetty vnull on 0.0.0.0:7134
[2016-12-13 15:24:39,619] [NinjaJetty] INFO  c.Module - now logging to /root/serposcope/logs/2016-12-13.log
********

Then it stops without going to a new command line. And http://ip_of_server:7134 is not working. Maybe with the information above we can do or check something?

Offline

#6 2016-12-13 14:39:34

serphacker
Administrator
Registered: 2014-06-13
Posts: 411

Re: Install instructions not clear!

please full output of netstat -ltnp

output of /root/serposcope/logs/2016-12-13.log

of course you should not kill the "java -jar serposcope.jar" command you launched or it will stop , execute these commands in another terminal.

Offline

#7 2016-12-13 14:50:23

jbbmedia
Member
Registered: 2016-11-28
Posts: 27

Re: Install instructions not clear!

Okay i opened another terminal and did:

[root@xxxxx ~]# netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             Stat                                                                                                                                                             e       PID/Program name
tcp        0      0 0.0.0.0:993                 0.0.0.0:*                   LIST                                                                                                                                                             EN      583/dovecot
tcp        0      0 0.0.0.0:995                 0.0.0.0:*                   LIST                                                                                                                                                             EN      583/dovecot
tcp        0      0 0.0.0.0:587                 0.0.0.0:*                   LIST                                                                                                                                                             EN      804/exim
tcp        0      0 0.0.0.0:110                 0.0.0.0:*                   LIST                                                                                                                                                             EN      583/dovecot
tcp        0      0 127.0.0.1:783               0.0.0.0:*                   LIST                                                                                                                                                             EN      810/spamd -d -c -m
tcp        0      0 0.0.0.0:143                 0.0.0.0:*                   LIST                                                                                                                                                             EN      583/dovecot
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LIST                                                                                                                                                             EN      2421/httpd
tcp        0      0 0.0.0.0:465                 0.0.0.0:*                   LIST                                                                                                                                                             EN      804/exim
tcp        0      0 ip_of_webserver:53            0.0.0.0:*                   LIST                                                                                                                                                             EN      1259/named
tcp        0      0 127.0.0.1:53                0.0.0.0:*                   LIST                                                                                                                                                             EN      1259/named
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LIST                                                                                                                                                             EN      25320/sshd
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LIST                                                                                                                                                             EN      804/exim
tcp        0      0 0.0.0.0:443                 0.0.0.0:*                   LIST                                                                                                                                                             EN      2421/httpd
tcp        0      0 :::7134                     :::*                        LIST                                                                                                                                                             EN      14669/java
tcp        0      0 :::3306                     :::*                        LIST                                                                                                                                                             EN      1153/mysqld
tcp        0      0 :::587                      :::*                        LIST                                                                                                                                                             EN      804/exim
tcp        0      0 :::2222                     :::*                        LIST                                                                                                                                                             EN      14933/directadmin
tcp        0      0 ::1:783                     :::*                        LIST                                                                                                                                                             EN      810/spamd -d -c -m
tcp        0      0 :::465                      :::*                        LIST                                                                                                                                                             EN      804/exim
tcp        0      0 :::21                       :::*                        LIST                                                                                                                                                             EN      836/proftpd
tcp        0      0 :::22                       :::*                        LIST                                                                                                                                                             EN      25320/sshd
tcp        0      0 :::25                       :::*                        LIST     



So there is something like:

tcp        0      0 :::7134                     :::*                        LIST   


Then i did:

[root@srv1a ~]# cat /root/serposcope/logs/2016-12-13.log
[2016-12-13 15:24:39,670] [NinjaJetty] INFO  c.SerposcopeConf - serposcope.version          : 2.6.0
[2016-12-13 15:24:39,670] [NinjaJetty] INFO  c.SerposcopeConf - serposcope.datadir          : /root/serposcope
[2016-12-13 15:24:39,671] [NinjaJetty] INFO  c.SerposcopeConf - serposcope.logdir           : /root/serposcope/logs
[2016-12-13 15:24:39,671] [NinjaJetty] INFO  c.SerposcopeConf - serposcope.db.url           : jdbc:h2:/root/serposcope/db;MODE=MySQL
[2016-12-13 15:24:39,671] [NinjaJetty] INFO  c.SerposcopeConf - serposcope.db.debug         : false
[2016-12-13 15:24:39,671] [NinjaJetty] INFO  c.SerposcopeConf - serposcope.listenAddress    : 0.0.0.0
[2016-12-13 15:24:39,671] [NinjaJetty] INFO  c.SerposcopeConf - serposcope.listenPort       : 7134
[2016-12-13 15:24:42,773] [NinjaJetty] INFO  c.s.s.d.b.MigrationDB - database up to date
[2016-12-13 15:24:42,776] [NinjaJetty] INFO  s.h.CookieEncryptionOverride - Ninja session encryption is using AES / 256 bit.
[2016-12-13 15:24:42,796] [NinjaJetty] INFO  s.s.CronService - startService
[2016-12-13 15:24:42,883] [NinjaJetty] INFO  s.l.MyNinjaJetty - Started jetty vnull on 0.0.0.0:7134
[2016-12-13 15:24:42,883] [NinjaJetty] INFO  s.l.MyNinjaJetty - -------------------------------------------------------
[2016-12-13 15:24:42,883] [NinjaJetty] INFO  s.l.MyNinjaJetty - Ninja application running at
[2016-12-13 15:24:42,883] [NinjaJetty] INFO  s.l.MyNinjaJetty -  => http://0.0.0.0:7134
[2016-12-13 15:24:42,883] [NinjaJetty] INFO  s.l.MyNinjaJetty - -------------------------------------------------------
[2016-12-13 15:24:45,130] [pool-1-thread-1] INFO  s.s.Scheduler - last version 2.6.0 | current version 2.6.0


http://ip_of_server:7134 not working...maybe the information above is helpful to find the solution?

Last edited by jbbmedia (2016-12-13 15:07:36)

Offline

#8 2016-12-13 14:53:12

serphacker
Administrator
Registered: 2014-06-13
Posts: 411

Re: Install instructions not clear!

tcp        0      0 :::7134                     :::*                        LIST                                                                                                                                                             EN      14669/java

serposcope is running, like I said before, probably blocked by firewall.

Please provide ouput of : iptables -L -n

Offline

#9 2016-12-13 15:07:17

jbbmedia
Member
Registered: 2016-11-28
Posts: 27

Re: Install instructions not clear!

I have no idea how i can check the firewall and if the firewall is blocking serposcope. I don't even know if there is a firewall, but probably yes wink.

The output you asked:

[root@xxxxx ~]# iptables -L -n
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Offline

#10 2016-12-13 15:10:18

serphacker
Administrator
Registered: 2014-06-13
Posts: 411

Re: Install instructions not clear!

the command (iptables) you just executed indicate there is no firewall so it doesn't block access to serposcope. There must be something else.

Can you try to do the command from your server : curl http://localhost:7134/

Offline

#11 2016-12-13 15:19:44

jbbmedia
Member
Registered: 2016-11-28
Posts: 27

Re: Install instructions not clear!

Thanks! Then we're already one step further. I just did:


[root@xxxxx ~]# curl http://localhost:7134/
[root@xxxxx ~]#

It's just going to the next command line?

Offline

#12 2016-12-13 15:25:03

serphacker
Administrator
Registered: 2014-06-13
Posts: 411

Re: Install instructions not clear!

strange behavior, can you try :

curl -v http://localhost:7134/; netstat -lntp

Offline

#13 2016-12-13 15:30:24

jbbmedia
Member
Registered: 2016-11-28
Posts: 27

Re: Install instructions not clear!

Thanks again:

[root@xxxxx ~]# curl -v http://localhost:7134/; netstat -lntp
*   Trying ::1...
* Connected to localhost (::1) port 7134 (#0)
> GET / HTTP/1.1
> Host: localhost:7134
> User-Agent: curl/7.45.0
> Accept: */*
>
< HTTP/1.1 303 See Other
< Date: Tue, 13 Dec 2016 15:28:31 GMT
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Date: Tue, 13 Dec 2016 15:28:31 GMT
< Location: /create-admin
< Content-Length: 0
< Server: Jetty(9.2.z-SNAPSHOT)
<
* Connection #0 to host localhost left intact
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 0.0.0.0:993                 0.0.0.0:*                   LISTEN      583/dovecot
tcp        0      0 0.0.0.0:995                 0.0.0.0:*                   LISTEN      583/dovecot
tcp        0      0 0.0.0.0:587                 0.0.0.0:*                   LISTEN      804/exim
tcp        0      0 0.0.0.0:110                 0.0.0.0:*                   LISTEN      583/dovecot
tcp        0      0 127.0.0.1:783               0.0.0.0:*                   LISTEN      810/spamd -d -c -m
tcp        0      0 0.0.0.0:143                 0.0.0.0:*                   LISTEN      583/dovecot
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      2421/httpd
tcp        0      0 0.0.0.0:465                 0.0.0.0:*                   LISTEN      804/exim
tcp        0      0 ip_of_server:53            0.0.0.0:*                   LISTEN      1259/named
tcp        0      0 127.0.0.1:53                0.0.0.0:*                   LISTEN      1259/named
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      25320/sshd
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN      804/exim
tcp        0      0 0.0.0.0:443                 0.0.0.0:*                   LISTEN      2421/httpd
tcp        0      0 :::7134                     :::*                        LISTEN      14669/java
tcp        0      0 :::3306                     :::*                        LISTEN      1153/mysqld
tcp        0      0 :::587                      :::*                        LISTEN      804/exim
tcp        0      0 :::2222                     :::*                        LISTEN      16505/directadmin
tcp        0      0 ::1:783                     :::*                        LISTEN      810/spamd -d -c -m
tcp        0      0 :::465                      :::*                        LISTEN      804/exim
tcp        0      0 :::21                       :::*                        LISTEN      836/proftpd
tcp        0      0 :::22                       :::*                        LISTEN      25320/sshd
tcp        0      0 :::25                       :::*                        LISTEN      804/exim

Offline

#14 2016-12-13 15:34:28

serphacker
Administrator
Registered: 2014-06-13
Posts: 411

Re: Install instructions not clear!

ok so I confirm serposcope is running on your server it just redirected you to /create-admin that's why you see nothing with curl, but if you du curl http://localhost:7134/create-admin you will see some html output.

so the problem is between your pc and your server, but your server doesn't seem to have a firewall so I really don't know where the problem come from, can you try from a different navigator on your computer ? or another computer ?

Offline

#15 2016-12-13 15:54:21

jbbmedia
Member
Registered: 2016-11-28
Posts: 27

Re: Install instructions not clear!

I just did:

[root@xxxxx ~]# curl http://localhost:7134/create-admin

Then indeed it's showing the source code of that page. But actually i don't think the problem is between my computer and the server. It's a brand new and good computer and i am using Firefox / Chrome / IE (also to test websites in). After this post i'll send you the ip in a private message.

But it can not be the case that that port is not reachable from "outside", so i can only come there with "localhost" and not with the ipaddress? So maybe there is a problem or going something wrong?

Offline

#16 2016-12-13 16:39:49

serphacker
Administrator
Registered: 2014-06-13
Posts: 411

Re: Install instructions not clear!

Hello I did try to connect and there is really a firewall/network issue on your side. It comes from your server. More specifically, I think there is a router just before the server which reject the request on port 7134, check with your hoster if there is a firewall to configure in your control panel or somewhere. Only some ports are allowing incoming connections on your server like 22 (ssh) and 80 (http) all others ports are blocked.

Offline

#17 2016-12-13 17:01:12

jbbmedia
Member
Registered: 2016-11-28
Posts: 27

Re: Install instructions not clear!

Thanks a lot. Just made a support ticket at my hoster to ask about it! I'll let you know when i know more...

Offline

#18 2016-12-13 18:35:37

jbbmedia
Member
Registered: 2016-11-28
Posts: 27

Re: Install instructions not clear!

And it's working! Thanks! They opened the incoming and outcombing port 7134 (TCP).

But do i understand good that everytime i want to use Serposcope that i have to open a terminal and i have to execude the command: java -jar serposcope-2.6.0.jar ? Because after opening the port 7134 first it was not working, but after the command "java -jar serposcope-2.6.0.jar" it was. So when i am closing the terminal...does that mean that serposcope is also closed after it? (just tested it, but it looks like now it's still working after closing the terminal)

And you can also work with cronjobs, i thought? But can the cronjob do his work in a situation like above, because i have not always the terminal open.

Or does it just need a restart after a httpd restart or server restart? How i have to see that?

Now i'll try to use a mysql database on that server, so maybe later on more questions wink.

Offline

#19 2016-12-15 07:42:41

serphacker
Administrator
Registered: 2014-06-13
Posts: 411

Re: Install instructions not clear!

serposcope won't restart automatically with the .jar version, you will have to handle it yourself.

Only the .deb package (work on ubuntu/debian) and .exe support daemon/service mode. It will automatically start at each reboot.

Offline

#20 2016-12-15 11:33:16

jbbmedia
Member
Registered: 2016-11-28
Posts: 27

Re: Install instructions not clear!

Ah okay...yeah i wanted to run serposcope on a server, because then every time the cronjob could run. If i am running serposcope on my computer and my computer is off then the cronjob will not do its job.

It was not possible to make a cronjob (running every minute or something) and that cronjob is checking if serposcope is running. If it's not the case then the cronjob will sart serposcope again?

I still dont have the software running, but the other questions i'll put in seperate topics.

Offline

#21 2019-01-05 09:49:27

mbshagun
Member
Registered: 2019-01-05
Posts: 2

Re: Install instructions not clear!

how to download that jar file of serposcope that can run on my terminal

Offline

#22 2019-03-28 14:30:12

Davide
Member
From: CH
Registered: 2016-03-24
Posts: 80
Website

Re: Install instructions not clear!


easy-develope.ch ¦ kontakt@easy-develope.ch

Offline

Board footer