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: need help running apache2.4 on windows10 64 bit laptop Page 1, 2  Next
Author
apache-lounge-chair



Joined: 24 Apr 2016
Posts: 18
Location: usa, atlanta

PostPosted: Sat 18 Jun '16 1:34    Post subject: need help running apache2.4 on windows10 64 bit laptop Reply with quote

recently my apache2.2 setup on my 64 bit windows 10 laptop stopped working for some reason. When I was unable to correct this issue I decided to upgrade to apache2.4

I downloaded the zip file for apache2.4 and unpacked it.

Now when I run the httpd.exe as the administrator it starts with no error message. However when I attempt to run a test with my browser by visiting http://localhost:80 after a seemingly long period of time I get an error message that an error occurred. When I looked into the directory structure where I unpacked apache I went into the logs directory but there was no error log file.

I am uncertain as to the next step that I should take .
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sat 18 Jun '16 11:40    Post subject: Reply with quote

An error/warning in the Apache error.log ?

The place of the error.log is in the httpd.conf directive : ErrorLog
Back to top
James Blond
Moderator


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

PostPosted: Sat 18 Jun '16 12:15    Post subject: Reply with quote

On Windows 10 there is sometimes an error that port 80 is blocked, it might be W3SVC service. Set it to "manual" starting.

french name is: "Service de publication World Wide Web"
english name is: "World Wide Web Publishing Services"
german name is: "WWW-Publishingdienst"
Polish name is: "Usluga publikowania w sieci WWW"
Russian name is "Служба веб-публикаций"
Back to top
apache-lounge-chair



Joined: 24 Apr 2016
Posts: 18
Location: usa, atlanta

PostPosted: Mon 20 Jun '16 22:23    Post subject: apache2.4 errorlog directive Reply with quote

I checked the "errorlog" directive and there was no such error log file in my apache2.4 directory structure.

the error message I received said nothing about blocked ports.
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 226
Location: Denver, CO USA

PostPosted: Mon 20 Jun '16 23:19    Post subject: Reply with quote

If I am correct, Skype uses Port 80 as well. If you have Skype running, follow these instructions to resolve the issue.

Open Skype (if it has not already been launched.)
Go to Tools > Options from the dropdown menu.
Select “Advanced” in the left-hand column, last option.
Select “Connection”.
Deselect the option that says, “Use port 80 and 443 as alternatives for incoming connections.”
Click Save.
Exit and then restart Skype.
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 226
Location: Denver, CO USA

PostPosted: Mon 20 Jun '16 23:28    Post subject: Reply with quote

One other thought:

You mentioned that the Apache service running when you go into the Services manager (services.msc)?

You mentioned there are no errors in the log file (error.log)? Have you tried going to a command prompt with admin privileges and launching httpd -E (location of desired log file) to log startup errors to file.

Does not sound like a firewall issue as you are unable to view content on the LocalHost. Have you checked permissions of your DocumentRoot folder as well?
Back to top
apache-lounge-chair



Joined: 24 Apr 2016
Posts: 18
Location: usa, atlanta

PostPosted: Thu 23 Jun '16 10:53    Post subject: update on can't get apache2.4 running Reply with quote

The error message states "Unable to connect"

I checked and Apache2.4 is a running service.

I used the "-E" option to specify a specific error log file and it is empty

I changed the httpd.conf file to specify a port of 8888 in order to avoid any "port conflict". I used the "netstat -a" command to check all processes running on my localhost (ie. 127.0.0.1) and nothing was listening to port 8888
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1266
Location: Amsterdam, NL, EU

PostPosted: Thu 23 Jun '16 13:14    Post subject: Reply with quote

netstat -anb should show something like this if Apache is running:
Code:
  TCP    127.0.0.1:80           0.0.0.0:0              LISTENING
 [httpd.exe]
Back to top
apache-lounge-chair



Joined: 24 Apr 2016
Posts: 18
Location: usa, atlanta

PostPosted: Thu 23 Jun '16 16:30    Post subject: ports data for Apache2.4 issue Reply with quote

When I use the "netstat -anb" command I see the following

TCP 0.0.0.0:8888 0.0.0.0:0 LISTENING
[httpd.exe]
--
TCP [::]:8888 [::]:0 LISTENING
[httpd.exe]


The "Listen" line in my httpd.conf file is
Listen 8888. Why isn't the IP address 127.0.0.1:8888 ?
When I modified my "Listen" line to be "Listen 127.0.0.1:8888" I saw the following error in my error log file

