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?
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?
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 ):
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.
Jump to Post— alan.davies 185I am assuming you want the apache Web server (http server). You do not state your operating system. See the download page... http://httpd.apache.org/download.cgi#apache24
Jump to Post— alan.davies 185Are 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.
Jump to Post— pty 882To 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.
I am assuming you want the apache Web server (http server). You do not state your operating system. See the download page... http://httpd.apache.org/download.cgi#apache24
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.
Darn sorry Davy. My mistake. Apache no longer does msi. Apparently they stopped at v2. 2. It is now at v2. 4.
Try this link for more info... https://stackoverflow.com/questions/28227316/i-cant-find-the-apache-http-server-msi-installer
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.
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.
if you are looking for a LAMP environment, you can use it https://www.apachefriends.org/download.html
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
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.