1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Could someone please look at this.

Discussion in 'BF2Statistics discussion' started by Wile, Apr 18, 2006.

  1. Wile

    Wile New Member

    Hi there... :)
    Im pretty much stuck in this, i did all what i should, but his is what happening :

    1.. No logs go to the ASP/logs folder
    2.. im getting "Fatal error: Call to undefined function: curl_init() in /somedir/BF2Stats.php on line 145" on the web page.
    3.. The sig is giving me "Error 500" but if im gonna disable htaccess im getting "bf2webserver is down"

    I would be happy if someone could help me with theese problems.

    Best Regards
    Wile
     
  2. MrNiceGuy

    MrNiceGuy Founder Staff Member

    We need some more infor on your system specs... Mysql version etc etc...
     
  3. Wile

    Wile New Member

    MySQL 4, Apache/2.0.54, (Debian GNU/Linux), mod_python/3.1.3, Python/2.3.5, PHP/4.3.10-16, mod_ssl/2.0.54, OpenSSL/0.9.7e

    It's 2 servers, a game server and a webserver.

    Best Regards
    Wile
     
  4. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Do you have the rest working besides the web stats and sig?
     
  5. Wile

    Wile New Member

    Nope... It's all dead... the game server is not sending any information to the webserver where the parser is...
    I did edit the snapshot to the rigt ip, but nothing happens...

    But the weird thing is, i can see my stats here "http://cdb.bf2-warzone.com/bf2statistics"
    so its sending some kind of info, but not to the web server as it should.

    Best Regards
    Wile
     
  6. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Then your web server and database needs to be setup right for the rest to work...
     
  7. Wile

    Wile New Member

    It's all like its should be...
    The game server is redirected to the web server, i can access IP/ASP and did chmod it to 777 to be sure.
    When using the sig im getting this : Server error 500
    The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
    if i disable .htaccess i just get a little pic with the text : Error :bf2web down and there is no cache file.

    So im really sorry, but there aint more i can setup..lol

    Best Regards
    Wile
     
  8. Wile

    Wile New Member

    If there is a way to track or something, then the ip is 88.80.193.28

    if i use 88.80.193.28/ASP/ no problems.
    if i use 88.80.193.28 ASP/ well hell i lose..LoL

    Best regards
    Wile
     
  9. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Your scripts arent executing.. check this link ---> http://88.80.193.28/ASP/getbackendinfo.aspx

    Should be like this ---> http://nbfclansite.no-ip.com/ASP/getbackendinfo.aspx
     
  10. Wile

    Wile New Member

    Hi again..
    Now i did buy a ekstra ip for this..lol

    Don't know if the script runs, but why run a script if there is no logs...LoL
    There is no logs written to the webserver in anyway.
    The ip is right in the snapshot.py.
    The webserver is set to 777
    The php files is set to 777
    The game server does not sends any log files...

    The server is started with "-ranked"
    And i can see the stats on "http://cdb.bf2-warzone.com/bf2statistics"

    But the server is running under a remote, and in the remote there is a button "ranked" that turn another rank on, so you need to be 9 before the game starts, should that button be on?

    I can understand the scripts not running..why work if there aint something to work woith..LoL
    So should the eyes be turned to the game server?

    I just jumping in and cap some flags, is that enough to get a logfile?

    Apache is disabled on the game server...

    Snapshot.py :
    HOST = '88.80.199.169'
    PORT = 80
    PATH = 'ASP/bf2statistics.php'PREFIX = 'bf2'

    If you look at port shouldnt there be ' in start and end.

    Best Regards
    Wile
     
  11. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Dude, the reason you dont have any logfiles, is because your scripts aint working... And the logs are just for pure backup.
    The data is updated "live" when the round ends.
    Get your web server working, with php, then you will see you get logs. ;)
     
  12. Wile

    Wile New Member

    LoL, the web server is running php just fine, i even got a bunch of cron jobs executed with php "php somestuff" and its running great, and i even did make some PhP jobs my self, so it should be able to run php 100%, some dirs allso got httpdaccess "passworrds" files in it, and they are working just great.

    soooo, therefore i really dont understand why its not executin the script.
    But the bf2 statistics gives me a sql error at line1.

    Best Regards
    Wile
     
  13. THE_WUQKED

    THE_WUQKED New Member

    the script is aspx. - Maybe your apache doesn't know that aspx files are also php-files.
    Just search the board to see how to tell the apache that aspx files are php-files as well.
     
  14. Wile

    Wile New Member

    This is what i've got :

    httpd.conf
    AddType application/x-httpd-php .aspx

    apache2.conf
    AddType application/x-httpd-php .aspx

    Best Regards
    Wile
     
  15. Mal

    Mal New Member

    it may also be depending *where* you place that line.
    So instead of pasting it somewhere and hoping for the best, add .aspx to your existing php handler line.
    (I'm not 100% sure about apache2 as I have 1.3 running but for 1.3 it's in /etc/apache/conf.d/php4.conf)

    so add .aspx to the existing extensions and restart apache.

    eg:
    make ...
    AddType application/x-httpd-php .php .php4 .php3

    this...
    AddType application/x-httpd-php .php .php4 .php3 .aspx

    this way you can at least be sure it's in the right place ...
     
  16. Wile

    Wile New Member

    Some of it work now, i needed to edit a second config file for apache, but now im on to the signature, and im getting Error 500

    The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

    Best Regards
    Wile
     
  17. MrNiceGuy

    MrNiceGuy Founder Staff Member

    1 thing, do NOT use the web package OR the signature to debug. Run query's directly to the aspx scripts instead!
    Some example calls can be found here ---> http://bf2.fun-o-matic.org/index.php/BF2Stats

    The web and sig stuff, are just something we have put up, and are NOT really a part of bf2statistics.
     
  18. Wile

    Wile New Member

    No debug...:)
    And i didnt do that, my system is running two configurations and i forgot to change something in no. 2, so now the database are getting filled...

    And now im working with is the signature, there is a problem with the access file, my system is so complicated to the access files can run on my system, i need to change alot of security stuff to get it to work..LoL