Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Basic Apache commands for a local Windows machine

Tags:

I have installed XAMPP on my Windows 7 machine and created a number of virtual servers. This part is straightforward enough.

Each time I add a new virtual server I am having to reboot my computer in order to reboot the Apache server, which is of course quite time consuming.

I have googled and found the correct console commands to use to reboot Apache, but absolutely non of the references that I have found actually tell you where to type the relevant commands! A certain level of knowledge is assumed.

So my question is - where do I actually type apache -k restart?

like image 770
Ar77 Avatar asked Jul 14 '11 12:07

Ar77


People also ask

How do I run Apache on Windows?

Step by step Apache install on Windows Download the installation media in the form of a ZIP file. Extract the contents of the Apache Web Server 2.4 zip to the file system. Locate the extracted Apache24 folder and copy this folder to the root of C:\ Open the C:\Apache24\bin folder and run the httpd.exe command.

Can Apache be used on Windows?

The primary Windows platform for running Apache 2.4 is Windows 2000 or later. Always obtain and install the current service pack to avoid operating system bugs. Apache HTTP Server versions later than 2.2 will not run on any operating system earlier than Windows 2000.


1 Answers

Going back to absolute basics here. The answers on this page and a little googling have brought me to the following resolution to my issue. Steps to restart the apache service with Xampp installed:-

  1. Click the start button and type CMD (if on Windows Vista or later and Apache is installed as a service make sure this is an elevated command prompt)
  2. In the command window that appears type cd C:\xampp\apache\bin (the default installation path for Xampp)
  3. Then type httpd -k restart

I hope that this is of use to others just starting out with running a local Apache server.

like image 91
Ar77 Avatar answered Sep 21 '22 14:09

Ar77