Jump to content


Photo

* [RESOLVED] *


  • Please log in to reply
8 replies to this topic

#1 sivanath.nagendran

sivanath.nagendran

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 04 December 2006 - 08:06 PM

Hi

   I am newbie to web developing area. If I try open the Error file then it shows the messege box like this  error.log file is too large for notepad. I should tried to open the file in other windows also like Wordpad ad etc...,  But it can't be opened? what is the solution for this?

     I was try to delete that error.log file from the Apache directory, But still it is not rectified. After deleted that, then it shows a messeg box " Access is Denied ".   Oh!!!! ???
  What will I do now? pls help me for this. Without the error.log file, very difficult to find error on my project.  :'(

Pls anyone can help me for this?

Advance thanks for your help

By
Sivanath.N

#2 fert

fert

    Advanced Member

  • Members
  • PipPipPip
  • 1,114 posts

Posted 04 December 2006 - 08:13 PM

you could delete the file and apache will re-create it.

Si hoc legere scis nimium eruditionis habes
Gentoo Linux 2007.0 Firefox 2

#3 steviewdr

steviewdr

    Advanced Member

  • Gurus
  • 1,364 posts
  • LocationIreland

Posted 05 December 2006 - 04:16 AM

Get a better text file editor.

ConText or Edit Plus will handle much larger files than notepad.

-steve

#4 sivanath.nagendran

sivanath.nagendran

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 05 December 2006 - 04:14 PM

Hi

  I was try to delete that error.log file from the Apache directory, But still not rectified. Now it shows a messeg box " Access is Denied ".  ???
  What will I oo now? pls help me for this. Without It's very difficult ot find error on my project. :'(

Advance thanks for your help.

By
Sivanath.N

#5 steviewdr

steviewdr

    Advanced Member

  • Gurus
  • 1,364 posts
  • LocationIreland

Posted 06 December 2006 - 04:12 AM

You cant delete that error.log unless you stop apache. There should be a control in the start menu for it.

As I said before - you dont need to delete it. Get a proper text program such as editplus or context - they will handle 100mb txt files.

-steve

#6 wildteen88

wildteen88

    Advanced Member

  • Staff Alumni
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 06 December 2006 - 01:25 PM

Hi

  I was try to delete that error.log file from the Apache directory, But still not rectified. Now it shows a messeg box " Access is Denied ".  ???
  What will I oo now? pls help me for this. Without It's very difficult ot find error on my project. :'(

Advance thanks for your help.

By
Sivanath.N

You should turn on display_errors in the php.ini so if there are any errors in your PHP scripts they will be shown when you run the scripts, this saves you having to look in the error log. Also what I tend to do is setup PHP to use its own error log file instead of Apaches error log, this is done by turning on log_errors and setting up the error_log directive.

Another thing I tend to do is to empty the error log at the end of each month or before it gets too large.

#7 sivanath.nagendran

sivanath.nagendran

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 06 December 2006 - 03:09 PM

Hi wildteen

  I was turn on display_errors in the php.ini . How to setup PHP to use its own error log file instead of Apaches error log?
Now where should I go and have a look for PHP coding error? I mean which folder contain that PHP-error log file.

Thanks to you

By
Sivanath.N

#8 wildteen88

wildteen88

    Advanced Member

  • Staff Alumni
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 07 December 2006 - 01:29 PM

You create the file your self and then you tell PHP where to log the files to.

So ifyou ahve PHP installed in the root of the hard drive (C:) in a folder called PHP (C:/PHP) and you created a php.log file in that folder for logging PHP errors, then you'll setup the error_log directive like so:
error_log = "C:/PHP/php.log"

Now wehen you save the php.ini and restart the server PHP should now log its error in php.log file in C:/PHP (not make sure log_errors directive is turned On for PHP to log its errors in the log file you just setup).


#9 sivanath.nagendran

sivanath.nagendran

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 11 December 2006 - 04:55 PM

hI Wildteen

    Thanks for your attention to this. It's really useful for me. Millions of thanks to you.

By
Sivanath.N




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com