Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
phpmyadmin connection refused (SOLVED)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
woZa
Guru
Guru


Joined: 18 Nov 2003
Posts: 340
Location: The Steel City - UK

PostPosted: Sun Feb 06, 2005 8:26 pm    Post subject: phpmyadmin connection refused (SOLVED) Reply with quote

I have emerge phpmyadmin and follwed the instructions output at the end of the emerge but when I point my browser to
Code:
http://localhost/phpmyadmin


I get the reply
Code:
The connection was refused when attempting to contact localhost.


I have tried my ip and hostname instead of localhost, tried the path to the phpmyadmin folder and tried disabling my shorewall (firewall) all without success.

Anyone know what I am doing wrong?

Thanks in advance
_________________
A few months struggling with gentoo is better than a lifetime struggling with windoze!


Last edited by woZa on Mon Feb 07, 2005 8:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sun Feb 06, 2005 9:39 pm    Post subject: Reply with quote

Does connecting to localhost itself works, i.e. are the standard apache permissions sufficient ?
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
woZa
Guru
Guru


Joined: 18 Nov 2003
Posts: 340
Location: The Steel City - UK

PostPosted: Mon Feb 07, 2005 10:54 am    Post subject: Reply with quote

Thanks for the reply...

Ahh! So I need apache started! :oops:

Code:
/etc/init.d/apache2 start


gives output
Code:
Starting apache2...
apache2: Could not determine the server's fully qualified domain name, using 192.168.0.1 for ServerName
(2)No such file or directory: apache2: could not open error log file /usr/lib/apache2/logs/error_log.
Unable to open logs


Code:
ls /usr/lib/apache2/

build  conf  extramodules  lib  logs  modules


but
Code:
cd logs

bash: cd: logs: No such file or directory


/etc/hostname is set as is /etc/dnsdomainname

Hmmm. even more confused now!
_________________
A few months struggling with gentoo is better than a lifetime struggling with windoze!
Back to top
View user's profile Send private message
woZa
Guru
Guru


Joined: 18 Nov 2003
Posts: 340
Location: The Steel City - UK

PostPosted: Mon Feb 07, 2005 1:50 pm    Post subject: Reply with quote

Ok... I have solved log dir error by
Code:
mkdir /var/log/apache2

and the servername error by uncommenting the
Code:
ServerName
field in
Code:
/etc/apache2/conf/apache2.conf

Now pointing browser to
Code:
http://localhost/phpmyadmin
shows me the page code

Code:
<?php
/* $Id: index.php,v 2.14 2004/10/19 17:23:09 nijel Exp $ */
// vim: expandtab sw=4 ts=4 sts=4:

/**
 * Gets core libraries and defines some variables
 */
require_once('./libraries/grab_globals.lib.php');
require_once('./libraries/common.lib.php');
/**
 * Includes the ThemeManager if it hasn't been included yet
 */
require_once('./libraries/select_theme.lib.php');

/**
 * Saves collation_connection (coming from main.php) in a cookie
 */
etc.........
rather than the actual page...

Getting there!
_________________
A few months struggling with gentoo is better than a lifetime struggling with windoze!
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Mon Feb 07, 2005 2:39 pm    Post subject: Reply with quote

You have to add PHP support to apache; edit /etc/conf.d/apache2 and add "-D PHP4" to the options.
Also uncomment it if it isn't!
...and restart apache, of course.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
woZa
Guru
Guru


Joined: 18 Nov 2003
Posts: 340
Location: The Steel City - UK

PostPosted: Mon Feb 07, 2005 2:47 pm    Post subject: Reply with quote

That did it.... Thanks a bunch!!!

I'll buy you a beer next time i'm in Rotterdam!
_________________
A few months struggling with gentoo is better than a lifetime struggling with windoze!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum