logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: No response at localhost
Author
pallosp



Joined: 24 Jun 2007
Posts: 7

PostPosted: Mon 25 Jun '07 14:56    Post subject: No response at localhost Reply with quote

I installed the latest, 2.2.4 Apache under Windows XP SP2. The service starts successfully, but the demo page doesn't load even with the default httpd.conf. The syntax of the configuration file is OK and there is no port collision. What can be the problem?

I suspect that some required services are not started. If that's the case what does Apache2 service depend on?

Another piece of information: I tried to install IndigoPerl, maybe its setup.bat messed up something.

Finally I found a clue in the Event Viewer:
Product: Apache HTTP Server 2.2.4 -- Internal Error 2318. C:\Langs\Perl\apache\bin\iconv\windows-1255.so

Thanks for your help in advance

------------------------------------------------

httpd.conf:
ServerRoot "C:/Langs/Perl/apache"
Listen 80
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule userdir_module modules/mod_userdir.so
DocumentRoot "C:/Langs/Perl/apache/htdocs"
<Directory "C:/Langs/Perl/apache/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
ScriptAlias /cgi-bin/ "C:/Langs/Perl/apache/cgi-bin/"

<Directory "C:/Langs/Perl/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>



netstat -an:
Code:


Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    0.0.0.0:80             0.0.0.0:0              LISTENING
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:2869           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:53423          0.0.0.0:0              LISTENING
  TCP    127.0.0.1:1027         0.0.0.0:0              LISTENING
  TCP    127.0.0.1:1504         127.0.0.1:1505         ESTABLISHED
  TCP    127.0.0.1:1505         127.0.0.1:1504         ESTABLISHED
  TCP    127.0.0.1:1506         127.0.0.1:1507         ESTABLISHED
  TCP    127.0.0.1:1507         127.0.0.1:1506         ESTABLISHED
  TCP    192.168.0.100:139      0.0.0.0:0              LISTENING
  TCP    192.168.0.100:1483     207.46.111.93:1863     ESTABLISHED
  TCP    192.168.0.100:1498     18.82.7.165:47172      ESTABLISHED
  TCP    192.168.0.100:1527     209.85.137.83:80       ESTABLISHED
  TCP    192.168.0.100:1573     72.14.217.91:80        ESTABLISHED
  UDP    0.0.0.0:445            *:*                   
  UDP    0.0.0.0:500            *:*                   
  UDP    0.0.0.0:4500           *:*                   
  UDP    0.0.0.0:53423          *:*                   
  UDP    127.0.0.1:123          *:*                   
  UDP    127.0.0.1:1037         *:*                   
  UDP    127.0.0.1:1059         *:*                   
  UDP    127.0.0.1:1514         *:*                   
  UDP    127.0.0.1:1521         *:*                   
  UDP    127.0.0.1:1900         *:*                   
  UDP    192.168.0.100:9        *:*                   
  UDP    192.168.0.100:123      *:*                   
  UDP    192.168.0.100:137      *:*                   
  UDP    192.168.0.100:138      *:*                   
  UDP    192.168.0.100:1900     *:*

Modnote: removed unneed stuff from the whole posted httpd.conf!!
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Mon 25 Jun '07 17:37    Post subject: Reply with quote

If you downloaded Apache 2.2.4 from Apache Lounge - this download doesn't seem to include the bin\iconv directory for character set conversions.

windows-1255 is the character set for the Hebrew language.

One thing you might try: I put all the iconv files at http://www.tomdonovan.net/download/iconv.zip

You can download iconv.zip and unzip it (preserving directories) into your Apache directory. i.e. unzip it into C:\Langs\Perl\apache
This should create the directory C:\Langs\Perl\apache\bin\iconv with all the necessary files.

Note that iconv.zip can *only* work with Apache 2.2.4 from Apache Lounge.
Don't try to use it if you downloaded Apache from http://httpd.apache.org or anywhere else.

-tom-

p.s. The iconv translations are usually caused by the Apache module mod_charset_lite.
You may want to check carefully that this module is not used in your Apache configuration.
Back to top
pallosp



Joined: 24 Jun 2007
Posts: 7

PostPosted: Mon 25 Jun '07 23:23    Post subject: Reply with quote

I've downloaded the installer from http://httpd.apache.org/download.cgi, not from Apache Lounge.
I tried returning to v2.0.59, but it produces the same phenomenon, gives no response after a clean install. The only difference was that it reported a successful install without the windows-1255 character set issue in the event log.
Replacing the iconv directory had no effect as I waited. The mod_charset_lite module is not loaded in the httpd.conf.
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Tue 26 Jun '07 0:30    Post subject: Reply with quote

Maybe the windows-1255/Hebrew charset thing is not the cause of your problem. Does your site have any Hebrew language files or users?

re: "Replacing the iconv directory had no effect... "
I hope you didn't try to use iconv.zip with a copy of Apache downloaded from http://httpd.apache.org !

