ULX

Author Topic: ULX log viewer  (Read 36657 times)

0 Members and 1 Guest are viewing this topic.

Offline trurascalz

  • Newbie
  • *
  • Posts: 13
  • Karma: 1
Re: ULX log viewer
« Reply #15 on: June 16, 2014, 04:40:51 AM »
I'll take a look at it tonight,  however I never had a restricted server to test it with.  Try adding
error_reporting(E_ALL);
  ini_set("display_errors", 1);

To the top of index. Php inside the php tag an load the page again and post error here

Offline Doctor Internet

  • Newbie
  • *
  • Posts: 6
  • Karma: 3
Re: ULX log viewer
« Reply #16 on: June 22, 2014, 12:17:58 AM »
I've done what you suggested, and came out with this error.

Quote
Successfully accessed log folder. Warning: ftp_nlist(): bind() failed: Permission denied (13) in /hermes/bosoraweb014/b177/ipg.projectbaseorg/doctor/Logging/index.php on line 73

Any ideas?


Offline Doctor Internet

  • Newbie
  • *
  • Posts: 6
  • Karma: 3
Re: ULX log viewer
« Reply #18 on: June 22, 2014, 03:35:57 AM »
Ah, thank you very much. Added the ftp_pasv($ftp_connection, true); part to the php, and it works fine.
Great addon, using it now to help administrate my server.

Offline hubbabubbagum

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: ULX log viewer
« Reply #19 on: January 07, 2015, 10:27:34 PM »
I have tried multiple paths to get this to work, but my efforts have been fruitless.

I keep getting
Code: [Select]
Parse error: syntax error, unexpected '$path' (T_VARIABLE) in /usr/www/ccaot/public/ULXLogviewer-master/config.php on line 10
My log folder is located in "public/serverlogs" and my host is NFOservers

My config looks like:
Code: [Select]
<?php

// Here you set your FTP information
$host "hosted29.nfoservers.com";
$user "*******";
$password "******";
$port "27015"// Default 21, some hosts have different
$passiveftp "0" // 1 = Yes , 0 = No, Default 0. Try enabling this if it fails to show directory
// Log Directory
$path "/public/serverlogs/";

// Other
$community "Server Logs";
?>

What am I doing wrong? Any help would be appreciated.

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: ULX log viewer
« Reply #20 on: January 08, 2015, 04:30:56 AM »
I have tried multiple paths to get this to work, but my efforts have been fruitless.

I keep getting
Code: [Select]
Parse error: syntax error, unexpected '$path' (T_VARIABLE) in /usr/www/ccaot/public/ULXLogviewer-master/config.php on line 10
My log folder is located in "public/serverlogs" and my host is NFOservers

My config looks like:
Code: [Select]
<?php

// Here you set your FTP information
$host "hosted29.nfoservers.com";
$user "*******";
$password "******";
$port "27015"// Default 21, some hosts have different
$passiveftp "0" // 1 = Yes , 0 = No, Default 0. Try enabling this if it fails to show directory
// Log Directory
$path "/public/serverlogs/";

// Other
$community "Server Logs";
?>

What am I doing wrong? Any help would be appreciated.

You're missing a semicolon after:
Code: [Select]
$passiveftp = "0"
It should look like this:
Code: [Select]
$passiveftp = "0"; // 1 = Yes , 0 = No, Default 0. Try enabling this if it fails to show directory
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline hubbabubbagum

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: ULX log viewer
« Reply #21 on: January 08, 2015, 08:40:05 AM »
You're missing a semicolon after:
Code: [Select]
$passiveftp = "0"
It should look like this:
Code: [Select]
$passiveftp = "0"; // 1 = Yes , 0 = No, Default 0. Try enabling this if it fails to show directory

Oh god, I feel quite stupid now. Thank you for catching that. I must've deleted that by accident.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: ULX log viewer
« Reply #22 on: June 09, 2016, 07:19:36 PM »
Sorry for this being very old, but I've tried to fix this myself a bunch of times but I just can't.

Code: [Select]
<?php

// Here you set your FTP information
$host "****";
$user "****";
$password "****";
$port "21"// Default 21, some hosts have different
$passiveftp "1"// 1 = Yes , 0 = No, Default 0. Try enabling this if it fails to show directory
// Log Directory
$path '72.5.102.25_27015/garrysmod/data/';

// Other
$community "Iodine Gaming";
?>

Every time I load up the logs.iodinegaming.com I get:
Code: [Select]
Warning: ftp_chdir(): The system cannot find the path specified. in /usr/www/iodinegaming/logs/index.php on line 68
Couldn't access log folder

I've tried:

Changing $host (and $password respectively)
Chaning $port
Changing $passiveftp
Chaning $path first param (IP)

and nothing has worked. I really want to get this working, and again sorry for this being really old.


Also, I'd like to point out that my gameserver and webserver are on two different FTPs, if that affects anything.
« Last Edit: June 09, 2016, 07:28:54 PM by iViscosity »
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given