Where Does PHP'S Error Log Reside in Xampp

Where does PHP's error log reside in XAMPP?

\xampp\apache\logs\error.log, where xampp is your installation folder.
If you haven't changed the error_log setting in PHP (check with phpinfo()), it will be logged to the Apache log.

Find out the error_log's path

An internal server error has often something to do with Apache and /var/log/httpd/ is the error log file of Apache, so I think you are in the right file.


The error path is set in php.ini. To get the path use ini_get():

<?php
$errorPath = ini_get('error_log');
?>

What is the PHP built-in server error log location?

The built-in webserver doesn't log anywhere by default, so you need to provide a php.ini for it to customise this. For example, if you created a file called php.ini with this content:

error_log = /Users/me/test.log
log_errors = on
date.timezone = UTC

Then you can start PHP's built-in webserver like this:

php -S 127.0.0.1:8080 -c php.ini

And error_log() calls will be logged to the file you've specified.

Logging in PHP using XAMPP

yes there is a function named error_log

official description: http://php.net/manual/en/function.error-log.php

Site works locally on XAMPP but not when uploaded to the web error 500 htaccess

If you look here:
http://symfony.com/doc/current/reference/requirements.html
you will see this:

PHP needs to be a minimum version of PHP 5.5.9

and you wrote that phpinfo() returned this:

returned successfully the version 5.3.28

So, are you using older version of Symfony? At first it looks like you'll need to upgrade PHP (or downgrade Symfony...)



Related Topics



Leave a reply



Submit