Why MAMP doesn't display errors?

前端 未结 10 1099
我寻月下人不归
我寻月下人不归 2020-12-13 08:57

OK this is getting very frustrating. MAMP used to display errors but then stopped. I decided to do a fresh install of it as I couldn\'t figure it out. I check my PHP version

相关标签:
10条回答
  • 2020-12-13 09:20

    Also there is a template saved in MAMP of the php.ini. Go to File > Edit Template > PHP > Your Version.

    0 讨论(0)
  • There are two php.ini files on MAMP. You should change both php.ini files.

    1. Applications/MAMP/bin/php/'php version you are using(php5.5.10)'/conf/php.ini
    2. Applications/MAMP/conf/php/'php version you are using(php5.5.10)'/conf/php.ini

    Then change:

    display_errors = Off 
    

    to:

    display_errors = On
    
    0 讨论(0)
  • 2020-12-13 09:21

    If you are using MAMP version 3.2.2 then you only need to change one php.ini file:

    Mac: Applications/MAMP/conf/'(php7.0.9)'/php.ini

    Windows: C:\MAMP\conf\PHP Version you use'(php7.0.9)'\php.ini

    I know this is an old post but MAMP keeps changing their configuration of the files so I hope this helps.

    0 讨论(0)
  • 2020-12-13 09:28

    Change the setting in your php.ini file. The file is located in MAMP > conf > php5 > php.ini

    Look for display_errors = Off and change to display_errors = On

    After that you need to restart your Apache and MySQL servers for the change to take effect.

    0 讨论(0)
提交回复
热议问题