English   German
  #1  
Old 12-01-2003, 00:29
TDrop TDrop is offline
-= TeamSpeak User =-
 
Join Date: Jan 2003
Location: UK
Posts: 7
TDrop is on a distinguished road
Hidden Servers

Hi,

I'm having problems using WebPost - I am running one TS Server on a Linux box but it doesnt seem to be updating the db correctly. When I go to the webshow.php URL it says that I have Hidden Servers but no visible ones. The TeamSpeak Server is up and running and the IP of the server that it is running on has permission to access the db. Any ideas as to why its not showing the server info?
http://www.stormraptors.co.uk/webshow.php

The machine with Webpost on is running;
PHP version 4.2.3
MySQL version 3.23.54

The server.log file doesnt mention webpost at all.

12-01-03 15:11:22,ALL,Info,server, Server startup initialized
12-01-03 15:11:22,ALL,Info,server, Server version: 2.0.18.32 Linux^M
OK
12-01-03 15:11:22,ALL,Info,server, Starting server with port: 8767
12-01-03 15:11:27,ALL,Info,server, Server startup finished
12-01-03 15:11:27,WARNING,Info,server, TeamSpeak Server daemon activated

If I telnet to port 51234 on the TSServer I get a [TS] prompt, and I am also running a MYSQL Forum on the webpost server so I dont think there are any conectivity problems there.

Thanks,

TD

Last edited by TDrop; 13-01-2003 at 21:36.
Reply With Quote
  #2  
Old 12-01-2003, 21:58
TDrop TDrop is offline
-= TeamSpeak User =-
 
Join Date: Jan 2003
Location: UK
Posts: 7
TDrop is on a distinguished road
Could this be a MYSQL problem? I dont know the first thing about MYSQL or PHP but looking through the webpost.php file I found;
$___r= mysql_connect($dblink,$dbuser,$dbpw);
_DBError($___r);

I tried doing; `mysql connect $dblink ,$dbuser`at the command prompt (and all other combinations etc) and it didnt work. However I was able to do `mysql -u$dbuser` and that took me to a mysql prompt. `connect $dbname` worked. Is that normal? Or does it mean I have some other version of MYSQL running?

Another thing Im guessing might be causing it is my server.ini file on the TSServer. I found the following info in the webpost readme.txt;

Edit the [WebStatus] section of your tsserver.ini. Example:

[WebStatus]
Active=1
TeamSpeakSite_Active=1
TeamSpeakSite_DisplayInWebList=1
WebPostURL=http://URL_TO_webpost.php
WebPostLinkUrl=http://URL_THE_SERVERLINK_SHOULD_POINT_TO

I did not have this section in the server.ini file, so i added it (with relevant details) but sill no luck.

