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

Help guide Error Linux not Windows (Viewing this before you posted a new thread)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kikotte
Member
Join Date: Oct 2013
Old 01-05-2014 , 10:14   Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #1

How it works in this thread. This is a thread to help you to do you check if your error is in this list if it is not in the toolbar item you and write what is wrong, we will try to help you then when we succeed in helping you, we write your wrong and how to fix it in this list.

Post: Not just error.


Quote:
Error
Quote:
Player trend graph (Do not want to see the presence status.)
Fix
Code:
/var/www/hlstats.kikotte.tk/public_html/hlstatsimg/graph

cd /var/www/[Web name]/hlstatsimg
chmod -R 777 graph
Quote:
Error
Quote:
Geo IP HLstatsX Flags/Map
ERROR: GeoIP method set to binary file lookup but /opt/tf2server/tf2/scripts/GeoLiteCity/GeoLiteCity.dat NOT FOUND
Fix
Code:
/opt/tf2server/tf2/scripts/GeoLiteCity

cd /opt/tf2server/tf2/scripts/GeoLiteCity

sh install_binary.sh

sudo perl -MCPAN -e 'install Geo::IP::PurePerl'
Quote:
Error
Quote:
Mysql database would not work.
Fix
Code:
sudo perl -MCPAN -e 'install DBD::mysql'
For other errors, you can get help through. (I can not be all wrong.)

Skype: as.55.wi94 (If you add me. Write the following when you send to me. (Your GMT Your country What games you come in from tf2))
Email: [email protected]

Will be more things here.
The point is not if I make a mistake in English the point is to fix the error.

Last edited by kikotte; 01-05-2014 at 11:03. Reason: The point is not if I make a mistake in English the point is to fix the error.
kikotte is offline
Send a message via Skype™ to kikotte
kikotte
Member
Join Date: Oct 2013
Old 01-05-2014 , 10:57   Re: Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #2

EXAMPLE

Quote:
/opt/tf2server/tf2/scripts hlstats.conf
Code:
DBHost "192.168.0.159"   # Ip to your Database // If the database is in the same computer. 172.0.0.1 & localhost = local
DBUsername "hlstats"     # Database Username
DBPassword "test"        # Database Password
DBName "hlstats"         # Database name

BindIP ""

Port 27500 # Port default

CpanelHack 0

EventQueueSize 0

DebugLevel 1              # Set it to 0 if everything works fine.
Quote:
/opt/tf2server/tf2/tf/cfg server.cfg

Add them here things. Viewing if you have it in your config first!
Code:
// Log Settings //

// Enables logging to file, console, and udp < on | off >.
log on
// Log server information to only one file.
sv_log_onefile 0
// Log server information in the log file.
sv_logfile 1
// Log server bans in the server logs.
sv_logbans 1
// Echo log information to the console.
sv_logecho 1

logaddress_add 192.168.0.159:27500
kikotte is offline
Send a message via Skype™ to kikotte
kikotte
Member
Join Date: Oct 2013
Old 01-05-2014 , 11:27   Re: Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #3

Cron jobs

Quote:
Write To come in here, you must be root.
Code:
sudo crontab -e
Code:
*/5 * * * * cd /opt/tf2server/tf2/scripts/ && ./run_hlstats start >/dev/null 2>&1
15 00 * * * cd /opt/tf2server/tf2/scripts/ && ./hlstats-awards.pl >/dev/null 2>&1

Last edited by kikotte; 01-05-2014 at 11:27.
kikotte is offline
Send a message via Skype™ to kikotte
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-05-2014 , 11:51   Re: Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #4

Quote:
Originally Posted by kikotte View Post
Cron jobs



Code:
*/5 * * * * cd /opt/tf2server/tf2/scripts/ && ./run_hlstats start >/dev/null 2>&1
15 00 * * * cd /opt/tf2server/tf2/scripts/ && ./hlstats-awards.pl >/dev/null 2>&1
I went to my /opt/ directory and it's empty.

I'm basically here because of two things:

1. GeoIP not adding country flags to players
2. Daily Awards not running

