Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Connection to host localhost is broken.
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
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Sun Feb 10, 2008 6:10 am    Post subject: [solved] Connection to host localhost is broken. Reply with quote

In the past when I typed in url: localhost or 127.0.0.1 I got apache web-server, but now I get an error message:
"Connection to host localhost is broken."

My virtual-domain is running OK, apache is starting OK
My "/etc/hosts"
127.0.0.1 localhost.localdomain localhost syscon1

What else should I check?


Last edited by Joseph_sys on Sun Feb 10, 2008 8:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Sun Feb 10, 2008 6:37 am    Post subject: Reply with quote

Here is an example of my problem, when I try to access with Firefox /localhost/phpmyadmin/index.php
Apache log is showing:
Sat Feb 09 23:34:33 2008] [error] [client 127.0.0.1] script '/var/www/localhost/htdocs/phpmyadmin/index.php...' not found or unable to stat

The file does exist:
-rw-r--r-- 2 root root /var/www/localhost/htdocs/phpmyadmin/index.php
Back to top
View user's profile Send private message
Zhaozhou
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2007
Posts: 121
Location: Sweden

PostPosted: Sun Feb 10, 2008 11:25 am    Post subject: Reply with quote

How about interface lo? Is it up?

Oops! /ignore zhaozhou, noticed apaches log.
_________________
lunix.
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Sun Feb 10, 2008 5:19 pm    Post subject: Reply with quote

Zhaozhou wrote:
How about interface lo? Is it up?

Oops! /ignore zhaozhou, noticed apaches log.


Yes, "lo" is up.
It seems to me the latest upgrade introduced some bug into phpmyadmin so it doesn't know how to access mysql.

Is there an alternative to phpmyadmin?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22139

PostPosted: Sun Feb 10, 2008 5:22 pm    Post subject: Reply with quote

I interpret the message in the error log to mean that Apache never even tried to run your PHP script, because it could not find it. Have the mappings of virtual directories to filesystem directories changed? Is PHP support still enabled in your Apache configuration? I saw a post yesterday where someone had a PHP script break down because he had disabled PHP support in the Apache configuration when he updated his configuration files.
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Sun Feb 10, 2008 6:21 pm    Post subject: Reply with quote

Hu wrote:
I interpret the message in the error log to mean that Apache never even tried to run your PHP script, because it could not find it. Have the mappings of virtual directories to filesystem directories changed? Is PHP support still enabled in your Apache configuration? I saw a post yesterday where someone had a PHP script break down because he had disabled PHP support in the Apache configuration when he updated his configuration files.


I have php compile into the Apache and support is enabled:
Code:
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D SUEXEC -D PHP5"

Besides, I have another virtual-domain on the same server and php is working without any problems.
It only happens when I try to run file "index.php" from: /localhost/phpmyadmin/index.php
the strange part is that if I try to run any *.php script from dir below it "scripts" they are loading just fine, eg:
/localhost/phpmyadmin/scripts/setup.php
That latest upgrade screw someting up, I update these programs:
Code:
package x11-base/xorg-server-1.3.0.0-r5
package dev-lang/php-5.2.5_p20080206
package sys-apps/slocate-3.1-r1
package dev-libs/glib-2.14.6
ackage sys-process/psmisc-22.6
package dev-python/pycairo-1.4.0
package dev-python/pycairo-1.4.12
package sys-apps/man-1.6f
package sys-apps/file-4.21-r1
package sys-apps/file-4.23
package sys-libs/cracklib-2.8.12
package dev-libs/libxml2-2.6.30-r1
package sys-libs/readline-5.2_p12-r1
package sys-apps/less-418
package sys-apps/pciutils-2.2.9
package dev-libs/libpcre-7.6
ackage media-libs/tiff-3.8.2-r3
package sys-libs/timezone-data-2007k

Both my backup server and my main server acting the same way, /localhost/phpmyadmin/index.php tries to open with a text editor.
My third backup server, which i did not updated yet, is loading
"phpmyadmin/index.php" and mysql database just fine.
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Sun Feb 10, 2008 8:09 pm    Post subject: Reply with quote

I just installed eskuel
http://www.phptools4u.com/scripts/eskuel/?lang=english
and it is working perfectly; I can access mysql databases and manipulate it. Perfect alternative to phpmyadmin.

It means that package dev-lang/php-5.2.5_p20080206 introduced some compatibility with phpmyadmin.
To test it I downgraded to dev-lang/php-5.2.5-r1 and phpmyadmin is working perfectly.

It is time to file another bug :-/
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