Apache startup hangs in xampp 3.2.1/ OpenEMR4.1.2

htuckjr wrote on Tuesday, January 14, 2014:

Hi Folks!

I’m trying to install the xampp 3.2.1 OpenEMR 4.1.2 pkg on my Win 7 sp1 Home Premium in a VirtualBox VM on my Linux Mint 13 (moral equivalent to Ubuntu PP) netbook. I am not by nature or nurture a Windows user but I’ve been playing with computers since before the Commodore 64 blessed all our lives, so I do know how to follow directions.

First I tried Option 2 (install not as svc) in “Microsoft Windows Installation” from the wiki. Got all the way through and the xampp ctrl panel informed me:

2:45:26 PM [Apache] Attempting to start Apache service…
2:45:29 PM [Apache] Status change detected: running
2:45:29 PM [Apache] Status change detected: stopped
2:45:29 PM [Apache] Error: Apache shutdown unexpectedly.
2:45:29 PM [Apache] This may be due to a blocked port, missing dependencies,
2:45:29 PM [Apache] improper privileges, a crash, or a shutdown by another method.
etc.

Apache error.log says: (this is most recent chunk of mult times I’ve tried it and always got the same errors)
[Sat Aug 17 13:57:58.370090 2013] [mpm_winnt:notice] [pid 12704:tid 264] AH00455: Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.16 configured – resuming normal operations
[Sat Aug 17 13:57:58.370090 2013] [mpm_winnt:notice] [pid 12704:tid 264] AH00456: Server built: Feb 23 2013 13:07:34
[Sat Aug 17 13:57:58.370090 2013] [core:notice] [pid 12704:tid 264] AH00094: Command line: ‘c:\xampp\apache\bin\httpd.exe -d C:/xampp/apache’
[Sat Aug 17 13:57:58.377090 2013] [mpm_winnt:notice] [pid 12704:tid 264] AH00418: Parent: Created child process 8364
[Sat Aug 17 13:57:59.451152 2013] [ssl:warn] [pid 8364:tid 272] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Sat Aug 17 13:57:59.993183 2013] [ssl:warn] [pid 8364:tid 272] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Sat Aug 17 13:58:00.065187 2013] [mpm_winnt:notice] [pid 8364:tid 272] AH00354: Child: Starting 150 worker threads.
[Sat Aug 17 13:58:14.867033 2013] [access_compat:error] [pid 8364:tid 1764] [client ::1:50387] AH01797: client denied by server configuration: C:/xampp/htdocs/openemr/sites/default/documents/
[Sat Aug 17 13:58:14.867033 2013] [access_compat:error] [pid 8364:tid 1764] [client ::1:50387] AH01797: client denied by server configuration: C:/xampp/htdocs/openemr/sites/default/edi/
[Sat Aug 17 13:58:14.867033 2013] [access_compat:error] [pid 8364:tid 1764] [client ::1:50387] AH01797: client denied by server configuration: C:/xampp/htdocs/openemr/sites/default/era/
[Sat Aug 17 13:58:18.579246 2013] [access_compat:error] [pid 8364:tid 1764] [client ::1:50387] AH01797: client denied by server configuration: C:/xampp/htdocs/openemr/sites/default/edi
[Sat Aug 17 13:58:21.475411 2013] [access_compat:error] [pid 8364:tid 1764] [client ::1:50387] AH01797: client denied by server configuration: C:/xampp/htdocs/openemr/sites/default/era
[Sat Aug 17 13:58:28.193796 2013] [access_compat:error] [pid 8364:tid 1764] [client ::1:50387] AH01797: client denied by server configuration: C:/xampp/htdocs/openemr/sites/default/documents

I changed C:/xampp/htdocs/openemr/sites/default/documents/.htdocs from ‘Allow From None
Deny From All’ to ‘Allow from All’; no joy. I will go change it back soon.

I’ve been running the xampp panel, both the .exe and a shortcut to it, both as administrator and as just my windows user who is an administrator. Same results.

Hunting on the web and the OpenEMR forum and wiki found people suggesting all sorts of other svces listening in on port 80:
IIS Admin Services
World Wide Web Publishing Services
HTTP SSL
but none of those are enabled in my Home Premium box and skype isn’t installed. Checking the xampp control panel’s netstat, nothing is using port 80 or 443.

Then tried installation instructions Option 1, Install As Service.
xampp ctrl panel says both apache and mysql were successfully installed, but starting apache it hangs at, “Attempting to start Apache service…” and the Apache error.log says the same old thing (per above clipping).

I set the C:\xampp-oemr\xampp\ dir for all users to have full ctrl…
gave full ctrl to auth users on \xampp\htdocs…
unset ‘read only’ on \xampp\htdocs…
checking the xampp control panel’s netstat, nothing is still using port 80 or 443.

I know this is a sloppy way to go about things; I take comfort in the fact that it’s all on a VM and once I find out how to do it for realies I can always reinstall.

Ideas please? Thanks in advance.

Regards- Harley Tuck

htuckjr wrote on Wednesday, January 15, 2014:

P.S., I did see the bit,
“[Sat Aug 17 13:57:59.993183 2013] [ssl:warn] [pid 8364:tid 272] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name”
but couldn’t find any mention of what to do with it on a Windows Apache install, everybody was talking linux filestructures.

  • HT

fsgl wrote on Wednesday, January 15, 2014:

Hi Harley,

When I use my backup copy (on a flash drive), xampp_control does not work, but xampp_start and xampp_stop do.

An easy thing to try until another solution comes along.

htuckjr wrote on Thursday, January 16, 2014:

Hi fsgl-

Thanks for the tip, I tried just now clicking on xampp_start.exe and got an interesting hint how to proceed. The xampp panel didn’t open but I got a terminal with some interesting content. Rather than try to transcribe it all I’ll just attach the screenshot. The screen closed right after this display.

I don’t know anything about the 4 mysql warnings and errors at the beginning of the output.

Notice in the last line of the output, a bit of the path of interest is clipped off at the right. But I think I need to figure out what the apache ServerRoot directory should be and go into httpd.conf and put it there. I suspect that I will find, per the error message in my original post, that httpd.conf thinks it’s “www.example.com:443”. And I wonder what is supposed to be in that directory?

So that’s what I’m after next.

I’ll be in touch.

fsgl wrote on Thursday, January 16, 2014:

Three observations:
1.The path is C:\xampp\apache\conf\httpd.conf both for the production copy & flash drive.
2.Line 37 is ServerRoot “/xampp/apache”.
3.According to update directions, the openemr folder is not named with the version.

Does it work if you rename the folders?

I would guess nothing can happen in the mysql folder if it has not been turned on and if the path is wrong (C:/xampp-openemr -4.1.2).

htuckjr wrote on Friday, January 17, 2014:

Hi fsgl-

Thanks for all your effort, but none of that did any good. ServerRoot was already /xampp/apache; I made the path right, I did everything I could find on the internet trying to chase down all the errors I got about other services listening on ports 80 and 443 (none were and IIS wasn’t even installed) and even more. Nothing worked.

So I uninstalled the Apache2.4 and mysql services, deleted the xampp folder, went and got the xampp-Openemr4.1.1 version… and it slid on in there like it was greased. Installed and running without errors, hiccups or objections.

I don’t need the latest OpenEMR, and 4.1.1 is nice and stable, and totally adequate fo my needs. Maybe some day when I need to upgrade to 4.1.2 I’ll have another go at it.

Thanks again, and see you around the forums after school!

Rgds- Harley

fsgl wrote on Friday, January 17, 2014:

A forum member with Fedora 19 had difficulties installing 4.1.2 because of PHP incompatibility, hence patch 4 to correct the problem.

It’s pure conjecture that this may have any relevance to your situation because I know next to nothing about Linux.

Have a great second semester.

htuckjr wrote on Saturday, January 18, 2014:

I need to make a note of that somewhere, if I should ever need to use 4.1.2. Although I don’t know enough about php to know if that was the problem. But I’m learning lots every day. Thanks!
-HT