PMA Errors | Odd redirect to localhost

Jasper Frumau jasperfrumau at gmail.com
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
127.0.0.1 - - [18/Aug/2010:09:20:12 +0400] "GET
/phpmyadmin/themes/original/img/b_help.png HTTP/1.1" 200 229
127.0.0.1 - - [18/Aug/2010:09:20:12 +0400] "GET
/phpmyadmin/themes/original/img/s_notice.png HTTP/1.1" 200 247
127.0.0.1 - - [18/Aug/2010:09:20:23 +0400] "POST /phpmyadmin/index.php
HTTP/1.1" 302 6
127.0.0.1 - - [18/Aug/2010:09:20:23 +0400] "GET
/phpmyadmin/index.php?token=a3a481deda5d9b796a79bf3785271014 HTTP/1.1" 200
7671
127.0.0.1 - - [18/Aug/2010:09:20:23 +0400] "GET
/phpmyadmin/phpmyadmin.css.php?token=a3a481deda5d9b796a79bf3785271014&js_frame=right&nocache=3841169428
HTTP/1.1" 200 21391
127.0.0.1 - - [18/Aug/2010:09:20:24 +0400] "GET
/phpmyadmin/themes/original/img/s_error.png HTTP/1.1" 200 272
127.0.0.1 - - [18/Aug/2010:09:20:28 +0400] "POST /phpmyadmin/index.php
HTTP/1.1" 302 6
127.0.0.1 - - [18/Aug/2010:09:20:28 +0400] "GET
/phpmyadmin/index.php?token=a3a481deda5d9b796a79bf3785271014 HTTP/1.1" 200
2405
127.0.0.1 - - [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.
##
127.0.0.1    localhost
127.0.0.1    jaspersmbp
255.255.255.255    broadcasthost
::1             localhost
fe80::1%lo0    localhost


Any ideas how this could happen?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20100818/b1914aa3/attachment.html>


More information about the macports-users mailing list