One other possibility is the Windows XP Firewall.
    Open [Control Panel] [Windows Firewall] [Exceptions]

    You should have an entry for Apache HTTP Server, and the box shoud be checked.

    If you click [Edit] for this entry, you can see if the Path is correct (C:\Langs\Perl\apache\bin\httpd.exe)

    Click [Change Scope] and make sure the scope is set for Any computer (including those on the Internet)
-tom-
Back to top
pallosp



Joined: 24 Jun 2007
Posts: 7

PostPosted: Tue 26 Jun '07 10:10    Post subject: Reply with quote

No, the htdocs/index.html or the htdocs/index.html.en doesn't contain hebrew characters.

I tried the new iconv library with both version, but since then I reinstalled everything at least two times. I think as the web server hasn't generated content at all, the conversion functions weren't called so the possible incompatibility didn't cause any harm. Even if it corrupted some configuration files, they've already overwritten by the originals.

The Windows Firewall is disabled, I use hardware firewall instead. The file monitor and the internet monitor in NOD32 doesn't block localhost.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 26 Jun '07 14:44    Post subject: Reply with quote

in this Topic A user told us that the monintor affects Apache.
Back to top
pallosp



Joined: 24 Jun 2007
Posts: 7

PostPosted: Tue 26 Jun '07 18:48    Post subject: Reply with quote

It would be very strange, anyway I tried running Apache without the Monitor. Nothing changed.
Is there a tool in Windows that monitors where the HTTP request is blocked?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sat 30 Jun '07 22:41    Post subject: Reply with quote

try to start apache from the commandline (cmd.exe)
with

Code:

httpd -e debug -w


Does your apache run without that perl

try netstat -nb so see if there is another program listen on Port 80
Back to top
pallosp



Joined: 24 Jun 2007
Posts: 7

PostPosted: Wed 04 Jul '07 20:12    Post subject: Reply with quote

Now a pure 2.0.59 is installed.

apache -e debug -w reports:

[Wed Jul 04 19:54:44 2007] [debug] mod_so.c(248): loaded module access_module
...
[Wed Jul 04 19:54:44 2007] [debug] mod_so.c(248): loaded module userdir_module

All modules listed in httpd.conf are loaded without problem.

results of netstat -nb

Proto Local Address Foreign Address State PID
TCP 192.168.0.100:1981 209.85.135.99:80 TIME_WAIT 0
TCP 192.168.0.100:1982 63.245.213.14:80 TIME_WAIT 0
TCP 192.168.0.100:1983 209.85.135.99:80 TIME_WAIT 0
TCP 192.168.0.100:1988 209.85.135.103:80 TIME_WAIT 0
TCP 192.168.0.100:1989 209.85.135.103:80 TIME_WAIT 0

Starting Apache doesn't change anything.

Starting Firefox with about:blank home page adds some new entries:

TCP 127.0.0.1:1990 127.0.0.1:1991 ESTABLISHED 3968
[firefox.exe]
TCP 127.0.0.1:1991 127.0.0.1:1990 ESTABLISHED 3968
[firefox.exe]
TCP 127.0.0.1:1992 127.0.0.1:1993 ESTABLISHED 3968
[firefox.exe]
TCP 127.0.0.1:1993 127.0.0.1:1992 ESTABLISHED 3968
[firefox.exe]
TCP 192.168.0.100:1994 209.85.135.103:80 ESTABLISHED 3968
[firefox.exe]
TCP 192.168.0.100:1995 209.85.135.103:80 ESTABLISHED 3968
[firefox.exe]

Finally, connecting to 127.0.0.1 adds two new entries while the browser is still waiting for response for infinite time.

TCP 127.0.0.1:80 127.0.0.1:1996 ESTABLISHED 2144
[Apache.exe]
TCP 127.0.0.1:1996 127.0.0.1:80 ESTABLISHED 3968
[firefox.exe]
Back to top
pallosp



Joined: 24 Jun 2007
Posts: 7

PostPosted: Sun 12 Aug '07 12:27    Post subject: Reply with quote

I still don't know what the reason of the problem is, but I've installed Apache 1.3.37 successfully.
How can I find out what the dependencies of Apache 2 are and which one is missing?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 13 Aug '07 13:41    Post subject: Reply with quote

If you change the port to 8080 and than try localhost:8080 can you than see the demopage?
Back to top
pallosp



Joined: 24 Jun 2007
Posts: 7

PostPosted: Tue 28 Aug '07 11:41    Post subject: Reply with quote

No, I don't see it.
Anyway if port 80 was blocked the demo page wouldn't load in Apache 1.3 either.
Back to top
shanouser



Joined: 05 Sep 2007
Posts: 5

PostPosted: Wed 05 Sep '07 14:28    Post subject: Reply with quote

Hi, I have the exact same problem with Apache 2.2.4 and Windows XP SP2.

I've ran Apache 2.2.4 on my old XP SP2 box flawlessly for a long time, but now I can't seem to get it going on my laptop?!

