AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HLstatsX:CE (https://forums.alliedmods.net/forumdisplay.php?f=156)
-   -   Installation - Activeperl - other questions (https://forums.alliedmods.net/showthread.php?t=240864)

Poorlaggedman 05-23-2014 13:43

Installation - Activeperl - other questions
 
I'm not understanding this Activeperl stuff..... Am I installing this on the web server???? Or my computer? What's even the point of it.

Edit: I believe it's already pre-installed in the cpanel interface for the host that I'm using. At least there is an option for "perl modules." In it I can search for perl modules, whatever those are. I see I seem to have the correct ones installed... I think

I'm very confused when it tells me to "run" anything on my webserver. How the hell do I do that.

I've gotten fairly far along. I've also installed sourcebans following a youtube video https://www.youtube.com/watch?v=MI-Vf-RtXFk that went step by step. That was easy and works great.


I've been messing with this off and on for about a month an hour or so a week. So confusing.

Poorlaggedman 05-23-2014 14:20

Re: Installation - Activeperl - other questions
 
I'm getting dispirited. It seems like you need to have serious development skills to do this sort of installation. I'm just a guy with a server trying to create fun.

I went over this previous thread that has similar symptoms as mine but still very confused.
https://forums.alliedmods.net/forumdisplay.php?f=156
In-game when you type "rank" it does nothing. The chat does not show up in-game though.

And I'm not sure where to find error logs for anything other than for sourcemod.

Also WTF... is a Daemon.

I'm using a 3rd party HL mod with this plugin. I've seen other servers use it in the past so I know it can work.

Here's what I've done so far not particularly in this order:

Uploaded the stuff to the webserver including the scripts folder which is not in the public html part
Uploaded the sourcemod parts to the game server.
Created a sql Database, added a user to it and gave it all permissions.
And remoted that database to allow access from the server.
Uploaded the install.sql and it successfully loaded.
Added some lines to the server.cfg under "log on" with my webserver IP:port
Configured a file in the scripts folder...
Added the cron job

Spent six hours on it today. Gotten a headache.


Thanks

jonnzus 05-27-2014 10:01

Re: Installation - Activeperl - other questions
 
That daemon is perl script whose job is to parse your hlds/scrds server's logs and insert data to your mysql database. It have to run always when your game server is running. That file is located in scripts folder, I don't remember it's name but it was some .pl file. I don't really know can you even run that script from cpanel. You can test if daemon is running from /hlstats.php?mode=admin&task=tools_perlcontrol , if you reload configurations and get something like this then daemon should be running.
  • Sending Command to HLstatsX: CE Daemon at localhost:27500 — 50 bytes OK
  • Waiting for Backend Answer...recieving 29 bytes in 1 packets...OK
  • Backend Answer: OK, EXECUTING COMMAND: RELOAD
  • Closing connection to backend...OK

Poorlaggedman 05-27-2014 10:51

Re: Installation - Activeperl - other questions
 
Hi.

Thanks for the response, I really want to get this working so I can my fledgling little mod community.

I got a response from my server host that simply said

"When setting up hlstatsx on our webhosting you would need to use the cron job method."

This is what I get

Sending Command to HLstatsX: CE Daemon at localhost:27500 — 50 bytes OK
Waiting for Backend Answer...recieving 0 bytes in 0 packets...OK
No packets received — check if backend dead or not listening on 127.0.0.1:27500

Closing connection to backend...OK


I gather from other threads on here that this means the daemon is not started? Not sure how i'd start it. Or install activeperl. And since my host said I have to use a cron job method, not sure about that either.

It looks like I followed the "Cron job" method already actually from here. It has no mention of active perl.

It talks about Putty No idea what that is either or how to install it on Cpanel. But it seems to be used to create the hlstats.conf Which I already have and configured in my scripts folder on the webserver. And then to run run_hlstats

http://tutorial.mooash.com/2011/07/2...unity-edition/

jonnzus 05-27-2014 16:53

Re: Installation - Activeperl - other questions
 
Putty is tool which is used as ssh-client, usually when people have vps or dedicated server they manage their server with ssh connection. Your problem is that you don't have ssh access so you have to do things by your own way. Can you take screenshot from your cronjob settings?
http://en.wikipedia.org/wiki/Secure_Shell

Poorlaggedman 05-27-2014 18:02

Re: Installation - Activeperl - other questions
 
This look good?

I literally copied and pasted from http://tutorial.mooash.com/2011/07/2...unity-edition/

http://i134.photobucket.com/albums/q...ps0db94991.jpg

Poorlaggedman 05-27-2014 18:09

Re: Installation - Activeperl - other questions
 
HAHAHA... oh man I'm dumb.

I changed it to this and the HL stats "Daemon control" says the same thing it did earlier, if it even matters for this method.

Still not working though stats shows 0/0. Tried restarting server already and double checking some stuff. Is there any way to know if "run_hlstats" is being ran?

http://i134.photobucket.com/albums/q...ps824244b1.jpg



I have cpanel hack set to 1 and Bindip to ""
DBHost "(mywebserver IP):3306"
in my HLstats.conf
3306 simply because it says that's default and I have no clue.


I have Day of Defeat source setup as the game at the control panel because I'm using a 3rd party mod. Is it possible that this could cause a problem? I don't see any way to add a mod to it.
http://plm.branspace.com/hlstatsx/web/hlstats.php

The source plugin is properly installed and I have
log on
logaddress_add (mywebhostIP):27500
In my server.cfg
In addition to
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0


under server logging in the server.cfg

"log on" was already there but from what I understand it can only be there once.

Webserver is also remoted to game server and sourcebans works properly.



Update:

Cron jobs seem to be running. Except it says

/usr/local/cpanel/bin/jailshell: ./run_hlstats: Permission denied
In the e-mail I get when one runs every 5 minutes

Update
Cron job ran. I changed the permission of the run_hlstats file to allow the user to execute it.
It now says:
HLstatsX:CE daemon control
http://www.hlxce.com
---------------------------
Attempting to start HLstatsX:CE daemon on port 27015...
Daemon successfully started on port 27015



Still no stats.

I gave executable permission to
hlstats-awards.pl
hlstats.pl
hlstats-resolve.pl
run_hlstats

Inside the scripts/logs
Quote:

DBI connect('plmbrans_hlstatsx:208.100.60.18','pl mbrans_Poorlag',...) failed: Host '208.100.60.18' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' at .//HLstats.plib line 160.
: - MYSQL:
Can't connect to MySQL database 'plmbrans_hlstatsx' on '208.100.60.18'
Server error: Host '208.100.60.18' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

YamiKaitou 05-28-2014 06:41

Re: Installation - Activeperl - other questions
 
Tell the daemon to use localhost as the DB host instead

Poorlaggedman 05-28-2014 10:49

Re: Installation - Activeperl - other questions
 
I set
DBHost "localhost"

In hlstats.conf

CpanelHack 0

Already had
define("DB_ADDR", "localhost");
In my config.php in my web files



It doesn't seem to have changed anything.

web/hlstats.php?mode=admin&task=tools_perlcontrol

Still shows


Sending Command to HLstatsX: CE Daemon at localhost:27500 — 50 bytes OK
Waiting for Backend Answer...recieving 0 bytes in 0 packets...OK
No packets received — check if backend dead or not listening on 127.0.0.1:27500
Closing connection to backend...OK


I should mention I'm not sure where that IP in bold is at all. Not familiar with it.

And when I enable the cron job e-mails I still get
HLstatsX:CE daemon control
http://www.hlxce.com
---------------------------
Daemon is already running on port 27015


Is there a way to restart it if that would be required? If it's already running without "localhost" setting

YamiKaitou 05-28-2014 11:49

Re: Installation - Activeperl - other questions
 
Do you have SSH access to the webhost?

127.0.0.1 is the localhost, which means the same machine.


All times are GMT -4. The time now is 21:04.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.