I have my HLStats stuff (like hlstats-awards.pl) in /var/www/hlstats. GeoIP stuff is in /var/www/scripts

This is my cronjob located in the "cron.daily" cronjobs folder:

PHP Code:
15 00 * * * cd /var/www/scripts/ && ./hlstats-awards.pl 
Do I need the "devnull" stuff?

I also have the hlstats cron job set up in cron.hourly

Not entirely sure if I did it correctly because I followed a 3rd party guide on installing it. Also did the same for GeoIP, so if you have proper installation instructions for GeoIP to get the country flags working, that'd be sweet.

Last edited by 404UserNotFound; 01-05-2014 at 11:53.
404UserNotFound is offline
kikotte
Member
Join Date: Oct 2013
Old 01-05-2014 , 12:22   Re: Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #5

Quote:
Originally Posted by abrandnewday View Post
I went to my /opt/ directory and it's empty.

I'm basically here because of two things:

1. GeoIP not adding country flags to players
2. Daily Awards not running

I have my HLStats stuff (like hlstats-awards.pl) in /var/www/hlstats. GeoIP stuff is in /var/www/scripts

This is my cronjob located in the "cron.daily" cronjobs folder:

PHP Code:
15 00 * * * cd /var/www/scripts/ && ./hlstats-awards.pl 
Do I need the "devnull" stuff?

I also have the hlstats cron job set up in cron.hourly

Not entirely sure if I did it correctly because I followed a 3rd party guide on installing it. Also did the same for GeoIP, so if you have proper installation instructions for GeoIP to get the country flags working, that'd be sweet.
Scripts should not be in the www folder.
What you have now is a big risk that you will get hacked.

Do you have skype then it will be faster to get a response.
kikotte is offline
Send a message via Skype™ to kikotte
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-05-2014 , 12:51   Re: Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #6

Quote:
Originally Posted by kikotte View Post
Scripts should not be in the www folder.
What you have now is a big risk that you will get hacked.

Do you have skype then it will be faster to get a response.
No, I don't

Where do I place the scripts?

EDIT: I'm guessing I should set up folders so I have a "opt/tf2server/tf2/scripts" directory.

Last edited by 404UserNotFound; 01-05-2014 at 13:03.
404UserNotFound is offline
kikotte
Member
Join Date: Oct 2013
Old 01-05-2014 , 13:37   Re: Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #7

Quote:
Originally Posted by abrandnewday View Post
No, I don't

Where do I place the scripts?
Have your tf2 or cs server on a different computer?

For you can not have that www folder for people to access your config then. Then it does not have permissions there and can not work then.

I think it's good to put it in. /opt/tf/scripts

chmod +x hlstats-awards.pl
chmod +x run_hlstats
kikotte is offline
Send a message via Skype™ to kikotte
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-05-2014 , 13:43   Re: Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #8

Quote:
Originally Posted by kikotte View Post
Have your tf2 or cs server on a different computer?

For you can not have that www folder for people to access your config then. Then it does not have permissions there and can not work then.

I think it's good to put it in. /opt/tf/scripts

chmod +x hlstats-awards.pl
chmod +x run_hlstats
Everything is on the dedicated server box. HLStats runs from it, SourceBans runs from it, the servers run from it.
404UserNotFound is offline
kikotte
Member
Join Date: Oct 2013
Old 01-05-2014 , 13:48   Re: Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #9

Quote:
Originally Posted by abrandnewday View Post
Everything is on the dedicated server box. HLStats runs from it, SourceBans runs from it, the servers run from it.
But where is the steam and tf2?

Last edited by kikotte; 01-05-2014 at 13:49.
kikotte is offline
Send a message via Skype™ to kikotte
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-05-2014 , 14:02   Re: Help guide Error Linux not Windows (Viewing this before you posted a new thread)
Reply With Quote #10

Quote:
Originally Posted by kikotte View Post
But where is the steam and tf2?
All on the box.

/home/abrandnewday/Steam
/home/abrandnewday/SteamCMD
/home/abrandnewday/gameserver/tf2

Everything is in my home/abrandnewday folder

Site runs out of /var/www/

Scripts are now in /opt/scripts
404UserNotFound 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 06:25.


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