The problem is very weird, I just can't find the solution yet.

I am running Nod32 also, but it's not from it. Skype is blocking port 80 by default, but I've made sure that it isn't blocking it.

My port 80 is wide open, netstat shows:

127.0.0.1:80
apache


And opening the http://localhost is going nowhere... just waiting for localhost.

I've tried everything described in this topic and various other thing to ensure that the port is open and apache is binded to it, but the problem still exists!

Please, if any guru here, give us a hint!!!
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 05 Sep '07 14:32    Post subject: Reply with quote

Its very simple, just go to the preferences->connection. You will find a Check box which asks whether skype should use these ports or not.
Back to top
shanouser



Joined: 05 Sep 2007
Posts: 5

PostPosted: Wed 05 Sep '07 14:35    Post subject: Reply with quote

James Blond wrote:
Its very simple, just go to the preferences->connection. You will find a Check box which asks whether skype should use these ports or not.


Skype is blocking port 80 by default, but I've made sure that it isn't blocking it.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 05 Sep '07 14:40    Post subject: Reply with quote

Turn of all firewalls also windows firewall. Turn off skype if it is running. Turn off all virus scanners.
If you use httpd -e debug -w What is shown than?

If you change listen 80 to listen 8080 in httpd.conf can you than access apache under http://127.0.0.1 or http://127.0.0.1:8080 ?
Back to top
shanouser



Joined: 05 Sep 2007
Posts: 5

PostPosted: Wed 05 Sep '07 14:47    Post subject: Reply with quote

I've also disabled the PHP initialization in httpd.conf..


C:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd -e debug -w
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module actions_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module alias_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module asis_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module auth_basic_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module authn_default_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module authn_file_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module authz_default_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module authz_groupfile_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module authz_host_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module authz_user_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module autoindex_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module cgi_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module dir_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module env_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module imagemap_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module include_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module isapi_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module log_config_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module mime_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module negotiation_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module setenvif_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module userdir_module

But the Apache monitor is showing that Apache is not running after the execution of: httpd -e debug -w

Port 8080 won't work either, Windows Firewall off, Skype off.
I have a router with it's firewall off too.

Error.log:

[Wed Sep 05 15:44:54 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations
[Wed Sep 05 15:44:54 2007] [notice] Server built: Jan 9 2007 23:17:20
[Wed Sep 05 15:44:54 2007] [notice] Parent: Created child process 1064
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module actions_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module alias_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module asis_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module auth_basic_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module authn_default_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module authn_file_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module authz_default_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module authz_groupfile_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module authz_host_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module authz_user_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module autoindex_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module cgi_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module dir_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module env_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module imagemap_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module include_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module isapi_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module log_config_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module mime_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module negotiation_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module setenvif_module
[Wed Sep 05 15:44:54 2007] [debug] mod_so.c(246): loaded module userdir_module
[Wed Sep 05 15:44:54 2007] [notice] Child 1064: Child process is running
[Wed Sep 05 15:44:54 2007] [notice] Child 1064: Acquired the start mutex.
[Wed Sep 05 15:44:54 2007] [notice] Child 1064: Starting 250 worker threads.
[Wed Sep 05 15:44:54 2007] [notice] Child 1064: Starting thread to listen on port 8080.
[Wed Sep 05 15:48:07 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Wed Sep 05 15:48:07 2007] [notice] Child 1064: Exit event signaled. Child process is ending.
[Wed Sep 05 15:48:08 2007] [notice] Child 1064: Released the start mutex
[Wed Sep 05 15:48:09 2007] [notice] Child 1064: Waiting for 250 worker threads to exit.
[Wed Sep 05 15:48:09 2007] [notice] Child 1064: All worker threads have exited.
[Wed Sep 05 15:48:09 2007] [notice] Child 1064: Child process is exiting
[Wed Sep 05 15:48:10 2007] [notice] Parent: Child process exited successfully.
[Wed Sep 05 15:48:12 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations
[Wed Sep 05 15:48:12 2007] [notice] Server built: Jan 9 2007 23:17:20
[Wed Sep 05 15:48:12 2007] [notice] Parent: Created child process 5220
[Wed Sep 05 15:48:12 2007] [notice] Child 5220: Child process is running
[Wed Sep 05 15:48:12 2007] [notice] Child 5220: Acquired the start mutex.
[Wed Sep 05 15:48:12 2007] [notice] Child 5220: Starting 250 worker threads.
[Wed Sep 05 15:48:12 2007] [notice] Child 5220: Starting thread to listen on port 8080.




Still nothing happens...
Back to top
shanouser



Joined: 05 Sep 2007
Posts: 5

PostPosted: Wed 05 Sep '07 15:01    Post subject: Reply with quote

I found a solution!!!

Just add this to your httpd.conf file:

Win32DisableAcceptEx


What a fight it was.. ;]
Back to top


Reply to topic   Topic: No response at localhost View previous topic :: View next topic
Post new topic   Forum Index -> Apache