Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th March 2011, 20:10
pavljiks pavljiks is offline
Junior Member
 
Join Date: Dec 2010
Posts: 17
Thanks: 2
Thanked 0 Times in 0 Posts
Default Client access to access.log and error.log

Is there any way client without ssh access can view his apache log files. Those log files are in home directory. And permissions seems to be right from console.

Code:
root@server1:/var/www/domain.ltd# ls -la
total 24
drwxr-x--x  6 web38 client9 4096 2011-03-08 20:57 .
drwxr-xr-x  3 root  root    4096 2011-03-07 23:55 ..
lrwxrwxrwx  1 root  root      17 2011-03-08 00:30 backup -> /var/backup/web38
drwxr-x--x  2 web38 client0 4096 2011-03-07 23:55 cgi-bin
lrwxrwxrwx  1 web38 client0   35 2011-03-07 23:55 log -> /var/log/ispconfig/httpd/domain.ltd
drwxr-x--x  2 web38 client0 4096 2011-03-07 23:55 ssl
drwxrwxrwx  2 web38 client0 4096 2011-03-08 20:39 tmp
drwx--x--- 22 web38 client0 4096 2011-03-08 14:35 web
then
Code:
root@server1:/var/www/domain.ltd# cd log/
root@server1:/var/www/domain.ltd/log# ls -la
total 6468
drwxr-x--x 2 root  root       4096 2011-03-08 20:45 .
drwxr-xr-x 7 root  root       4096 2011-03-07 23:55 ..
-rw-r--r-- 1 root  root    2588662 2011-03-08 20:45 20110308-access.log
lrwxrwxrwx 1 root  root         19 2011-03-08 20:45 access.log -> 20110308-access.log
-rw-r--r-- 1 web38 client9 4015159 2011-03-08 20:45 error.log
i create a ordinary ftp user from site account administration panel and try to access folders i get such output (looks fine)
Code:
....
Status:	Connecting to 11.111.13.210:21...
Status:	Connection established, waiting for welcome message...
Response:	220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response:	220-You are user number 1 of 50 allowed.
Response:	220-Local time is now 21:00. Server port: 21.
Response:	220-This is a private system - No anonymous login
Response:	220-IPv6 connections are also welcome on this server.
Response:	220 You will be disconnected after 15 minutes of inactivity.
Command:	USER ftpuser1
Response:	331 User ftpuser1 OK. Password required
Command:	PASS ******
Response:	230-User ftpuser1 has group access to:  client9    sshusers  
Response:	230 OK. Current restricted directory is /
Command:	OPTS UTF8 ON
Response:	200 OK, UTF-8 enabled
Status:	Connected
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/" is your current location
Command:	TYPE I
Response:	200 TYPE is now 8-bit binary
Command:	PASV
Response:	227 Entering Passive Mode (11,111,13,210,135,216)
Command:	MLSD
Response:	150 Accepted data connection
Response:	226-Options: -a -l 
Response:	226 8 matches total
Status:	Directory listing successful
but when i try access "log" folder i get and folder inside is empty:

Code:
Command:	CWD /log
Response:	250 OK. Current directory is /log
Command:	PWD
Response:	257 "/log" is your current location
Command:	PASV
Response:	227 Entering Passive Mode (11,111,13,210,230,174)
Command:	MLSD
Response:	150 Accepted data connection
Response:	226-Sorry, we were unable to read [.]
Response:	226-Options: -a -l 
Response:	226 0 matches total
Status:	Directory listing successful
so i think there is something about that. Sorry, we were unable to read [.]

with backup folder even shorter story
Code:
Command:	CWD /backup
Response:	550 Can't change directory to /backup: Permission denied
Error:	Failed to retrieve directory listing
missing backups also. (yesterday i set up backups from admin user > Sites > Website > Backup > Daily "10".


PS. My setup

Ubuntu 10.10 ISPConfig 3.0.3.2 according to manual.
Reply With Quote
Sponsored Links
  #2  
Old 8th March 2011, 20:11
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,214 Times in 4,089 Posts
Default

http://bugtracker.ispconfig.org/inde...s&task_id=1529
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 8th March 2011, 20:12
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,214 Times in 4,089 Posts
Default

Quote:
missing backups also. (yesterday i set up backups from admin user > Sites > Website > Backup > Daily "10".
make sure that you installed the sudo and zip packages.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 8th March 2011, 20:19
pavljiks pavljiks is offline
Junior Member
 
Join Date: Dec 2010
Posts: 17
Thanks: 2
Thanked 0 Times in 0 Posts
Default

fantastic response. log files work now.
which script creates those daily backup folders?

zip with sudo allready installed
Reply With Quote
  #5  
Old 8th March 2011, 20:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,214 Times in 4,089 Posts
 
Default

/usr/local/ispconfig/server/cron_daily.sh
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error.log files are empty autogun General 2 13th December 2010 16:05
Being Spammed/Hacked/Probed not sure PLEASE HELP! kresser General 10 29th October 2010 17:25
Ubuntu 10.04 - client denied by server configuration muucest Installation/Configuration 2 12th July 2010 11:02
Problem with services!! banzaiwebstudio.com Installation/Configuration 7 19th May 2010 21:13
Apache2 error.log problem Quissi Server Operation 2 18th September 2009 15:04


All times are GMT +2. The time now is 23:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.