Ask Experts Questions for FREE Help !
Ask
    Mister XYZ's Avatar
    Mister XYZ Posts: 2, Reputation: 1
    New Member
     
    #1

    Jul 22, 2009, 06:15 PM
    Can I delete Apache log error?
    Hi.

    Im currently using Apache HTTP Server 2.0.63. I wonder if I can delete 1 file called error under the following address: C:\Program Files\Apache Group\Apache2\logs. This is due to the space it has taken up. It took up 9+ GB fyi. And I will appreciate if anyone will guide me how to delete it away. Since I try quite a few time deleting. But error message was: Cannot delete error : Access is denied.

    Help! Thanks
    megamanhood's Avatar
    megamanhood Posts: 32, Reputation: 2
    Junior Member
     
    #2

    Jul 30, 2009, 09:00 AM

    The Apache log file is locked when the server is running... so you are not able to delete it.

    Open the cmd prompt window and try this simple script:

    Net stop apache2
    Del "C:\Program Files\Apache Group\Apache2\logs"\error.log
    Net start apache2

    The first line stops the Apache web server.
    The second line deletes the log file.
    The 3rd line restarts the server.

    You may like to copy the above scripts to a batch file and post it to your desktop.

    Another way is to directly go the Window Services (Start->Run->services.msc) and stop the Apache web server services. Then open up explorer, located the log file and delete it. Restart the Apache service again.

    Hope it helps.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

PHP, MySQL, apache l [ 2 Answers ]

I am trying to install php5, the latest version of apache webserver and the latest version of mysql on a windows xp sp2 laptop. I also want to use Zend dev environment to write my php. I can install php4 and apache 1.3.3 with zend, and everything works fine. The problem is I'm trying to use...

Php, apache, mysql [ 3 Answers ]

I am trying to install php5, the latest version of apache webserver and the latest version of mysql on a windows xp sp2 laptop. I also want to use Zend dev environment to write my php. I can install php4 and apache 1.3.3 with zend, and everything works fine. The problem is I'm trying to use...

Connecting to MySQL with PHP on Apache 2.2 [ 2 Answers ]

Hello all, Just a little background on my system. I am running Windows XP Pro SP2. Firewall is disabled. Running Apache 2.2, PHP5 and MySQL server 5.1. I am trying to simple interface with my MySQL database using a webpage running PHP. I have tried using the mysql_connect(host, name,...

His Apache Name [ 3 Answers ]

Geronimo was the name given to him by the Mexicans but what was is Apache name?


View more questions Search