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: A simple Apache 2.2.24 installation problem
Author
Sid.G



Joined: 08 May 2013
Posts: 4
Location: UK

PostPosted: Wed 08 May '13 18:08    Post subject: A simple Apache 2.2.24 installation problem Reply with quote

My first post here so a big hello to everyone.

I am trying to install Apache's 2.2.24 release using a script, via Installshield, and it just cannot install the service on Windows Server OS. It runs fine on windows 7 and installs the service without any problems. It is in the .msi format and I have tried this script on Win Server 2003 and 2008.

This script has been used for at least a good few years and every time there is a new version out we just change the filename so it installs the correct version. The previous Apache versions have been installed on both normal OSs as well as Win Server OSs. So that rules out (kind of) any issues related to the script.

Things I have checked and tried:

The script runs fine on windows 7 and installs the service without any problems.

I can also manually install Apache on both WIN Server OSs, by double clicking on it.

I know that port 80 could be a problem and I have checked that its unoccupied prior to installation.
I have also tried setting port 85 as the default port to listen to and the results were the same. So port is not an issue here.

IIS is not installed and the script specifically checks and mitigates IIS issues prior to installing apache.

I have been trying to solve this problem for a good few days now and I just can't get this to work. I have copied the little snippet of the script which installs apache. Any help on finding out why apache isn't installing on Windows Server Operating Systems will be greatly appreciated.

Code:
if (LaunchAppAndWait ("msiexec", "/i " + SUPPORTDIR ^ APACHE_FILENAME + " /qn SERVERADMIN=\"support@serveradmin.com\" SERVERNAME=\"www.servername.com\" SERVERDOMAIN=localhost SERVERPORT=80 ALLUSERS=1 RebootYesNo=\"No\" REBOOT=\"Suppress\"", WAIT) < 0) then
   MessageBox(@APACHE_INSTALLATION_FAILED, SEVERE);
   abort;      
endif;
Back to top
James Blond
Moderator


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

PostPosted: Thu 09 May '13 8:27    Post subject: Reply with quote

Anything in the windows event log about it?
Did you run the script as Administrator?
Back to top
Sid.G



Joined: 08 May 2013
Posts: 4
Location: UK

PostPosted: Thu 09 May '13 15:25    Post subject: Reply with quote

Thank you for your reply.

Yes, I did run the installation as Admin.
I had not thought of the windows event log and I have found the error below:

Quote:
Activation context generation failed for "C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin\ApacheMonitor.exe". Dependent Assembly Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.


This problem generally relates to not having the appropriate redistributable installed. The .msi I am using was compiled using vc++ 2008 and I do in fact have the VS2008 SP1 redistro installed. This redistro is actually installed along with Apache via installshield.

I am also running dot net 3.5.1 which is another cause for such an error as the web suggest.
Back to top
Sid.G



Joined: 08 May 2013
Posts: 4
Location: UK

PostPosted: Thu 09 May '13 16:12    Post subject: Reply with quote

Just to add my last post,

The redistributable is intalled after the apache so I can understand why this error is being thrown but the interesting thing is that it has always been this way. The previous versions of Apache were always installed first and it worked. It even installs the new version on Windows 7 but its only having this hiccup when being installed on a windows server OS.
Back to top
James Blond
Moderator


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

PostPosted: Fri 10 May '13 9:48    Post subject: Reply with quote

Installing the redistributable before apache is ok as long as you start not apache before the redistributable is installed.

However, on my 2008R2 I had to install the x86 and x64 redistributable to get apache running.
Back to top
Sid.G



Joined: 08 May 2013
Posts: 4
Location: UK

PostPosted: Sat 11 May '13 15:36    Post subject: Reply with quote

Everything is now working. It seems I needed to apply all the optional updates found by Windows Update. Its funny how sometimes something so small, which often gets ignored, can cause so much of a problem in the long.

Anyways, thank you for your support. It helped to see what was going wrong during installation using the windows event logs.
Back to top


Reply to topic   Topic: A simple Apache 2.2.24 installation problem View previous topic :: View next topic
Post new topic   Forum Index -> Apache