Personal computing discussed

Moderators: renee, David, Thresher

 
Crayon Shin Chan
Minister of Gerbil Affairs
Topic Author
Posts: 2313
Joined: Fri Sep 06, 2002 11:14 am
Location: Malaysia
Contact:

phpMyAdmin gives errors, Apache stays silent

Wed Sep 12, 2012 12:41 pm

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.
Mothership: FX-8350, 12GB DDR3, M5A99X EVO, MSI GTX 1070 Sea Hawk, Crucial MX500 500GB
Supply ship: [email protected], 12GB DDR3, M4A88TD-V EVO/USB3
Corsair: Thinkpad X230
 
Crayon Shin Chan
Minister of Gerbil Affairs
Topic Author
Posts: 2313
Joined: Fri Sep 06, 2002 11:14 am
Location: Malaysia
Contact:

Re: phpMyAdmin gives errors, Apache stays silent

Wed Sep 12, 2012 1:14 pm

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.
Mothership: FX-8350, 12GB DDR3, M5A99X EVO, MSI GTX 1070 Sea Hawk, Crucial MX500 500GB
Supply ship: [email protected], 12GB DDR3, M4A88TD-V EVO/USB3
Corsair: Thinkpad X230
 
Flatland_Spider
Graphmaster Gerbil
Posts: 1324
Joined: Mon Sep 13, 2004 8:33 pm

Re: phpMyAdmin gives errors, Apache stays silent

Wed Sep 12, 2012 1:35 pm

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?
 
SuperSpy
Minister of Gerbil Affairs
Posts: 2403
Joined: Thu Sep 12, 2002 9:34 pm
Location: TR Forums

Re: phpMyAdmin gives errors, Apache stays silent

Wed Sep 12, 2012 1:44 pm

This happened to me once yesterday and as soon as I restarted my browser (therefore clearing cookies) it stopped.
Desktop: i7-4790K @4.8 GHz | 32 GB | EVGA Gefore 1060 | Windows 10 x64
Laptop: MacBook Pro 2017 2.9GHz | 16 GB | Radeon Pro 560

Who is online

Users browsing this forum: No registered users and 11 guests
GZIP: On