View previous topic :: View next topic |
Author |
Message |
woZa Guru
Joined: 18 Nov 2003 Posts: 340 Location: The Steel City - UK
|
Posted: Sun Feb 06, 2005 8:26 pm Post subject: phpmyadmin connection refused (SOLVED) |
|
|
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 |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sun Feb 06, 2005 9:39 pm Post subject: |
|
|
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 |
|
|
woZa Guru
Joined: 18 Nov 2003 Posts: 340 Location: The Steel City - UK
|
Posted: Mon Feb 07, 2005 10:54 am Post subject: |
|
|
Thanks for the reply...
Ahh! So I need apache started!
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 |
|
|
woZa Guru
Joined: 18 Nov 2003 Posts: 340 Location: The Steel City - UK
|
Posted: Mon Feb 07, 2005 1:50 pm Post subject: |
|
|
Ok... I have solved log dir error by
Code: | mkdir /var/log/apache2 |
and the servername error by uncommenting the 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 |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon Feb 07, 2005 2:39 pm Post subject: |
|
|
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 |
|
|
woZa Guru
Joined: 18 Nov 2003 Posts: 340 Location: The Steel City - UK
|
Posted: Mon Feb 07, 2005 2:47 pm Post subject: |
|
|
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 |
|
|
|