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 5th November 2013, 04:23
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default log symlink overwritten, log dir empty. what now?

In any client's FTP environment, the log symlink keeps getting removed and replaced by an empty log directory.

I found this on the subject:
http://bugtracker.ispconfig.org/inde...s&task_id=2774

not a bug... ok.
get help on the forums with configuration problems of my server...
that's a bit harsh considering I was perfectly happy with the symlink before it got changed, the reason is apparently that chrooted users cannot access the logs through the symlink.
I fail to see how removing that ability for everybody is an improvement...

except, of course, if a better way is provided.

So how can access to the logs from FTP be restored?

Thank you
Reply With Quote
Sponsored Links
  #2  
Old 5th November 2013, 07:56
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,981
Thanks: 825
Thanked 5,371 Times in 4,218 Posts
Default

Access to ftp logs works fine, just tested it with ispconfig 3.0.5.3 here on a server. So what you complain here about is a configuration issue of your server and not a issue in ispconfig. The new method to bind mount the log directory instead of symlinking it works much better and even for chrooted users then the old version btw.

Check if the log files are written correctly in /var/log/ispconfig/httpd/domain.tld and that the bind mounts for the logfile directorys whch point to the actual directory /var/log/ispconfig/httpd/domain.tld in /etc/fstab exist.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 5th November 2013, 08:36
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default

I upgraded to 3.0.5.3 recently and all I can see is an empty dir.

The logs are written correctly in /var/log/ispconfig/httpd/domain.tld , that where I used to point the symlink to.

isn't the upgrade process setting the correct bind mounts?
Reply With Quote
  #4  
Old 5th November 2013, 08:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,981
Thanks: 825
Thanked 5,371 Times in 4,218 Posts
Default

The symlinks are removed and replaced by a fstab entry when a website gets udated the next time e.g. when you edit and save it.Untl then, the symlinks will stay in place. This is done transparently and automatically, so you normally wont recognize this change except that the logs start to be accessible by chrooted ssh users.

Take a look at /etc/fstab, you should see a line in there like this:

Code:
/var/log/ispconfig/httpd/test.int /var/www/clients/client0/web1/log    none    bind,nobootwait    0 0
for each log directory after it was converted. Dont expect to see all dirs there already as the conversion takes place when a site gets edited, not when you update ispconfig.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 5th November 2013, 10:01
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default

Yes, I see this line:

Code:
/var/log/ispconfig/httpd/domain.com /var/www/clients/client1/web1/log    none    bind,nobootwait    0 0
but ...web1/log is empty under FTP.

does something need to be restarted after the upgrade?
Reply With Quote
  #6  
Old 5th November 2013, 10:23
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,981
Thanks: 825
Thanked 5,371 Times in 4,218 Posts
Default

Quote:
does something need to be restarted after the upgrade?
No.

Try to run:

mount -a

and check again if you see the log files.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 5th November 2013, 10:27
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default

permission denied of course, I'm on a virtual server.

maybe an option in ISPC is needed: mount or symlink
Reply With Quote
  #8  
Old 5th November 2013, 10:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,981
Thanks: 825
Thanked 5,371 Times in 4,218 Posts
Default

You can do bind mounts on virtual servers as well. All my srvers are virtualized and I install ispconfig on client systems daily were many of them are virtualized as well, the bind mount worked on all of them. You should contact your host about this isue, mos likely they block something on your server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 6th November 2013, 16:37
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default

linux-vserver.org

no mounting allowed.
Reply With Quote
  #10  
Old 6th November 2013, 17:04
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,981
Thanks: 825
Thanked 5,371 Times in 4,218 Posts
 
Default

Did not know that someone is still using it, no news since 2009. For a slim linux kernel based virtualisation, you might want to check out OpenVZ. I use it for several yaers on my servers, works great.
__________________
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
vlogger (problem) cusco General 3 7th May 2012 15:32
Ubuntu Hardy chrooted bind9 fails to start Djamu Server Operation 35 21st April 2010 08:28
PRO FTP log " Xferlog " empty romain33 Installation/Configuration 1 26th March 2009 17:27
Daily mail logrotation?! schmidse Installation/Configuration 4 21st January 2008 13:55
ISPConfig 2.2.14 released till General 48 19th July 2007 23:46


All times are GMT +2. The time now is 20:04.


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