Two tips Using XAMPP, Apache, Tomcat on Windows 7 (getting started)

0 0
Read Time:2 Minute, 3 Second

Here are some practical tips for getting XAMPP running on your Windows 7 machine. I use this for getting my Hudson / Maven / Sonar demonstation environment.
There are two issues that can save you a lot of time when you know how to solve them.

My configuration:

  • Windows 7, 64 bit.
  • Xampp 1.7.4 with Tomcat 7 included. (install via windows installer, nexted through install menu, no special things)

After running the installer there are two issues:

  1. Apache does not start
  2. Tomcat will only run command line and not as a Windows service.

1. Apache does not start.

The XAMPP control panel does nog give any feedback and  command line : apache_start.cmd gives the following error:

Diese Eingabeforderung nicht waehrend des Running beenden
Bitte erst bei einem gewollten Shutdown schliessen
Please close this command only for Shutdown
Apache 2 is starting ...
(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted.  : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

Apache konnte nicht gestartet werden
Apache could not be started

It seems there is already a process running on port 80. This is the World wide web publishing servicer
Solution : Stop and disable
this service and start apache. Voila.

2. Tomcat will only run command line.

After this step I discovered Tomcat has no option on the Xampp control panel. You can start tomcat by gaining to [xampp-home]\tomcat\ and run catalina_start.bat.

Problem is that you will have to have the command window always open and you cannot run this on your server.

In the \tomcat\bin folder you will find “service.bat. Via the command service install you can install tomcat as a service.  This command gives the following error.

C:\xampp\tomcat\bin>service install
Installing the service ˜Tomcat7™ ...
Using CATALINA_HOME: C:\xampp\tomcat
Using CATALINA_BASE: C:\xampp\tomcat
Using JAVA_HOME: C:\Program Files\Java\jdk1.6.0_21
Using JRE_HOME: C:\Program Files\Java\jdk1.6.0_21\jre
Using JVM: C:\Program Files\Java\jdk1.6.0_21\jre\bin\server\jvm.dll
Failed installing ˜Tomcat7™ service

You can fix this by altering the properties of tomcat7.exe and tomcat7w.exe.  Change the compatibility to run as administrator and the service will install. Again, voila.

tomcat w properties

Hope you find these tips helpful.  Good luck.
Google

About Post Author

Robbrecht van Amerongen

I am Head of IoT at AMIS | Conclusion. I have a long term of experience in business development and software delivery. My specialization is to utilize new technologies and methodologies to valuable products and services for his customers. Keywords: innovation and business development, agile, internet of things, IoT, azure cloud, devops.I am also an Agile coach and <b>Certified Agile Master</b> with experience managing Agile projects with Scrum (first with DSDM) ranging back to the stone ages (1999). Robbrecht is a strong proponent of agile principles. Robbrecht is an agile examiner for the agile foundation, practitioner, and master certificate.
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

4 thoughts on “Two tips Using XAMPP, Apache, Tomcat on Windows 7 (getting started)

  1. Thanks so much!!!! That last line

    You can fix this by altering the properties of tomcat7.exe and tomcat7w.exe. Change the compatibility to “run as administrator” and the service will install. Again, voila.

    do the magic!!!

  2. Thanks, the Tomcat hint works well for me.
    However, the xampp console does not indicate that Tomcat is running – is there a way to start/stop Tomcat once it is installed as a service?

Comments are closed.

Next Post

Browser-based log-monitor for database applications (alternative to dbms_output,leveraging pipe and Embedded PL/SQL Gateway with a touch of AJAX)

One of the topics I discussed in today’s Masterclass Advanced Database Development was inter-session communication – or how database sessions can exchange information. One of my favorite vehicles to accomplish that is the database pipe (leveraging the supplied package dbms_pipe) – a light weight, fast, in memory facility. Pipes can […]
%d bloggers like this: