Jump to content
The Uniform Server Community

"Failed to start Apache" - UniServerZ


elimn
 Share

Recommended Posts

I have a completely fresh install of UniServerZ running on a week old install of Windows 8 Pro. When I start Controller and click Start Apache, the controller program seemingly locks and Windows shows "Not Responding" in the title bar. However, after a minute a popup displays saying "Failed to start Apache" and the controller resumes being responsive. The weird thing is, Apache seems to have started fine. The splash screen auto loads, and I seem to have a fully functioning server.

 

If I click Start MySQL the same thing happens, only after a minute I get "Failed to start MySQL". Again though, MySQL appears to run fine.

 

The problem is that UniController still thinks the services are not running. So, it does not give me buttons to stop either service, and it has red a red status next to each button. So the only way for me to stop these services is by ending them in Task Manager.

 

Here is my Apache error.log:

[Fri Jul 05 13:21:04.057964 2013] [mpm_winnt:notice] [pid 3056:tid 568] AH00455: Apache/2.4.3 (Win32) PHP/5.4.15 configured -- resuming normal operations
[Fri Jul 05 13:21:04.057964 2013] [mpm_winnt:notice] [pid 3056:tid 568] AH00456: Server built: Aug 20 2012 14:21:37
[Fri Jul 05 13:21:04.057964 2013] [core:notice] [pid 3056:tid 568] AH00094: Command line: 'D:\\Downloads\\UniServerZ\\core\\apache2\\bin\\httpd_z.exe -d D:/Downloads/UniServerZ/core/apache2 -f D:\\Downloads\\UniServerZ\\core\\apache2\\conf\\httpd.conf -d D:\\Downloads\\UniServerZ\\core\\apache2'
[Fri Jul 05 13:21:04.057964 2013] [mpm_winnt:notice] [pid 3056:tid 568] AH00418: Parent: Created child process 3868
[Fri Jul 05 13:21:04.340546 2013] [mpm_winnt:notice] [pid 3868:tid 580] AH00354: Child: Starting 150 worker threads.

 

It does this for UniServerZ verzion 10.0.0 and the latest 10.1.2. Does anyone have any ideas on how I can fix this? Is it a Windows 8 thing? I had a similar issue with the version 9.0 RCs, but at least they still provided a Kill button even if it did not properly detect the startup.

Link to comment
Share on other sites

I have the very same problem on Windows 8 Ultimate x64. Anyone have any ideas?

Did you mean Windows 7 Ultimate? I do not believe there is a Windows 8 Ultimate: http://en.wikipedia.org/wiki/Windows_8_editions. Not to be pedantic, right now the version number of Windows is my primary suspect. So if you are actually on 7 that would throw my theory out the Window, as I did not have this issue with 7.

Link to comment
Share on other sites

It looks like a bug! Would you please run a netstat command and post the results.

Proceed as follows:

a) Run UniController

B)

Start Apache as above (wait for 1 minute until it displays failed)

c) Start a command window by clicking “Server Console” button

d) Type the following command: netstat -anop tcp

e) Right click on the banner “SERVER Command Console” and navigate to “Edit” and click “Select All”

f) Right click on the banner “SERVER Command Console” again and navigate to “Edit” and click “Copy”

g) You can now paste the result into a text editor or directly past to the forum.

 

Thank you

Ric

Link to comment
Share on other sites

Thank you for taking time to run the above test. Results you posted show W8 netstat command output format is identical to XP and W7 hence not a problem.

 

The Apache start-up safety timer is set to 30 seconds, in terms of processor time this is extremely large. It looks as if the safety timer code could be the problem this is relatively easy to check precede as follows:

 

a) Create two new folders C:\z_test_1 and C:\z_test_1

b ) In each of these folders extract Zero-10.1.2

c) Navigate to folder z_test_1/UniServerZ

Start UniController

Start Apache

Start MySQL

Wait for the servers to start (fail)

Close UniController (Do not kill the servers until end of test)

d) Navigate to folder z_test_2/UniServerZ

e) Start UniController

 

Expected result:

A pop-up is displayed “Warning ports in use by another application”

 

Apache port = 80

Application PID =

Application Name = httpd_z.exe

Application Path = C:\z_test_1\UniServerZ\core\apache2\bin\httpd_z.exe

 

I am interested in the above four lines could you please post results that you obtain.

For completeness also include the MySQL port results.

 

Intention is to isolate problems specific to your PC configuration.

 

Thank you

Ric

Link to comment
Share on other sites

Hi

I have the same kind of problem, although with W7 Enterprise SP1 :

MySQL started fine, but Apache just freezes the console for 30 seconds before a popup "apache failed to start", well, pops up

 

(mysqld_z is started, but not httpd_z in my process explorer)

 

if it can help, I created my USZ folder in this order

Controller

Apache2.4.4

mysql5.6.12

php5.5.0-1.0.1

adminer3.7.1

 

should I create a new thread for this problem, or stay in this one ?

 

by the way, the non-Z version works just fine, so I will stick with this one until USZ runs, so there is no rush, I mainly wanted to test USZ

 

Thanks

Link to comment
Share on other sites

My netstat -anop tcp results: http://pastebin.com/ahGKFcaD

 

