Re: Running on Win 10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/06/2021 22:19, Michael wrote:
Hello users of Apache2.4.

I have been a long time user of the Apache servers installed on various versions of Microsoft Windows.The main purpose of using Apache is to develop my websites on a live server on my computer before releasing the documents to the WWW.It saves a lot of time and headaches.

Every time I try and upgrade the windows operating system and re-install Apache I run into major roadblocks.

I have spent two days searching Google, and the Apache website for clues, I found a lot, but none have resolved the problems.

1.How do I get Windows 10 to start Apache at boot up?

Assuming you have downloaded the Windows binaries from <https://www.apachelounge.com/download/> then when you unzip the downloaded files, you'll find a bin folder.  change to the bin folder and then run this command at the cmd prompt:

httpd.exe -k install
This cmd will install a service that will do what you want to do.




2.How do I get Apache to load and index my folders and html documents?

The index.html file is loaded depending on your apache configuration.  My Windows 10 configuration contains this:

<IfModule dir_module>
    DirectoryIndex index.php index.html index.shtml default.html main.html
</IfModule>

The order is as shown above but you can place index.html before index.php file to make sure index.html file is loaded always, assuming the file exists in the folder.



I used to be able to perform the above function in Windows 7, but now I am stumped.

This is what I have performed:

1.I edited the hosts file to include 127.0.0.1

or you can just type localhost in the browser address bar and it will do the same thing.




2.I downloaded the Apache zip file and extracted to C:\Apache24\bin


Good.


3.I ran httpd.exe.A command box opened.

4.In my Firefox browser I entered in the URL field:localhost.I received the Apache welcome page.It works!

5.In my Firefox browser I entered in the URL field:127.0.0.1.I received the Apache welcome page.It works!

6.I cannot figure out how to get Apache to look at and index the files in the following folder (an internal hard drive.) D:\WebSites\JazzClub.com

First make sure that the index file is located at the root of the folder called: JazzClub.com

Then make sure  the DocumentRoot looks like this:

DocumentRoot "D:\Websites\JazzClub.com"



Can anyone provide a little help here?

Hopefully the above changes will resolve most of the problems.



--

With over 1.3 billion devices now running Windows 10, customer satisfaction is higher than any previous version of windows.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux