Hi! In the folder /var/www/clients/client0/webXX/log I only have folders named subdomain1, subdomain2, subdomain3. None of them refers to the logs of the level-2 domain (which is www.XXXYYY.com). The logs are there in /var/log/ispconfig/httpd/XXXYYY.com Should they be there by default? Would I mount --bind them to bring them back? What should the folder be called then? Thank you!
yes. The mount binds should all be in your /etc/fstab file if nobody deleted tehm manually. run: mount -a to apply them again.
Did you check if the bind mount lins are in the /etc/fstab file? The lines look like this: Code: /var/log/ispconfig/httpd/site1.domain.tld /var/www/clients/client0/web49/log none bind,nobootwait 0 0 /var/log/ispconfig/httpd/site2.domain.tld /var/www/clients/client0/web50/log none bind,nobootwait 0 0
This is my /etc/fstab Code: /var/log/ispconfig/httpd/sub1.XXXYYY.com /var/www/clients/client0/web3/log/sub1 none bind,nobootwait 0 0 /var/log/ispconfig/httpd/sub2.XXXYYY.com /var/www/clients/client0/web3/log/sub2 none bind,nobootwait 0 0 /var/log/ispconfig/httpd/sub3.XXXYYY.com /var/www/clients/client0/web19/log none bind,nobootwait,_netdev 0 0 /var/log/ispconfig/httpd/sub4.XXXYYY.com /var/www/clients/client0/web3/log/sub4 none bind,nobootwait,_netdev 0 0 What I miss is a log for XXXYYY.com By the way: I manually added /var/log/z-push to /var/www/clients/client0/web3/log/ with mount --bind Shouldn't this also be in this list then? Thank you!
Then you should add this in /etc/fstab. I just tested on a debian apache and ubuntu nginx server the latest rc and the line gets added in /etc/fstab correcly and also mount --bind is called automatically, when a new website is added. The mount --bind command adds the mount only temporarily. If you wnat to get this permanently, you will have to add it in /etc/fstab as well.
Thank you, will try this. What would the folder then be called by default? XXXYYY.com or XXXYYY? Strange – I don't remember unmounting or deleting anything…
No folder, it is linked directly to log: /var/log/ispconfig/httpd/XXXYYY.com /var/www/clients/client0/web1/log none bind,nobootwait,_netdev 0 0
If I do this, I now only have the logs of the domain in /var/www/clients/client0/web1/log The mount overrides the log-folders of the subdomains which should also be in /var/www/clients/client0/web1/log
I unmounted /var/www/clients/client0/web1/log again and commented the line in fstab Could this have to do with the order of mounting? Should I unmount all of the other subdomain's log-folders first before attempting to mount -a again? But then I would have to create the subfolders again to mount them, right?
The order of lines matters. here the lines for a website + vhost subdomian from a nginx server: Code: /var/log/ispconfig/httpd/test100.int /var/www/clients/client0/web1/log none bind,nobootwait,_netdev 0 0 /var/log/ispconfig/httpd/sub.test100.int /var/www/clients/client0/web1/log/sub none bind,nobootwait,_netdev 0 0
That's the order I had – I put it first. I unmounted all subdomain's log folders and uncommented the line for the domain. Then I did mount -a. I got: Code: mount: mount point /var/www/clients/client0/web3/log/sub3 does not exist mount: mount point /var/www/clients/client0/web3/log/sub4 does not exist The other subdomains (sub 1 and sub2 in this example) mounted just fine. I created the two dirs and remounted (mount -a). Now it seems to work as it should.