Hello,

I am trying to install apache on my localhost but cannot find the file that I need to install apache.

https://projects.apache.org/projects.html?name

Why there are so many apache installer file?

Which one should I download?

Dani AI

Generated

For clarity: httpd-2.4.34.tar.gz is the Apache HTTP Server source tarball, not a Windows installer. That archive contains source code and build scripts intended for Unix-like systems. As correctly asked, the operating system matters — a .tar.gz won't “run” on Windows without extracting and compiling, which is an advanced route requiring a Visual C++ toolchain and several dependencies.

Practical routes for a Windows setup (summarizing and expanding on earlier suggestions from , and ):

  • Use a bundled development stack when PHP/MySQL are needed (quickest way to get a working localhost with minimal fuss).
  • Use a prebuilt Windows binary distribution if only Apache is required (gives control without compiling).
  • Use a Windows package manager if comfortable with that workflow (automates install and updates).

Typical quick-install notes for a prebuilt Apache zip (common convention and useful when not using a bundle): extract into a folder such as C:\Apache24; the main config file is conf\httpd.conf and the document root is usually htdocs inside the install folder. From an elevated command prompt the server can be registered and started as a service:

cd C:\Apache24\bin
httpd.exe -k install
httpd.exe -k start
httpd.exe -t        # test configuration syntax

Troubleshooting pointers: check logs\error.log for startup errors, verify no other process is bound to port 80 (IIS/Skype/etc.), confirm Windows Firewall allows the chosen port, and edit the Listen or DocumentRoot directives in httpd.conf if needed. If the goal is simple local development, bundled packages are fastest; compiling the tarball on Windows is possible but only recommended when a custom build is truly required.

Recommended Answers

All 10 Replies

I downloaded - httpd-2.4.34.tar.gz

and still cannot understand the file structure.

First, how to run the apache web server? which file do I need to click?

Second, in which folder do I need to put my web project files?

Are running Linux? Are you running this on your own local computer?

When you say run, do you mean install? If on Windows, there is the msi installer.

It's on Windows 10 - where can I find the msi installer?

Follow my link and there will be a Windows section.

To anyone other than Davy, you're best using . It's a sane apt/brew like package manager for Windows and does all the hard work for you.

Of course, using a Unix like OS makes it even easier.

commented: Thanks for this. Something new to me. +15

Nice pty +1. Can't leave comment as am on mobile. The choco has great defaults too. Perusing the official apache site, getting a decent set of default mods for a Windows setup looked a bit onerous.

Personally I find WAMP (Windows Apache MySql Php) ideal as it gives you the web server, database engine and php language in one download. You get a www directory and can pop multiple projects in there by giving each its own folder

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.