Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

up vote 7 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
5  
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. –  AndyH Jun 7 '12 at 11:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.