PMA Errors | Odd redirect to localhost

Jasper Frumau jasperfrumau at
Tue Aug 17 22:52:49 PDT 2010

Hi there again everyone,

Been having two problems I need to solved to run my MAMP server perfectly
using MacPorts. I have two problems as far I can see:

1/I Installed PHPMyAdmin using MacPorts. When I go to localhost/phpmyadmin I
get the logon screen where I can login as root. But after logging in I only
see ��5:q! Very odd. Here the access log:

jaspersmbp:logs jasper$ tail access_log - - [18/Aug/2010:09:20:12 +0400] "GET
/phpmyadmin/themes/original/img/b_help.png HTTP/1.1" 200 229 - - [18/Aug/2010:09:20:12 +0400] "GET
/phpmyadmin/themes/original/img/s_notice.png HTTP/1.1" 200 247 - - [18/Aug/2010:09:20:23 +0400] "POST /phpmyadmin/index.php
HTTP/1.1" 302 6 - - [18/Aug/2010:09:20:23 +0400] "GET
/phpmyadmin/index.php?token=a3a481deda5d9b796a79bf3785271014 HTTP/1.1" 200
7671 - - [18/Aug/2010:09:20:23 +0400] "GET
HTTP/1.1" 200 21391 - - [18/Aug/2010:09:20:24 +0400] "GET
/phpmyadmin/themes/original/img/s_error.png HTTP/1.1" 200 272 - - [18/Aug/2010:09:20:28 +0400] "POST /phpmyadmin/index.php
HTTP/1.1" 302 6 - - [18/Aug/2010:09:20:28 +0400] "GET
/phpmyadmin/index.php?token=a3a481deda5d9b796a79bf3785271014 HTTP/1.1" 200
2405 - - [18/Aug/2010:09:20:28 +0400] "GET /phpmyadmin/js/common.js
HTTP/1.1" 200 13230
::1 - - [18/Aug/2010:09:28:59 +0400] "POST /phpmyadmin/index.php HTTP/1.1"
302 6

I did not find a any significant errors in the error log. In PHP logs I
found this:

jaspersmbp:bin jasper$ tail /var/log/php-scripts.log
[18-Aug-2010 09:46:18] PHP Warning:  Cannot open 'extra/php_browscap.ini'
for reading in Unknown on line 0

I doubt it is related....

pma is located in /opt/local/www/phpmyadmin as my DocumentRoot is:

jaspersmbp:conf jasper$ cat httpd.conf | grep DocumentRoot
# DocumentRoot: The directory out of which you will serve your
DocumentRoot "/opt/local/www"
# This should be changed to whatever you set DocumentRoot to.
    # access content that does not live under the DocumentRoot.

(I changed DocumentRoot about a week ago as I prefer things to be in www and
I wanted to start working with virtualhost as well..)

And these are the CHMOD/CHOWN right on phpmyadmin and all files is www for
that matter:
jaspersmbp:www jasper$ ls -l | grep phpmyadmin
drwxr-xr-x  100 jasper  admin     3400 Jul 29 12:11 phpmyadmin

Should I change the group pma is in and all files for that matter?

Anyone ever had this problem with PMA and knows how to solve this?

2/When I enter gmail in the address bar or Facebook the browser - Firefox -
now redirects me to localhost instead of forwarding me to Google. This is my
hosts file:

jaspersmbp:extra jasper$ cat /etc/hosts
# Host Database
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##    localhost    jaspersmbp    broadcasthost
::1             localhost
fe80::1%lo0    localhost

Any ideas how this could happen?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list