Apache error.log
Moderator: General Moderators
Apache error.log
I had installed php, mysql, and apache separately and then decided to get rid of them all and try a XAMPP install on windows. Before, when my php files ran into an error, the error.log file in apache would show the error. However with my XAMPP install, no errors get sent to error.log. Any ideas?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Sorry about posting in the wrong forum.
The log file is located at c:\xampp\apache\logs\error.log.
I currently cannot start apache. i changed the logging values in httpd.conf and php.ini and when i couldnt start i set everything back. i still can't start it. i get a message in my event viewer that says it couldnt start apache because it cannot open error.log. i gave everyone permission to the logs and still no go. :-/
The log file is located at c:\xampp\apache\logs\error.log.
I currently cannot start apache. i changed the logging values in httpd.conf and php.ini and when i couldnt start i set everything back. i still can't start it. i get a message in my event viewer that says it couldnt start apache because it cannot open error.log. i gave everyone permission to the logs and still no go. :-/
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Change that to either:
or
and see if that helps. It might not, but then again, it might.
Code: Select all
"C:\\xampp\\apache\\logs\\error.log"Code: Select all
"C:/xampp/apache/logs/error.log"the first one there was what was causing apache not to start. the second is what i needed to change the path to. why they want "/" and not "" will never make sense to me as a backslash is usually used for a path but thats beyond me. I also was able to get php to log its errors with a couple changes to the php.ini file. Thanks a bunch Everah.Everah wrote:Change that to either:orCode: Select all
"C:\\xampp\\apache\\logs\\error.log"and see if that helps. It might not, but then again, it might.Code: Select all
"C:/xampp/apache/logs/error.log"
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Backslash '\' is an escape character in many respects. In Apache, it it used in various regular expression pattern handlings, so it needs to be escaped itself. On Windows, Apache sees the forward slash '/' as a completely acceptable path separator and will use that the same way that '\\' is used, typically.
But the cool thing is you got it fixed. Good job.
But the cool thing is you got it fixed. Good job.
I did not know that. Learn something new everydayEverah wrote:Backslash '\' is an escape character in many respects. In Apache, it it used in various regular expression pattern handlings, so it needs to be escaped itself. On Windows, Apache sees the forward slash '/' as a completely acceptable path separator and will use that the same way that '\\' is used, typically.