sivanath.nagendran Posted December 5, 2006 Share Posted December 5, 2006 Hi I am newbie to web developing area. If I try open the Error file then it shows the messege box like this [size=10pt][b][size=10pt]error.log file is too large for notepad[/size][/b][/size]. 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 helpBySivanath.N Quote Link to comment Share on other sites More sharing options...
fert Posted December 5, 2006 Share Posted December 5, 2006 you could delete the file and apache will re-create it. Quote Link to comment Share on other sites More sharing options...
steviewdr Posted December 5, 2006 Share Posted December 5, 2006 Get a better text file editor.ConText or Edit Plus will handle much larger files than notepad.-steve Quote Link to comment Share on other sites More sharing options...
sivanath.nagendran Posted December 5, 2006 Author Share Posted December 5, 2006 Hi I was try to delete that error.log file from the Apache directory, But still not rectified. Now it shows a messeg box [color=red][font=Verdana][size=10pt][b]" Access is Denied "[/b][/size][/font][/color]. ??? 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.BySivanath.N Quote Link to comment Share on other sites More sharing options...
steviewdr Posted December 6, 2006 Share Posted December 6, 2006 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 Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted December 6, 2006 Share Posted December 6, 2006 [quote author=sivanath.nagendran link=topic=117370.msg479301#msg479301 date=1165353279]Hi I was try to delete that error.log file from the Apache directory, But still not rectified. Now it shows a messeg box [color=red][font=Verdana][size=10pt][b]" Access is Denied "[/b][/size][/font][/color]. ??? 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.BySivanath.N[/quote]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. Quote Link to comment Share on other sites More sharing options...
sivanath.nagendran Posted December 6, 2006 Author Share Posted December 6, 2006 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 youBySivanath.N Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted December 7, 2006 Share Posted December 7, 2006 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:[code]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).[/code] Quote Link to comment Share on other sites More sharing options...
sivanath.nagendran Posted December 11, 2006 Author Share Posted December 11, 2006 hI Wildteen Thanks for your attention to this. It's really useful for me. Millions of thanks to you.BySivanath.N Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.