Apache Error Log File Not Found
Contents |
Start here for a quick overview of the site Help Center Detailed answers to any questions apache error logs ubuntu you might have Meta Discuss the workings and policies of this apache error logs cpanel site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers apache error logs centos or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network where are apache error logs located administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top File not found in apache error log up vote 0 down vote favorite I am trying to work out why we
Where Are Apache Error Logs Stored
are getting alot of error coming into our apache error log that state 'File does not exist:' e.g. File does not exist: /home/FTPUSER/public_html/category, referer: http://www.DOMAIN.co.uk/category/epson-stylus-c40sx/497/0-0-0-0-0-0-0-0/1 (Where FTPUSER is cpanel user name) there isn't a reference to /home/FTPUSER/public_html/category anywhere in the code, any suggestions? please also note that /category/epson-stylus-c40sx/497/0-0-0-0-0-0-0-0/1 is a mod rewrite rule for cat.php?id=497 etc... linux apache-2.2 share|improve this question asked Jul 9 '09 at 9:38 icelizard 4323618 1 Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance. –HopelessN00b Feb 22 at 1:46 add a comment| 4 Answers 4 active oldest votes up vote 1 down vote accepted It appears to me that you are seeing the results of some sort of automated/deliberate attack on your web server. Someone or some program is looking for an application possibly that was installed
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn
Linux Apache Error Log
more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags apache error logging level Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, apache2 could not open error log file helping each other. Join them; it only takes a minute: Sign up Php error log not working up vote 6 down vote favorite 2 It's been working for ages and stopped. I must be missing something obvious so http://serverfault.com/questions/38170/file-not-found-in-apache-error-log figured stack overflow might be able to help. /etc/php5/apache2/php.ini relevant settings are: display_errors = On (not sure if this makes a difference) log_errors = On error_log = "/var/www/error_log.log" In my code I have: echo 'About to log'; error_log('An error'); I see About to log on the page, but nothing in the error log. Any ideas? php apache error-log share|improve this question asked Feb 22 '11 at 0:54 Parris Varney 6,47663056 Check out error_reporting(); it http://stackoverflow.com/questions/5072987/php-error-log-not-working may help or it may not. –tjmoore1993 Feb 22 '11 at 1:00 add a comment| 2 Answers 2 active oldest votes up vote 8 down vote accepted Did you restart the Web server? Until you do php.ini changes are not considered. Also, if you want to track PHP errors, you need to have track_errors=On and error_reporting=E_ALL, although that is not related with error_log calls. Also make sure that the error log file is writeable by the Web server user. share|improve this answer answered Feb 22 '11 at 1:03 mlemos 581718 3 The file wasn't writable, I forgot I deleted and recreated it. Thanks. –Parris Varney Feb 22 '11 at 1:17 add a comment| up vote 7 down vote It ended up being permission issues. The file grew too big to open quickly, so I deleted and recreated it, but with read only permissions. Totally forgot I deleted it, what a pain. share|improve this answer answered Feb 22 '11 at 1:05 Parris Varney 6,47663056 Had the same.... thank you for the hint. Had to create the log file manually and set owner/group to "www-data" (Ubuntu), –cljk Jun 27 '15 at 22:02 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest
for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the http://webmasters.stackexchange.com/questions/42629/file-does-not-exist-in-apache-error-log-when-mod-rewrite-is-using workings and policies of this site About Us Learn more about Stack http://blog.codeasite.com/how-do-i-find-apache-http-server-log-files Overflow the company Business Learn more about hiring developers or posting ads with us Webmasters Questions Tags Users Badges Unanswered Ask Question _ Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute: Sign up Here's error log how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top “File does not exist” in Apache error log when mod_rewrite is using up vote 1 down vote favorite I am getting below error in server log, when re-writing the URLs. [Fri Jan 25 11:32:57 2013] [error] apache error log [client ***IP***] File does not exist: /home/testserver/public_html/testing/flats-in-delhi-for-sale, referer: http://domain.in/testing/flats-in-delhi-for-sale/ I searched very where, but not found any solution. My .htaccess config is given below: Options +FollowSymLinks Options All -Indexes ErrorDocument 404 http://domain.in/testing/404.php RewriteEngine On #Category Link RewriteRule ^([a-zA-Z]+)-in-([a-zA-Z]+)-([a-zA-Z-]+)/?$ view-category.php?type=$1&dis=$2&cat=$3 [NC,L] #Single Property Link RewriteRule ^([a-zA-Z]+)-in-([a-zA-Z]+)-([a-zA-Z-]+)/([a-zA-Z0-9-]+)/?$ view-property.php?type=$1&district=$2&category=$3&title_alias=$4 [NC,L] I also found similar old dated question, but no answer ("File does not exist" in apache error log). Thanks in advance for your help. P.S.: My site is working fine even Apache log is showing the error. apache htaccess mod-rewrite apache-log-files share|improve this question edited Jul 30 '13 at 11:53 Zistoloen 9,27252453 asked Jan 25 '13 at 6:18 Nithin 613 add a comment| 3 Answers 3 active oldest votes up vote 1 down vote I ran into a similar situation yesterday. My website was working fin, but there were errors in Apache's error log. The problem was caused by a mistake in my PHP files, not in my RewriteRule. My PHP files contained the following fragment: The missing slash caused "fi
PHP Applications BUSINESS INTELLIGENCE Analysis Services Power BI Data Visualization SERVICES BUSINESS SERVICES IT Consulting & Advisory AGILE Project Management Customized Training DEVELOPMENT SERVICES Requirements Analysis Application Development & Management PRODUCTS SHAREPOINT Content Type Listing Data Room Document Library Listing RESOURCES RESEARCH & GUIDES Blog eBooks CLIENTS Liquid Planner Login ABOUT CODEASITE Our Team Our Approach Our Partners Blog Monday, 02 March 2009 02:50 How do I find Apache http server log files? Written by Louise Fahys Be the first to comment! From : http://www.cyberciti.biz/faq/apache-logs/ There are two type of apache httpd server log files: Error Logs All apache errors / diagnostic information other errors found while serving requests are logged to this file. Location of error log is set using ErrorLog directive. If there is any problem, you should first take a look at this file using cat, grep or any other UNIX / Linux text utilities. This apache log file often contain details of what went wrong and how to fix it. Default error log file location: RHEL / Red Hat / CentOS / Fedora Linux Apache error file location - /var/log/httpd/error_log Debian / Ubuntu Linux Apache error log file location - /var/log/apache2/error.log FreeBSD Apache error log file location - /var/log/httpd-error.log To find exact apache log file location, you can use grep command:# grep ErrorLog /usr/local/etc/apache22/httpd.conf
# grep ErrorLog /etc/apache2/apache2.conf
# grep ErrorLog /etc/httpd/conf/httpd.conf Sample output: # ErrorLog: The location of the error log file.# If you do not specify an ErrorLog directive within a ErrorLog "/var/log/httpd-error.log" Access Logs Apache server records all incoming requests and all requests processed to a log file. The format of the access log is highly configurable. The location and content of the access log are controlled by the CustomLog directive. Default apache access log file location: RHEL / Red Hat / CentOS / Fedora Linux Apache access file location - /var/log/httpd/access_log Debian / Ubuntu Linux Apache access log file location - /var/log/apache2/access.log FreeBSD Apache access log file location - /var/log/httpd-access.log To find exact apache log file location, you can use grep command:# grep CustomLog /usr/local/etc/apache22/httpd.conf
# grep CustomLog /etc/apache2/apache2.conf
# grep CustomLog /etc/httpd/conf/httpd.conf Sample output