Author |
|
skper12
Joined: 26 Jan 2020 Posts: 10 Location: Canada
|
Posted: Tue 11 Feb '20 7:29 Post subject: Can't start my Apache. |
|
|
Whenever I start Apache, this is the error I get:
The requested operation has failed! I never got this error message before until recently.
I also checked my logs and here's the message:
[Sun Feb 09 23:33:51.523111 2020] [mpm_winnt:notice] [pid 3108:tid 524] AH00456: Apache Lounge VS16 Server built: Aug 9 2019 16:32:28
[Sun Feb 09 23:33:51.523111 2020] [core:notice] [pid 3108:tid 524] AH00094: Command line: 'httpd.exe -d C:/Apache24'
[Sun Feb 09 23:33:51.538735 2020] [mpm_winnt:notice] [pid 3108:tid 524] AH00418: Parent: Created child process 6384
Apache server shutdown initiated...
pm_winnt:notice] [pid 6384:tid 576] AH00354: Child: Starting 64 worker threads.
[Sun Feb 09 23:34:50.768250 2020] [mpm_winnt:notice] [pid 3108:tid 524] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Sun Feb 09 23:34:52.799349 2020] [mpm_winnt:notice] [pid 6384:tid 576] AH00364: Child: All worker threads have exited.
[Sun Feb 09 23:34:52.830606 2020] [mpm_winnt:notice] [pid 3108:tid 524] AH00430: Parent: Child process 6384 exited successfully.
[Mon Feb 10 23:00:14.509353 2020] [mpm_winnt:notice] [pid 4876:tid 560] AH00455: Apache/2.4.41 (Win32) configured -- resuming normal operations
[Mon Feb 10 23:00:14.509353 2020] [mpm_winnt:notice] [pid 4876:tid 560] AH00456: Apache Lounge VS16 Server built: Aug 9 2019 16:32:28
[Mon Feb 10 23:00:14.509353 2020] [core:notice] [pid 4876:tid 560] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
[Mon Feb 10 23:00:14.540638 2020] [mpm_winnt:notice] [pid 4876:tid 560] AH00418: Parent: Created child process 7008
Apache server shutdown initiated...
pm_winnt:notice] [pid 7008:tid 552] AH00354: Child: Starting 64 worker threads.
[Mon Feb 10 23:00:29.128258 2020] [mpm_winnt:notice] [pid 4876:tid 560] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Mon Feb 10 23:00:31.150565 2020] [mpm_winnt:notice] [pid 7008:tid 552] AH00364: Child: All worker threads have exited.
[Mon Feb 10 23:00:31.181819 2020] [mpm_winnt:notice] [pid 4876:tid 560] AH00430: Parent: Child process 7008 exited successfully.
Thanks! |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 11 Feb '20 10:16 Post subject: |
|
|
Please try
Code: |
C:\Apache24\bin\httpd.exe -S
|
|
|
Back to top |
|
skper12
Joined: 26 Jan 2020 Posts: 10 Location: Canada
|
Posted: Wed 12 Feb '20 4:05 Post subject: |
|
|
James Blond wrote: | Please try
Code: |
C:\Apache24\bin\httpd.exe -S
|
|
I did the command you gave me, and here's the reply:
C:\Apache24\bin>httpd.exe -S
VirtualHost configuration:
*:80 is a NameVirtualHost
port 80 namevhost www.jesrearth.com (C:/Apache24/conf/httpd.conf:552)
alias jesrearth.com
port 80 namevhost www.joypsychotherapy.ca (C:/Apache24/conf/httpd.conf:558)
alias joypsychotherapy.ca
ServerRoot: "C:/Apache24"
Main DocumentRoot: "C:/www"
Main ErrorLog: "C:/Apache24/logs/error.log"
Mutex default: dir="C:/Apache24/logs/" mechanism=default
PidFile: "C:/Apache24/logs/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
Define: SRVROOT=c:/Apache24
James Blond, forgive me, but what does this message mean?
Still can't run Apache server.
Last edited by skper12 on Sun 24 May '20 7:38; edited 1 time in total |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 12 Feb '20 9:23 Post subject: |
|
|
It might be that a port is blocked by another program
run cmd.exe as adminstrator and
Code: |
netstat -ano | findstr /R 0.0:80 && netstat -ano | findstr /R 0.0:443
|
|
|
Back to top |
|
skper12
Joined: 26 Jan 2020 Posts: 10 Location: Canada
|
Posted: Mon 09 Mar '20 4:53 Post subject: |
|
|
Hi James Blond,
I uninstall and re-install Apache successfully!
I tried the default config and typed localhost in my browser and I see the it works! page. But, whenever I changed the httpd.conf file to my setup, I got an error message and unable to start Apache. I never had this problem before, but now I'm having trouble starting Apache. Here's the message:
AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::2c9a:2531:952d:1834. Set the 'ServerName' directive globally to suppress this message
[Sat Mar 07 14:12:29.920371 2020] [mpm_winnt:notice] [pid 11692:tid 796] AH00455: Apache/2.4.41 (Win32) configured -- resuming normal operations
[Sat Mar 07 14:12:29.920371 2020] [mpm_winnt:notice] [pid 11692:tid 796] AH00456: Apache Lounge VS16 Server built: Aug 9 2019 16:32:28
[Sat Mar 07 14:12:29.920371 2020] [core:notice] [pid 11692:tid 796] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
[Sat Mar 07 14:12:29.951637 2020] [mpm_winnt:notice] [pid 11692:tid 796] AH00418: Parent: Created child process 7988
AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::2c9a:2531:952d:1834. Set the 'ServerName' directive globally to suppress this message
AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::2c9a:2531:952d:1834. Set the 'ServerName' directive globally to suppress this message
[Sat Mar 07 14:12:30.748513 2020] [mpm_winnt:notice] [pid 7988:tid 752] AH00354: Child: Starting 64 worker threads.
[Sun Mar 08 22:42:03.461627 2020] [mpm_winnt:notice] [pid 11692:tid 796] AH00424: Parent: Received restart signal -- Restarting the server.
AH00526: Syntax error on line 541 of C:/Apache24/conf/httpd.conf:
DocumentRoot must be a directory
[Sun Mar 08 22:42:05.485886 2020] [mpm_winnt:notice] [pid 7988:tid 752] AH00364: Child: All worker threads have exited. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 09 Mar '20 12:25 Post subject: |
|
|
In httpd.conf add
Code: |
ServerName localhost
|
Also DocumentRoot does not seem to be a valid directory. Note that you can't have that on a network shared drive. |
|
Back to top |
|
Otomatic
Joined: 01 Sep 2011 Posts: 212 Location: Paris, France, EU
|
Posted: Mon 09 Mar '20 17:55 Post subject: |
|
|
James Blond wrote: |
Also DocumentRoot does not seem to be a valid directory. Note that you can't have that on a network shared drive. |
I'm using Wampserver 3.2.0 with Apache 2.4.41 and, if I start the server with a VirtualHost on a Network drive such as this one
Code: | <VirtualHost *:80>
ServerName photos-famille
DocumentRoot "//DS218/home/sites/photos-ottello"
<Directory "//DS218/home/sites/photos-ottello/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride all
Require local
</Directory>
</VirtualHost>
|
Apache doesn't start. There is the error mentioned above.
I searched and tried a lot of "tricks" and I found that by replacing the wampapache64 service login account (by default LocalSystem) by an "admin" login account, there was no more problem.
Code: |
E:\wamp64\bin\apache\apache2.4.41\bin>httpd -S
VirtualHost configuration:
....
port 80 namevhost photos-famille (E:/wamp64/bin/apache/apache2.4.41/conf/extra/httpd-vhosts.conf:120)
.... |
Changing the service account can be done by :
(Warning, titles and items are translated from my French version of Windows, it may not be exactly the same words for a "real" English version)
- Service manager
- Double-Click on the service name to get the properties window
- Connexion tab
- Uncheck Local account to check This account
- Browse
- Advanced
- Search
- Double-Click on the account name you want to use
- OK
- Enter two times the password associated with this account
- Apply then OK on the popup
- OK
Stop and restart the service. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 13 Mar '20 11:02 Post subject: |
|
|
Any user, except the default service user can access network drives. Do not use an admin account, but a normal user. |
|
Back to top |
|
skper12
Joined: 26 Jan 2020 Posts: 10 Location: Canada
|
Posted: Tue 31 Mar '20 18:23 Post subject: |
|
|
James Blond, I figured my problem out.
Thanks for all your help! [/quote] |
|
Back to top |
|