(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : AH00072: make_sock: could not bind to address [::]:8888
(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : AH00072: make_sock: could not bind to address 0.0.0.0:8888
AH00451: no listening sockets available, shutting down


How do I get Apache2.4 to listen to 127.0.0.1:8888
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 226
Location: Denver, CO USA

PostPosted: Thu 23 Jun '16 16:56    Post subject: Reply with quote

The IP address of 127.0.0.1 is the litening IP address of your local machine. You do not need to set it anywhere, and definitely not in your HTTPD.CONF file.

The line of Listen 8888 is adequate.

Now, with that being said, try the following.

On the APACHE server, open a a WEB browser, and open the following URL - http://localhost:8888. You should get the page you are looking for.

Also, you may want to try to access your APACHE server from another device on your local LAN and make sure you are able to connect.
Back to top
apache-lounge-chair



Joined: 24 Apr 2016
Posts: 18
Location: usa, atlanta

PostPosted: Thu 23 Jun '16 17:08    Post subject: problems with Apache2.4 Reply with quote

I reset my "Listen" line back to just "Listen 8888"

When I visit http://localhost:8888 with my browser I see the following error on the screen

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.


When I checked the error log file no new error had been written to it.

I have no other devices in my apartment with which I could visit "http://localhost:8888"
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 226
Location: Denver, CO USA

PostPosted: Thu 23 Jun '16 20:56    Post subject: Reply with quote

Did you unpack Apache 2.4 into the same directory as 2.2?

I am running Apache 2.4 on Windows 10 as well and have not encountered any issues you mention.

Have you checked folder permissions at the OS level for the Apache 2.4 folder?
Back to top
apache-lounge-chair



Joined: 24 Apr 2016
Posts: 18
Location: usa, atlanta

PostPosted: Thu 23 Jun '16 21:37    Post subject: permissions and directory for Apache2.4 Reply with quote

I unpacked Apache2.4 into a different directory than Apache2.2

According to windows explorer, the administrator on my laptop (ie. me) has full access to my apache2.4 folder
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 226
Location: Denver, CO USA

PostPosted: Thu 23 Jun '16 22:35    Post subject: Reply with quote

are you running PHP by chance?
Back to top
apache-lounge-chair



Joined: 24 Apr 2016
Posts: 18
Location: usa, atlanta

PostPosted: Fri 24 Jun '16 0:45    Post subject: Apache2.4 issues Reply with quote

I am not running PHP
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 226
Location: Denver, CO USA

PostPosted: Fri 24 Jun '16 1:01    Post subject: Reply with quote

Usually see that when running PHP or Mod_FCGID

Have you made any other changes to HTTPD.CONF?

Any changes to the <Directory> changes of the HTTPD.CONF file?
Back to top
apache-lounge-chair



Joined: 24 Apr 2016
Posts: 18
Location: usa, atlanta

PostPosted: Fri 24 Jun '16 13:02    Post subject: problems with Apache2.4 Reply with quote

I corrected a typo in my httpd.conf file and tried again

I still get the "500 internal server error" message.

The last few lines of my error log file are as follows

[Fri Jun 24 06:56:06.382661 2016] [mpm_winnt:notice] [pid 5316:tid 656] AH00418: Parent: Created child process 8952
[Fri Jun 24 06:56:06.859185 2016] [mpm_winnt:notice] [pid 8952:tid 604] AH00354: Child: Starting 64 worker threads.
[Fri Jun 24 06:56:32.466448 2016] [core:crit] [pid 8952:tid 1132] [client ::1:50240] AH00025: configuration error: couldn't check user: /
[Fri Jun 24 06:56:32.559931 2016] [core:crit] [pid 8952:tid 1132] [client ::1:50241] AH00025: configuration error: couldn't check user: /favicon.ico
[Fri Jun 24 06:56:32.564437 2016] [core:crit] [pid 8952:tid 1128] [client ::1:50242] AH00025: configuration error: couldn't check user: /favicon.ico



What do I need to do to resolve this "check user" issue ?
Back to top
apache-lounge-chair



Joined: 24 Apr 2016
Posts: 18
Location: usa, atlanta

PostPosted: Fri 24 Jun '16 14:29    Post subject: problems running Apache2.4 on wondows 10 Reply with quote

I removed the leading comment symbols from several LoadModule statements in httpd.conf and that cleared up the "check user" issue.

Now several other issues. When I visit "http://localhost:8888" I get an error message informing me that the URL / could not be found. However when I visit "http://localhost:8888/index.html" that does work! I am curious why this is happening.

Also now I can't seem to get Apache2.4 to recognize any of the scripts under my cgi-bin directory. Every time I try I get a 404 not found error message.

Not Found

The requested URL /cgi-bin/printenv.pl was not found on this server.


I checked the ScriptAlias and Directory lines in my httpd.conf and they looks ok.

What else do I need to check to get recognition of my cgi-bin directory ?
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 226
Location: Denver, CO USA

PostPosted: Fri 24 Jun '16 17:16    Post subject: Reply with quote

1. In your HTTP.CONF file, look for the </Directory> section, it should look something like this:
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
[color=darkblue]DirectoryIndex index.html

</IfModule>
[/color]

Make sure you have the correct file for DirectoryIndex (default file is index.html)

2. For your CGI scripts, you may want to check to following section in your HTTPD.CONF file as well:

<IfModule cgid_module>
#
# ScriptSock: On threaded servers, designate the path to the UNIX
# socket used to communicate with the CGI daemon of mod_cgid.
#
#Scriptsock cgisock
</IfModule>
#
# "${SRVROOT}/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "${SRVROOT}/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>

I myself do not use CGI scripts / the CGI-BIN directory for Apache. These are merely the default settings for Apache and should give you a starting point to work with.
Back to top
apache-lounge-chair



Joined: 24 Apr 2016
Posts: 18
Location: usa, atlanta

PostPosted: Fri 24 Jun '16 17:55    Post subject: issues with Apache2.4 on windows 10 Reply with quote

My httpd.conf file looks just like what you put into your post.

I still can't execute CGI scripts.
Back to top


Reply to topic   Topic: need help running apache2.4 on windows10 64 bit laptop View previous topic :: View next topic
Post new topic   Forum Index -> Apache Page 1, 2  Next