Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having issues with phpMyAdmin on my Mac. I cannot seem to connect to the local MySQL server. When I try to log in I get the following message

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

I am now trying to find the log file. I ran phpinfo() and it tells me that the php.ini file is located in /etc, however when I look I only can see php.ini.default. I proceed to edit php.ini.default by specifying the log file to /tmp/php_errors and enable logging.

I tried to log into the MySQL server via phpMyAdmin and I still get the same error. I proceed to /tmp but the error log is not there.

Any suggestions on what I may be doing wrong?

share|improve this question
up vote 8 down vote accepted

Try renaming php.ini.default to php.ini and edit it to enable the logging you want.

The changes probably won't take effect until Apache is restarted. Since you are using a Mac, just disable web sharing and re-enable it.

share|improve this answer

Apache's logs are located under /var/log/apache2

share|improve this answer
When a location isn't specified in php.ini, the PHP error log does seem to be found in /var/log/apache2/error_log by default. Thanks. – Andrew Huey Jun 7 '12 at 11:10
I have a custom apache install, so I found my log files with find /usr/local -name error_log . – Walrus the Cat Apr 20 '15 at 5:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .