0

I’m currently encountering the problem described in this older Stackoverflow post.

I notice that one of the first comments to the question suggests :"Have you checked the error logs?"

Can anyone tell me where I can find those error logs ? I am using PHP 5.4.4. with Apache 2.0 and MAMP on my Mac 10.8.5 (Also, I am using Xdebug and getting no error message from it, just getting empty $_FILES and $_POST as explained in the abovementioned post).

This other question suggests that the answer should be "file error_log in /var/log/httpd" but I have no httpd directory in my var/log. It’s there under another name maybe ?

Community
  • 1
  • 1
Ewan Delanoy
  • 1,276
  • 2
  • 13
  • 31
  • First thing to do: `php -i | grep error_log` If no immediate result. Locate the loaded php.ini file for the failing environment and check the value by yourself. Else consult your severs documentation – Rangad Jan 13 '15 at 15:19
  • it might be `/var/log/apache2/error_log` (try with `tail /var/log/apache2/error_log`) – Jan Legner Jan 13 '15 at 15:20
  • on my windows machine logs are in [install_directory]\Apache2\logs – Matej Žvan Jan 13 '15 at 15:20
  • 1
    Have you tried `/Applications/MAMP/logs/` – Varedis Jan 13 '15 at 15:23
  • Judging from the number of downvotes, perhaps I should delete this question ? I apologize for not being very familiar with the standards here – Ewan Delanoy Jan 13 '15 at 15:28

1 Answers1

4

The documentation for MAMP states:

4.5 Where can I find the log files?

All log files are stored in: /Applications/MAMP/logs/

Marek
  • 7,337
  • 1
  • 22
  • 33