Please help me (or point me in the right direction of a relevent URL - no MYSQL howto's though, Im supposed to be revising for an exam on Friday ) cause Ive reached the 'tearing hair out' stage of frustration!


Update: OK Im getting past the frustrated stage - this post has been here a couple of days, has had 80 hits, yet still no1 has even commented Is what I am asking sooo stupid? If so, please tell me!

Last edited by TDrop; 13-01-2003 at 21:35.
Reply With Quote
  #3  
Old 14-01-2003, 06:02
direwolf's Avatar
direwolf direwolf is offline
-= TeamSpeak User =-
 
Join Date: Aug 2002
Location: Oz
Posts: 15
direwolf is on a distinguished road
Is register_globals on or off on your server?
Reply With Quote
  #4  
Old 14-01-2003, 14:35
TDrop TDrop is offline
-= TeamSpeak User =-
 
Join Date: Jan 2003
Location: UK
Posts: 7
TDrop is on a distinguished road
Hi, thanks for your reply!

I cant find any reference to "register_globals" in any of the server scripts so I am assuming it is not set. Where should I put it? Ive searched the forums for the phrase but no luck.
Reply With Quote
  #5  
Old 14-01-2003, 14:40
direwolf's Avatar
direwolf direwolf is offline
-= TeamSpeak User =-
 
Join Date: Aug 2002
Location: Oz
Posts: 15
direwolf is on a distinguished road
the register_globals is a setting in php. You can set it by editing the php.ini file on your server.

Be aware that having register_globals on is considered to be a security risk.

I found that the script didn't work on my server unless I had register_globals set to on. If I got motivated enough I might go through the script and insert some
PHP Code:
$_GET $_POST $_SERVER 
to get it working. Bit busy now tho.
Reply With Quote
  #6  
Old 14-01-2003, 20:20
TDrop TDrop is offline
-= TeamSpeak User =-
 
Join Date: Jan 2003
Location: UK
Posts: 7
TDrop is on a distinguished road
Cool thx for the info - one last question though (before I go off to learn php) does register_globals need to be set on the webserver or the teamspeak server (Im thinking webserver, but I ust wanna make sure!).

Thanks again,

TD
Reply With Quote
  #7  
Old 14-01-2003, 20:37
TDrop TDrop is offline
-= TeamSpeak User =-
 
Join Date: Jan 2003
Location: UK
Posts: 7
TDrop is on a distinguished road
OK, I took a look at the php.ini file on the webserver and found the following line
Quote:
register_globals = On
It wasnt hashed out so I guess it is turned on.

I had a little experiment with mysql and found that IP and connection time are both being posted (that the correct word?) to the database, but other variables (ie the ones I want to see!) are not.

Rebooted Server and connected as a guest to TSS and all of the rooms are gone.... Ive vi'd server.db and I can see all of the usernames/passwords in there so its not empty. Gonna reinstall TSS

Last edited by TDrop; 14-01-2003 at 20:56.
Reply With Quote
  #8  
Old 14-01-2003, 20:56
TDrop TDrop is offline
-= TeamSpeak User =-
 
Join Date: Jan 2003
Location: UK
Posts: 7
TDrop is on a distinguished road
Reinstalled TSS on my server and still no luck Started from scratch and recreated the server.ini file. Im getting desperate now so I'll post it here;

Quote:
[debug]
MessageTypes=LMTALL
MessageDepths=LMDALL

[Main Config]
HTTPServer Port=14534
HTTPServer Enabled=1
DateTimeFormat=dd-mm-yyyy hh:nn:ss
TCPQueryPort=51234
BoundToIp=

[WebPost]
AdminEmail=admin@stormraptors.co.u
ISPLinkURL=www.stormraptors.co.uk
ISPName=SRM1
ISPCountry=Earth
Enabled=1
PostURL=http://stormraptors.co.uk/webpost.php

[server_cfg Default]
ServerName=TeamSpeak Server
ServerType=1
ServerWelcomeMessage=[Welcome to TeamSpeak, check www.teamspeak.org]
ServerMaxUsers=50
ServerUDPPort=8767
ServerPassword=
ServerFlags=2
AllowCodecCelp51=1
AllowCodecCelp63=1
AllowCodecGSM148=1
AllowCodecGSM164=1
AllowCodecWindowsCELP52=1
WebPost_LinkURL=http://stormraptors.co.uk/webpost.php

[Servers]
0=server_cfg Default
I can Telnet to port 14534 and login as a superadministrator and do commands like pl and sl etc.... Do I have to create a TeamSpeak user with the same name as the MYSQL user?

Last edited by TDrop; 14-01-2003 at 21:07.
Reply With Quote
  #9  
Old 15-01-2003, 02:22
TDrop TDrop is offline
-= TeamSpeak User =-
 
Join Date: Jan 2003
Location: UK
Posts: 7
TDrop is on a distinguished road
Ok I replaced the Webpost script Id downloaded from the Scripts directory with webpost2. It now works fine, so I have no idea what was wrong originally. Oh well, at least its working now

Thanks for your help Direwolf,

TDrop
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:42.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Add to Bookmarks   |   Printview   |   Contact Us   |   Legal Notices