Page 1 of 1

phpMyAdmin gives errors, Apache stays silent

Posted: Wed Sep 12, 2012 12:41 pm
by Crayon Shin Chan
I'm running Mountain Lion, using the included Apache 2.2.2 with PHP 5.3, and I got phpMyAdmin running once, and setup a Drupal site on localhost. However, without my doing anything, now phpMyAdmin refuses to start.

phpMyAdmin - Error

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


This would be simple if there actually were errors in /private/var/log/apache2/error_log. Instead, absolutely nothing important is shown there:
[Mon Sep 10 01:52:00 2012] [notice] Apache/2.2.22 (Unix) DAV/2 PHP/5.3.13 with Suhosin-Patch mod_ssl/2.2.22 OpenSSL/0.9.8r configured -- resuming normal operations
[Thu Sep 13 01:14:41 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Sep 13 01:14:41 2012] [notice] Digest: generating secret for digest authentication ...
[Thu Sep 13 01:14:41 2012] [notice] Digest: done
[Thu Sep 13 01:14:41 2012] [notice] Apache/2.2.22 (Unix) DAV/2 PHP/5.3.13 with Suhosin-Patch mod_ssl/2.2.22 OpenSSL/0.9.8r configured -- resuming normal operations
[Thu Sep 13 01:26:11 2012] [error] [client ::1] File does not exist: /Library/WebServer/Documents/favicon.ico
[Thu Sep 13 01:29:45 2012] [error] [client ::1] File does not exist: /Users/shinichi/Sites/phpmyadmin/setup/favicon.ico
[Thu Sep 13 01:29:45 2012] [error] [client ::1] File does not exist: /Users/shinichi/Sites/phpmyadmin/setup/favicon.ico


When I refresh the page, new entries are added to access_log, but nothing new pops up in error_log, even with LogLevel debug and a sudo apachectl stop/start.

Re: phpMyAdmin gives errors, Apache stays silent

Posted: Wed Sep 12, 2012 1:14 pm
by Crayon Shin Chan
As if that weren't bad enough, after editing php.ini to get an error_log, I find that it totally ignores me.

EDIT: Solved the issue, apparently this was the problem:
http://wiki.phpmyadmin.net/pma/session.save_path
it wasn't being set, for some reason. And as for httpd ignoring my php.ini, apparently "sudo apachectl restart" wasn't actually restarting it. I had installed a Web Sharing System Preferences extension, and I had to restart the httpd from there for it to have any effect.

Re: phpMyAdmin gives errors, Apache stays silent

Posted: Wed Sep 12, 2012 1:35 pm
by Flatland_Spider
I've found a couple of sites suggesting it's a permissions issue. (http://www.webhostingtalk.com/showthread.php?t=659315, http://www.computerguideonline.com/comp ... your-php-a)

Also, did you restart Apache after changing the php.ini?

Re: phpMyAdmin gives errors, Apache stays silent

Posted: Wed Sep 12, 2012 1:44 pm
by SuperSpy
This happened to me once yesterday and as soon as I restarted my browser (therefore clearing cookies) it stopped.