PDA

View Full Version : Plugin: (Apache) Log Viewer User-Level



fusionictnl
10-12-2004, 04:55 AM
DA Log View User-Level Plugin Expirimental in this STAGE!

User Log Viewer (http://www.fusion-ict.nl/da_plugin/userlog.tar.gz) DA Plugin v1.4 13-OKT-2004 (GMT+1)

Use the above url in your DA Plugin Management to install (Admin-Level).

This plugin will give users the ability to view their "Apache","FTP" and "Mail" log files.


Let me know how it works

interfasys
10-12-2004, 05:04 AM
Didn't work at all for me =(

Warning: main(/usr/local/directadmin/plugins/awstats/hooks/da.php): failed to open stream: No such file or directory in /usr/local/directadmin/plugins/userlog/user/index.html on line 9 Warning: main(/usr/local/directadmin/plugins/awstats/hooks/da.php): failed to open stream: No such file or directory in /usr/local/directadmin/plugins/userlog/user/index.html on line 9 Warning: main(): Failed opening '/usr/local/directadmin/plugins/awstats/hooks/da.php' for inclusion (include_path='.:/usr/local/lib/php') in /usr/local/directadmin/plugins/userlog/user/index.html on line 9 Fatal error: Cannot instantiate non-existent class: httpsocket in /usr/local/directadmin/plugins/userlog/user/index.html on line 11

I see at least two problems:
1)I don't use awstats
2)the plugin's name is in bold

fusionictnl
10-12-2004, 05:15 AM
Fixed problem (awstats :s)

Want to change BOLD ? edit: /usr/local/directadmin/plugins/hooks/user_txt.html and remove the <B> tags

interfasys
10-12-2004, 05:32 AM
Still not working.

Hangs a while using alot of resources and then I get a blank page (inside the template, not a white page).

fusionictnl
10-12-2004, 05:45 AM
Where do you get the blank page? when clicking on the button show log when selecting wich log to show ?

does this user has multiple domains ?

interfasys
10-12-2004, 06:09 AM
I've tried on accounts with one or two domains and both failed.

I have the blank page when I click on the plugin.

I did an upgrade and not a delete/install.

fusionictnl
10-12-2004, 07:00 AM
I've changed the scripting language. It should work perfectly now ;)

l0rdphi1
10-12-2004, 07:27 AM
From install.sh:
chmod 755 $DOCUMENT_ROOT/hooks/alldomains.php
mkdir /etc/awstats
chown diradmin:diradmin /etc/awstats
chmod 777 /etc/awstats

;)

Phi1.

fusionictnl
10-12-2004, 08:05 AM
Yeah. Sorry :P will take that piece of code out :(

Stupid me :D

interfasys
10-12-2004, 09:59 AM
The third try was the good one ;)

Can plugins be multilingual?

jmstacey
10-12-2004, 10:06 AM
Quick question, doesn't DA already have these feature in the stats page at the very top :confused:

fusionictnl
10-12-2004, 10:10 AM
Yes :D Problem ? :p

jmstacey
10-12-2004, 07:38 PM
:p

fusionictnl
10-13-2004, 12:59 AM
Update 1.3

*- Added FTP Auth/Access Log file view
*- Added Mail Log file view

interfasys
10-13-2004, 03:54 AM
Completely broken ;)

Here is what I get with every domain name:
"We'll looks like a domain that doesn't belong to you ;)"

fusionictnl
10-13-2004, 04:02 AM
Strange :rolleyes:

Check if the domains under: /home/[user]/domains/[domains] are at this location :)

Check if the domains you want to view the log files from are in that path

Does it give errors @ all log files. And is the pulldown list correctly filled :p

Thx!

interfasys
10-13-2004, 04:10 AM
The pulldown is filled with the correct information, it's just that when selecting one log I get that strange error message.

fusionictnl
10-13-2004, 04:23 AM
Is the domain you're selecting the logs for under the /home/[USER]/domains/[domainname]

???

interfasys
10-13-2004, 04:28 AM
Yep, this hasn't changed (was working fine with 1.2).

fusionictnl
10-13-2004, 04:57 AM
I have changed some lines in the plugin. If you could re-install the plugin and give me the output line "Displaying logfile '/var/log/httpd/domains/xxxx (xxxx)' for 'xxxxx' "

;)

interfasys
10-13-2004, 05:03 AM
https://DA:2222/CMD_PLUGINS/userlog?file=%2Fvar%2Flog%2Fhttpd%2Fdomains%2Fdomainname.com.log%5Edomainname.com&lines=50&type=textarea

fusionictnl
10-13-2004, 05:16 AM
I have changed some lines in the plugin. If you could re-install the plugin and give me the output line "Displaying logfile '/var/log/httpd/domains/xxxx (xxxx)' for 'xxxxx' "

interfasys
10-13-2004, 05:24 AM
Displaying logfile '/var/log/httpd/domains/domainname.com.log (domainname.comnlines=50ntype=textarea)' for 'domainname.comnlines=50ntype=textarea' We'll looks like a domain that doesn't belong to you ;)

fusionictnl
10-13-2004, 06:40 AM
Update 1.4

*- Enviroment variables to script are passed by PHP.

interfasys
10-13-2004, 08:05 AM
I don't get an error anymore, but the logs are empty now (instead of showing the actual lines) ;)

It's as if the page reloads instead of going to that log.

fusionictnl
10-13-2004, 11:52 PM
The plugin is really, really simple set up. You can't see any of the logs ??

If it is so I will add some debug info to it. :rolleyes:

interfasys
10-14-2004, 08:27 AM
Yep, the logs are empty. IT was working fine before you added FTP.

fusionictnl
10-14-2004, 09:51 AM
Could you re-install/update again. I've added a load of debug info ;) This would give me hopefully enough info ;)

The first output lines will be debug info ;)

It should when correct output: "domain.ext Ok I have found the domain (domain.ext) Looks like this domain belongs to you Ok parsing an Apache log! Ok I've matched the ( /var/log/httpd/domains/domain.ext.log ) and begin output!. "

Anything else would mean: Problems ;)

Thx!

interfasys
10-14-2004, 10:06 AM
No change, I don't even get any error output.

The selector shows the full path for all the logs but the ones for FTP.

I select a log and hit "show log" and I'm back to where I started : blank log and the selector back to the default position.

fusionictnl
10-15-2004, 03:36 AM
Does the URL change ?? As something has to be submitted ;)

interfasys
10-15-2004, 08:45 AM
Yep, you're right. The URL changes.

fusionictnl
10-15-2004, 09:59 AM
COpy past / Private MSG it to me

interfasys
12-08-2004, 11:55 PM
Any chance of having a working plugin one day or has this project been abandoned?

fusionictnl
12-09-2004, 06:29 AM
Wich OS are you using?

interfasys
12-09-2004, 06:47 AM
FreeBSD 5.2.1

alex2k
12-09-2004, 09:04 AM
This plugin working great on CentOS 3.3
Thank's...

dannygoh
01-13-2005, 09:17 PM
Would it be difficult to add a raw format as as DA Admin Log Viewer.

rushost
01-16-2005, 10:26 AM
plugin not work :(
blank in texarea
nothing error report
FreeBSD 4.10

interfasys
01-16-2005, 10:29 AM
It doesn't work on FreeBSD.

PC-Drivers
02-09-2006, 09:30 AM
I Can't donwload this plugin :S

xeryph
02-09-2006, 01:09 PM
Hello,
This link isn't working. I cannot download and install plugin. Do you have that plugin? I want to install it on my server, but I do not know where I can find it.

Thanks a lot for some assistance.


Regards,
XeryPH.