1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Is it possible to prevent the access.txt from being re-created?

Discussion in 'Apache' started by Ian08, Dec 30, 2018.

  1. #1
    I have been using EasyPHP (Devserver 17.0) for development tests, and I just discovered that the file size of the access.txt has become 6.59 GB. It contains records of every file which was loaded.
    SEMrush
    I don't really want to know what files were loaded. But after I deleted it, it is re-created when the server restarts.

    Is it possible to prevent the access.txt from being re-created?
     
    Solved! View solution.
    Ian08, Dec 30, 2018 IP
    SEMrush
  2. #2
    What is it in that file? If its access log file then by default it will be recreated when you delete it in the next reboot. The other workaround is you can purge that file in a timely manner or set a task scheduler.
     
    hostechsupport, Dec 31, 2018 IP
  3. Ian08

    Ian08 Well-Known Member

    Messages:
    93
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    108
    #3
    Thank you. I understand.

    The file contains things like:
    127.0.0.1 - - [30/Dec/2018:20:07:38 +0800] "GET /icons/blank.png HTTP/1.1" 200 227
    127.0.0.1 - - [30/Dec/2018:20:07:38 +0800] "GET /icons/folder.png HTTP/1.1" 200 395
    127.0.0.1 - - [30/Dec/2018:20:07:38 +0800] "GET /icons/php.png HTTP/1.1" 200 757
    127.0.0.1 - - [30/Dec/2018:20:07:38 +0800] "GET /icons/text.png HTTP/1.1" 200 463
    127.0.0.1 - - [30/Dec/2018:20:07:38 +0800] "GET /icons/image.png HTTP/1.1" 200 671
    127.0.0.1 - - [30/Dec/2018:20:07:38 +0800] "GET /icons/zip.png HTTP/1.1" 200 617
    127.0.0.1 - - [30/Dec/2018:20:07:38 +0800] "GET /icons/pdf.png HTTP/1.1" 200 799
    Code (markup):
     
    Ian08, Dec 31, 2018 IP
  4. hostechsupport

    hostechsupport Well-Known Member

    Messages:
    411
    Likes Received:
    23
    Best Answers:
    7
    Trophy Points:
    138
    #4
    Yes, those are access logs
     
    hostechsupport, Jan 1, 2019 IP
  5. RoseHosting

    RoseHosting Well-Known Member

    Messages:
    219
    Likes Received:
    11
    Best Answers:
    11
    Trophy Points:
    138
    #5
    Open the EasyPHP Apache configuration file and comment out the log line.
     
    RoseHosting, Jan 2, 2019 IP