Raised This Month: $51 Target: $400
 12% 

Installation - Activeperl - other questions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Poorlaggedman
Junior Member
Join Date: Apr 2014
Old 05-23-2014 , 13:43   Installation - Activeperl - other questions
Reply With Quote #1

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.

Last edited by Poorlaggedman; 05-23-2014 at 17:15.
Poorlaggedman is offline
Poorlaggedman
Junior Member
Join Date: Apr 2014
Old 05-23-2014 , 14:20   Re: Installation - Activeperl - other questions
Reply With Quote #2

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

Last edited by Poorlaggedman; 05-23-2014 at 17:54.
Poorlaggedman is offline
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 05-27-2014 , 10:01   Re: Installation - Activeperl - other questions
Reply With Quote #3

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
__________________
Quote:
367. Everyone's copyright will be broken. No exceptions.

Last edited by jonnzus; 05-27-2014 at 10:01.
jonnzus is offline
Poorlaggedman
Junior Member
Join Date: Apr 2014
Old 05-27-2014 , 10:51   Re: Installation - Activeperl - other questions
Reply With Quote #4

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/

Last edited by Poorlaggedman; 05-27-2014 at 11:15.
Poorlaggedman is offline
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 05-27-2014 , 16:53   Re: Installation - Activeperl - other questions
Reply With Quote #5

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
__________________
Quote:
367. Everyone's copyright will be broken. No exceptions.
jonnzus is offline
Poorlaggedman
Junior Member
Join Date: Apr 2014
Old 05-27-2014 , 18:02   Re: Installation - Activeperl - other questions
Reply With Quote #6

This look good?

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


Last edited by Poorlaggedman; 05-27-2014 at 19:09.
Poorlaggedman is offline
Poorlaggedman
Junior Member
Join Date: Apr 2014
Old 05-27-2014 , 18:09   Re: Installation - Activeperl - other questions
Reply With Quote #7

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?





I have cpanel hack set to 1 and Bindip to ""
DBHost "(mywebserver IP)306"
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'

Last edited by Poorlaggedman; 05-27-2014 at 20:22.
Poorlaggedman is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-28-2014 , 06:41   Re: Installation - Activeperl - other questions
Reply With Quote #8

Tell the daemon to use localhost as the DB host instead
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Poorlaggedman
Junior Member
Join Date: Apr 2014
Old 05-28-2014 , 10:49   Re: Installation - Activeperl - other questions
Reply With Quote #9

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

Last edited by Poorlaggedman; 05-28-2014 at 11:08.
Poorlaggedman is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-28-2014 , 11:49   Re: Installation - Activeperl - other questions
Reply With Quote #10

Do you have SSH access to the webhost?

127.0.0.1 is the localhost, which means the same machine.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:32.


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