Hey Leute,
kann man bei nem Linux Root die MSQL-MySQL und DBI Perl irgendwie testen das die vernünpftig laufen und installiert sind?
Gibts da Konsolen Befehle für?
Beiträge von kracher
-
-
Es sieht mir eher danach aus als wenn mit meinen angegebenen Ports etwas nicht stimmt!
Die stats und der Gameserver laufen auf einer Adresse!
Der Listen port in der conf-Datei steht jetzt auf 27500!
In der Autoexec des Gameserver steht:
log on
logaddress_add IP.DES.SERVER 27500ist daran etwas falsch?
Wenn ich die hlstats.pl starte dann sagt er mir das die Adresse schon in benutzung ist! -
hlstats.php:
Code
Alles anzeigen/// /// Database Settings /// // DB_NAME - The name of the database define("DB_NAME", "hlstats"); // DB_USER - The username to connect to the database as define("DB_USER", "MEINUSER"); // DB_PASS - The password for DB_USER define("DB_PASS", "MEINPASS"); // DB_ADDR - The address of the database server, in host:port format. // (You might also try setting this to e.g. ":/tmp/mysql.sock" to // use a Unix domain socket, if your mysqld is on the same box as // your web server.) define("DB_ADDR", "localhost"); // DB_TYPE - The database server type. Only "mysql" is supported currently define("DB_TYPE", "mysql"); // DB_PCONNECT - Set to 1 to use persistent database connections. Persistent // connections can give better performance, but may overload // the database server. Set to 0 to use non-persistent // connections. define("DB_PCONNECT", 0); /// /// General Settings /// // INCLUDE_PATH - Filesystem path to the hlstatsinc directory. This path can // be specified relative to hlstats.php by prepending ./ or // ../ If the path begins with a / then it is taken as a // full absolute filesystem path. However if the path begins // with none of these constructs, PHP will search your // include_path (as set in php.ini) (probably NOT the current // directory as might be expected!). // Example paths: // 1) /usr/local/apache/hlstatsinc // (absolute path) // 2) ../hlstatsinc // -) ./hlstatsinc // (paths relative to hlstats.php) // 3) hlstats/include // (path relative to include_path) // Under Windows, make sure you use forward slash (/) instead // of back slash (\). define("INCLUDE_PATH", "/home/c/clanhp/stats/hlstatsinc"); // DELETEDAYS - How many days the Event History covers. Must match the value // of DeleteDays in hlstats.conf. define("DELETEDAYS", 5); // MODE - Sets the player-tracking mode. Must match the value of Mode in // hlstats.conf. Possible values: // 1) "Normal" - Recommended for public Internet server use. // Players will be tracked by Unique ID. // 2) "NameTrack" - Useful for shared-PC environments, such as // Internet cafes, etc. Players will be tracked // by nickname. EXPERIMENTAL! // 3) "LAN" - Useful for LAN servers where players do not // have a real Unique ID. Players will be tracked // by IP Address. EXPERIMENTAL! define("MODE", "Normal"); // PLATFORM - Sets the operating system being used. Recognised values: // "POSIX" - Any variant of Linux or Unix. // "Windows" - Any variant of Microsoft Windows. // Most parts of HLstats should work on any platform, but this // setting allows for some OS-specific workarounds etc. define("PLATFORM", "POSIX"); // // ---- NO NEED TO EDIT BELOW THIS LINE ---- //
conf-Datei:
Code
Alles anzeigen## ## HLstats Configuration File ## # # This file is used by hlstats.pl, hlstats-awards.pl and hlstats-resolve.pl. # Note that many options can be overridden on the command line; try running with # the --help switch for details of available command line options. # ## ## Database Settings ## # DBHost - Database server "address" or "address:port". Address can be an IP or # a hostname. The default MySQL port is 3306 (tcp). DBHost "localhost" # DBUsername - User to connect to the database as. DBUsername "MEINUSER" # DBPassword - Password for the database user. DBPassword "MEINPW" # DBName - Name of the database to use. DBName "hlstats" # DBLowPriority - Use INSERT DELAYED and DELETE LOW_PRIORITY for some queries. # This can give better performance, but may make statistics less # "real time". 1=on 0=off DBLowPriority 0 ## ## UDP Socket Settings (should match "logaddress ip port" on the game servers) ## # BindIP - IP address to bind to (leave empty to use all interfaces). BindIP "" # Port - Port to listen on for log data from the game servers. Port 27015 ## ## DNS Settings ## # DNSResolveIP - Resolve player IP addresses to hostnames. Requires a working # DNS setup (on the box running hlstats.pl). 1=on 0=off DNSResolveIP 1 # DNSTimeout - Time in seconds to wait for DNS queries to complete before # cancelling. You may need to increase this if on a slow connection # or if you find a lot of IPs are not being resolved. However, # while hlstats.pl is waiting for an IP to resolve it cannot be # parsing log data. DNSTimeout 5 ## ## Rcon Settings ## # Rcon - Allow HLstats to send Rcon commands to the game servers. 1=on 0=off Rcon 1 # RconIgnoreSelf - Ignore (do not log) Rcon commands originating from the same # IP as the server being Rcon'd. (Useful if you run any kind of # monitoring script which polls the server regularly by Rcon.) # 1=on 0=off RconIgnoreSelf 0 # RconRecord - Sets whether to record Rcon commands to the Admin event table. # This can be useful to see what your admins are doing. But if you # run programs like PB it can also fill your database up with a lot # of useless junk. # 1=on 0=off RconRecord 1 ## ## General Settings ## # MailTo - E-mail address to mail database errors to. (See also MailPath.) MailTo "" # MailPath - Path to the 'mail' program -- usually /bin/mail MailPath "/bin/mail" # Mode - EXPERIMENTAL: Sets the player-tracking mode. # Possible values: # Normal - Recommended for public Internet server use. # Players will be tracked by WON ID. # NameTrack - Useful for shared-PC environments, such as # Internet cafes, etc. Players will be tracked # by nickname. EXPERIMENTAL! # LAN - Useful for LAN servers where players do not # have a real WON ID. Players will be tracked # by IP Address. EXPERIMENTAL! # ++ Note: Make sure you change the setting of MODE at the top of # hlstats.php, as well. Mode Normal # MinPlayers - Specifies the minimum number of players required in the server # for most player events (objectives, frags, etc.) to be recorded. # This prevents players from hopping on an empty server and # boosting their skill rating by capturing the flag, etc., with no # opposition. (Default is 2 players required on the server.) MinPlayers 2 # SkillMaxChange - Specifies the maximum number of skill points a player can # gain at one time through frags. Because players with low # skill ratings gain more for killing players with high skill # ratings, this cap is needed to prevent e.g. a player with a # skill rating of '100' killing a player with a skill rating of # '2000' and therefore gaining several hundred or thousand # skill points. Instead they cannot gain more than the value # specified here. (Default is 100 skill points maximum change.) SkillMaxChange 100 # DeleteDays - HLstats will automatically delete history events from the # events tables when they are over this many days old. # This is important for performance reasons. Set lower if you # are logging a large number of game servers or find the load on # the MySQL server is too high. Don't forget to also change the # DELETEDAYS define at the top of hlstats.php. # ++ Note: Make sure you change the setting of DELETEDAYS at the # top of hlstats.php, as well. DeleteDays 5 # UseTimestamp - Set to 0 (the default) to use the current time on the database # server for the timestamp when recording events. Set to 1 to use # the timestamp provided on the log data. Unless you are # processing old log files on STDIN, you probably want to set # this to 0; otherwise you will need to ensure that the clocks on # your game servers are accurate. 1=on 0=off UseTimestamp 0 # DebugLevel - Set this to 1 to have debugging information printed on stdout. # Set higher for even more debugging information. Set to 0 for # quiet operation. It is recommended that you set this to 1 when # first configuring HLstats, to help diagnose any problems. DebugLevel 1
-
Nach setzen der Rechte bleibt es leider gleich!
Datei habe ich wie folgt hochgeladen:
html/stats/stats.php und den Image-Ordner (also erreichbar fürs Web)Rest in den Ordner Stats quasi vor dem Ordner html also nicht erreichbar fürs Web, so wie beschrieben!
-
Hey Leutz,
habe da leichte Probleme bei der Installation von HLStats, und zwar:
Datenbank ist angelegt, er greift in soweit auch drauf zu, soll heißen ich kann mich als Admin einloggen.
Jetzt habe ich einen Server angelegt, möchte ich mir jetzt aber die Livestats dieses Server anschauen kommt folgendes:
In der obersten Reihe:
Parse error: parse error in /home/c/clanhp/stats/hlstatsinc/hlquery_funcs.inc on line 3dann kommt halt das normale Banner und so, und als letztes dann:
Fatal error: Call to undefined function: source_a2s_info() in /home/c/clanhp/stats/hlstatsinc/live_stats.inc on line 88Hmpf, was hab ich da falsch gemacht?
-
Danke erstmal für die fixen antworten.
Naja, als Root-Noob (gg) ist das sicherlich nicht einfach, aber man lernt ja nie aus.
Das Problem mit den Server Starten als Root möchte ich auf jedenfall umgehen, aber wie lege ich am besten einen Benutzer an, mit dem ich dann auch ftp und shell zugriff habe? Ich meine bei VISAS kann ich einem Benutzer doch einen Shell Zugriff gewähren oder auch nicht! Nur konnte ich mich bis jetzt irgendwie nicht dort einloggen!Was ich genau machen will steht ja oben schon beschrieben, frage ist nur, ob ich für Gameserver, Teamspeak und Homepage jeweils einen eigenen Benutzer anlegen soll.
Was die Domainfrage betrifft, so haben die Benutzer bei Visas wohl erst einen FTP Zugriff, wenn bei Ihnen eine Art von Subdomain zugewiesen wurde. Zumindest hat man mir das bei der Hotline so erklärt! Wäre dann ja diese Art von web23.serverkom.........
Wäre super wenn mir da echt jemand weiterhelfen könnte, ich weiss ja das das Noobi-Fragen sind!
Also quasi, wie richtet man einen Root-Server vernünpftig ein als sehr kurze Anleitung!
Ich bin für jeden Tip echt dankbar!
-
Hey Leute, ich brauche nochmals eure Hilfe!
Was wir haben ist folgendes:
Suse Linux 9.0 Dedicated Root Server mit VISAS!Was wir dort laufen lassen möchten ist ein Gameserver, ein Teamspeak Server, Stats und natürlich auch eine Homepage, die aber nicht soooo viele Hits haben wird. Auch auf Teamspeak sind immer nur ein paar Leute, dürfte also von daher kein Problem sein.
Nun zu meiner Frage:
Wie richtet man am besten so einen Server ein?Ich habe es heute schon geschafft als völliger Neuling einen CS:Source Gameserver zum laufen zu bringen. Was mir aber nicht klar ist, ich musste erstmal bei VISAS einen Benutzer anlegen um dann auch Zugriff per FTP auf meinen Gameserver zu haben. Allerdings habe ich es nicht geschafft, mich nur mit diesem Benutzer per Shell auf meinem Server einzuloggen. Habe ich beim anlegen etwas falsch gemacht? Per Root-Zugriff geht das Problemlos. Mir wäre es aber lieber wenn ich mich nicht immer als Root einloggen muss, um mal was am Gameserver zu machen.
Da wir noch keine Domain mitbestellt haben, musste ich ja erstmal sowas wie eine virtuelle Domain anlegen, nennen wir sie xyz, die Domain lautete also xyz.de. Jetzt gibt es also eine Art Sub-Domain die da lautet xyzde.12345.serverkompentz.de! Warum das DE hinter xyz? kann ich keinen Benutzer anlegen wo die Subdomain nur xyz.12345.Serverkompetenz.de lautet?
Wie sollte ich mein Vorhaben überhaupt am besten starten? Für Homepage, Teamspeak und Gameserver jeweils einen eigenen Benutzer anlegen oder doch alles unter einem Benutzer machen?
Und zu guter letzt noch eine Frage zum starten vom Gameserver. Es soll einen Zusatz geben bei dem der Gameserver selber neu startet wenn er crasht, wie lautet dieser, bzw. könntet ihr mir hier mal die beste Option mal komplett posten incl. screen, Autoneustart und Autoupdate? Damit wäre mir schon sehr viel geholfen!
Achja, was mir noch einfällt. Gibt es sowas wie ein kleines PHP-Admin-Pannel, was leicht zu installieren ist, für z.B. Start und Stop vom Gameserver?
Warte gespannt auf eure Tipps, da man mir letztes mal schon so nett weitergeholfen hat!
Euer Kracher
Nachtrag:
Ich habe den Gameserver mit der Steam-Datei von 7,5 MB aufgesetzt da ich überall gelesen habe das das die beste sein soll. Jetzt habe ich hier gelesen von wegen Steam-Account registrieren. Muss ich dies für den Server tun? Ich meine, der läuft ja auch so, oder? -
Oh man Leute, ich bin mir da echt so unsicher! Hat nicht schon jemand Erfahrungen mit diesem Server gemacht? Jetzt habe ich schon wieder gehört das man möglichst nicht alles auf einem Server installieren soll, also Homepage, Gameserver und Teamspeak. Was mich da abschreckt sind die 12 Monate Vertragslaufzeit, wenns nachher nur noch lagt aufm Gameserver dann hab ich den Kram 12 Monate an der Backe.
Dumm ist nur, alle anderen sind mir doch wesentlich zu teuer. *hmpf* -
Wird nen CS:Source Server werden!
-
Ahhh super, sollte ich nicht mehr weiterkommen dann melde ich mich. 1000 Dank erstmal an euch alle!
-
Also, so wie es aussieht werden wir den Kram wohl bestellen. Günstiger gehts net! Ich weiß zwar nicht wie problematisch es ist sowas einzurichten, da ich es vorher noch nie gemacht habe, wenn ich probleme habe dann hoffe ich das jemand von euch mir nen bissl unter die arme greifen kann.
Mal sehen, werde das mit meinen jungz hier mal abklären! -
Meint ihr wirklich das das reicht? ich bin echt kurz davor den zu bestellen! Ich meine die 50 GB Traffic sind ja kein Problem da wir 200 GB inkl. haben würden. ich habe nur angst das das teil dann ständig lagt und die Laufzeit ist natürlich ein Jahr. Mir geht es nur darum das wir endlich alles selber machen können, kein bitte bitte und warten mehr bis irgendjemand meint endlich unsere Wünsche umzusetzen!
Achja, vielleicht kennt sich jemand damit aus, wo bekomme ich denn das File zum CS:Source Server erstellen. Das müsste ja dann so ein kleines Update-File sein oder? -
Wollte hier mal nachhaken was son CS:Source Server für Mindestanforderungen braucht, so ca. 12 - 16 Slots!
Da Strato gerade ein gutes Angebot hat, bin ich mir da nicht sicher ob das ausreicht!
Was wir vorhaben ist folgendes:
Gameserver 12 - 16 Slots
Teamspeak Server 12 Slots
ClanpageDas soll auf diesem Server laufen!
Hier mal der Link mit den Daten:
http://www.strato.de/server/power/index.htmlVielleicht könnt ihr mir da mal weiterhelfen!
Danke im vorraus!