log httpd

Discussion in 'Installation/Configuration' started by Naxxow, Apr 6, 2015.

  1. Naxxow

    Naxxow New Member

    Hello,
    For one of my website,
    the folder:
    /var/log/ispconfig/httpd/mydomain
    is empty, there are no log file.
    how can we recreate the access.log file ?
     
    baobab likes this.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The access log file gets created when the website is accessed and the error.log file gets created when the first error occurs for that site.
     
    baobab likes this.
  3. Naxxow

    Naxxow New Member

    Thank you for your answer,

    What happens if I delete access log file, it is automatically recreate ?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, it gets created again.
     
  5. Naxxow

    Naxxow New Member

    I delete the access log file there a week but it is not recreated.
    The site is used every day.

    May be a script problem ?
     
  6. Naxxow

    Naxxow New Member

    An idea ?
     
  7. webguyz

    webguyz Member HowtoForge Supporter

    Check your /etc/fstab file for lines like these for each website:

    /var/log/ispconfig/httpd/blog.chuck.com /var/www/clients/client12/web30/log none bind,nobootwait,_netdev 0 0

    If you don't see them then try: mount -a at the command line as root and it should recreate these for you.
     
  8. Naxxow

    Naxxow New Member

    I checked the etc/fstab file but, the lines is already present

    I do not understand why it does not work.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you run:

    mount -a

    command? If not, please run it and check again.
     
  10. Naxxow

    Naxxow New Member

    I run mount -a command in root folder but still nothing
    the access log file it is not recreated.
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you accessthe website afterwards? The log gets created when the directory is mounted and when the first page access happens after you mounted it.
     
  12. Naxxow

    Naxxow New Member

    I found another way to generate the access.log file,
    my problem is resolved.

    thank you for your help :)
     

Share This Page