Ric, like logishkas I do not get a popup on step E. After waiting a while for the popup, I decided to click Start Apache on UniController #2. Unlike before where UniController #1 seemed to lockup for 30 seconds, UniController #2 never locks up. Furthermore the splash/Start-up pages instantly loaded in my browser and there was no "Failed to start..." error. However, UniController #2 still shows Apache as red and does not give me buttons to kill it.

 

I was suspicious that the first instance of Apache (C:\z_test_1\UniServerZ\core\apache2\bin\httpd_z.exe) was still running, and the second instance never overrode it. To test this, I added a file to C:\z_test_1\www\, and then navigated to and successfully found it in my browser. While it might be expected behavior for the second instance to not take over port 80, if it is not expected I hope this information helps you debug.

 

If you think this is a Windows 8 issue but you do not possess that version, for what it is worth you can download virtual machine images of Windows 8 direct from Microsoft: http://www.modern.ie/en-us/virtualization-tools#downloads. Once downloaded, it took me less than 10 minutes to extract and boot to the Windows 8 Desktop.

 

Hetasser, I think you are facing a different issue. You are able to start MySQL, we are not. For me httpd_z.exe loads up fine as a process and is a working webserver, it simply is not detected by UniController. Have you tried disabling your antivirus?

Link to comment
Share on other sites

Try the new controller Zero_Controller_10_1_0.exe, port in use detection has been modified.

 

All the best

Ric

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 year later...
  • 6 years later...


C:\pos\UniServerZ>netstat -anop tcp

Active Connections

  Proto  Local Address          Foreign Address        State           PID
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING       852
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING       4
  TCP    0.0.0.0:5357           0.0.0.0:0              LISTENING       4
  TCP    0.0.0.0:49408          0.0.0.0:0              LISTENING       560
  TCP    0.0.0.0:49409          0.0.0.0:0              LISTENING       984
  TCP    0.0.0.0:49410          0.0.0.0:0              LISTENING       1140
  TCP    0.0.0.0:49411          0.0.0.0:0              LISTENING       1516
  TCP    0.0.0.0:49412          0.0.0.0:0              LISTENING       640
  TCP    0.0.0.0:49413          0.0.0.0:0              LISTENING       632
  TCP    192.168.254.124:139    0.0.0.0:0              LISTENING       4
  TCP    192.168.254.124:49445  203.177.62.160:80      ESTABLISHED     2616
  TCP    192.168.254.124:49590  216.58.197.115:443     ESTABLISHED     3820
  TCP    192.168.254.124:49649  216.58.197.115:443     CLOSE_WAIT      3820
  TCP    192.168.254.124:49650  172.217.161.3:443      TIME_WAIT       0
  TCP    192.168.254.124:49661  108.179.211.120:80     ESTABLISHED     3820
  TCP    192.168.254.124:49664  108.179.211.120:80     TIME_WAIT       0
  TCP    192.168.254.124:49665  207.174.214.245:80     TIME_WAIT       0
  TCP    192.168.254.124:49666  207.174.214.245:80     TIME_WAIT       0
  TCP    192.168.254.124:49668  65.55.252.93:443       SYN_SENT        984

C:\pos\UniServerZ>

Link to comment
Share on other sites

On 7/6/2013 at 5:30 PM, Ric said:


C:\pos\UniServerZ>netstat -anop tcp

Active Connections

  Proto  Local Address          Foreign Address        State           PID
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING       852
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING       4
  TCP    0.0.0.0:5357           0.0.0.0:0              LISTENING       4
  TCP    0.0.0.0:49408          0.0.0.0:0              LISTENING       560
  TCP    0.0.0.0:49409          0.0.0.0:0              LISTENING       984
  TCP    0.0.0.0:49410          0.0.0.0:0              LISTENING       1140
  TCP    0.0.0.0:49411          0.0.0.0:0              LISTENING       1516
  TCP    0.0.0.0:49412          0.0.0.0:0              LISTENING       640
  TCP    0.0.0.0:49413          0.0.0.0:0              LISTENING       632
  TCP    192.168.254.124:139    0.0.0.0:0              LISTENING       4
  TCP    192.168.254.124:49445  203.177.62.160:80      ESTABLISHED     2616
  TCP    192.168.254.124:49590  216.58.197.115:443     ESTABLISHED     3820
  TCP    192.168.254.124:49649  216.58.197.115:443     CLOSE_WAIT      3820
  TCP    192.168.254.124:49650  172.217.161.3:443      TIME_WAIT       0
  TCP    192.168.254.124:49661  108.179.211.120:80     ESTABLISHED     3820
  TCP    192.168.254.124:49664  108.179.211.120:80     TIME_WAIT       0
  TCP    192.168.254.124:49665  207.174.214.245:80     TIME_WAIT       0
  TCP    192.168.254.124:49666  207.174.214.245:80     TIME_WAIT       0
  TCP    192.168.254.124:49668  65.55.252.93:443       SYN_SENT        984

C:\pos\UniServerZ>

 

I don't know how to fix apache because it keeps on failing even though I tried to change the port. Still the problem won't be fixed. Can you please help me understand the problem so that I could find a way to fix it. Thank you in advance :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...