How To Setup Many Web Folders in XAMPP – Cross OS, Apache, MySQL, PHP, Perl (XAMPP) Stack for Web Development

The topic of this article is how to set up many web folders in XAMPP.

We assume you are an upper beginner at least a web developer in PHP/MySQL.


For complete beginners read here:
What is XAMPP & How To download:

https://www.apachefriends.org/download.html

https://www.javatpoint.com/xampp-vs-wamp-vs-mamp-vs-lamp


Using XAMPP you must know that: if installed to the default directory:

c:/xampp/

or

D:/xampp/

your web folder is:

c:/xampp/htdocs/

or

D:/xampp/htdocs/

respectively … and access as http://localhost/

What if your web projects as a PHP/MySQL Web Developer or/and JavaScript Web Developer are for example at:

D:/Documents/Web Projects/

or

C:/Documents/Web Projects/

and you do NOT want to move them to another directory…


Here you will learn how to – leave folders as are and add the directories as aliases to XAMPP setup/configuration:

D:/Documents/Web Projects/ alias e.g. /repo2, accessed as http://localhost/repo2/

or

C:/Documents/Web Projects/ alias e.g. /repo3, accessed as http://localhost/repo3/


For users who want to follow a SlideShare Presentation, go to -1- below;

For those who want to follow a YouTube video, go to -2- below…;

If you want a Fast How-To continue reading this Article below -3- …


-1-


-2-


-3-

For the example at the top of this article: let’s say we have a Development Windows 10 or 11 PC/Laptop & XAMPP installed at c:/xampp/ … :

Development folder-1:

D:/Documents/Web Projects/
alias e.g.
/repo2
accessed as http://localhost/repo2/

or

Development folder-2:

C:/Documents/Web Projects/
alias e.g.
/repo3
accessed as http://localhost/repo3/

repo2 or repo3 aliases names should be strings without space, avoid special chars, and must be anything string convenient to you.

You have to find the configuration file:
httpd-xampp.conf
and add the code at the bottom above the last line of

</IfModule>

FINAL RESULT:

Alias /repos2 "D:/Documents/Web Projects/"
<Directory "D:/Documents/Web Projects">
   AllowOverride AuthConfig
   Require local
</Directory>

Alias /repos3 "C:/Documents/Web Projects/"
<Directory "C:/Documents/Web Projects">
   AllowOverride AuthConfig
   Require local
</Directory>


</IfModule>

Usually, the httpd-xampp.conf is at:

C:\xampp\apache\conf\extra\httpd-xampp.conf

Alternatively, there is a shortcut to access XAMPP conf files, etc. files… see:




This article was a step-by-step ASAP Configuration/Setup.

For more details see the SlideShare Presentation and/or the YouTube Video.



Windows 11 Pro for Workstations Unsupported Upgrade 22H2 ->23H2


For Windows 24H2 go here. For 23H2 Continue.

SOLVED PROBLEMS BY READING THIS ARTICLE:

  1. Download Windows-11-Pro.iso [All versions & Workstations] from Microsoft
  2. My PC from eBay.com a hp z640 – default language: de-de, change to us-en
  3. Bypass Restrictions of Win-11 Pro for WS: upgrade 22H2 to 23H2 *
  4. After upgrading from 22H2 to 23H2, Win-11 Pro for Workstations, some minor updates may be needed
  5. Buy Cheap Software keys – Windows 11/10 Pro for Workstations, Windows 11 Pro, Home, etc. **

* Instructions given – This method DOES NOT USE 3rd Party Tools. It does use the Official Windows11.iso from the Microsoft website – download, and some CLI commands – All Safe === All Microsoft…!!!!!!!!!!!!!!!!!!!!!!!!!

** Windows 11/10 Pro for Workstations can be installed on any PC, but to make use of all of its functions and power needed Workstation PC, eg. Intel XEON processor, ECC RAM, Professional Graphics card…etc.


1- Download Windows-11-Pro.iso [All versions & Workstations] from Microsoft

https://www.microsoft.com/software-download

Please go to:

https://www.microsoft.com/software-download/windows11

After in the 3rd section of:

Download Windows 11 Disk Image (ISO) for x64 devices

Choose in the drop-down menu: Windows 11 (multi-edition ISO for x64 devices)

Press the button “Download now”

And after in the appeared Section: Select the product language:

English (United States)

Press the button “Confirm”

The Section “Download – Windows 11 English” appears

Press the button “64-bit Download”

Save the file in the prompt as: Win11_23H2_English_x64v2.iso

Repeat the Process but this time – we do this because the eBay PC has a base language of German so needs German ISO to upgrade:

And after in the appeared Section: Select the product language:

German

The Section “Download – Windows 11 German” appears

Press the button “64-bit Download”

Save the file in the prompt as: Win11_23H2_German_x64v2.iso

Note-1: these downloads e.g. Win11_23H2_German_x64v2.iso can be used for installing or upgrading any flavor of Windows 11 like:

Windows 11 Home, Windows 11 Pro, Windows 11 Pro for Workstations,…

Note-2: Verify your download always to be sure indeed download is from the origin of Microsoft:

Press Verify your download

As described go to the CLI CMD PROMPT or PowerShell and type as shown in the pictures below:

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS D:\Downloads\ISOs\2023 ISOs> date

22 April 2024 18:44:15

PS D:\Downloads\ISOs\2023 ISOs> pwd

Path

D:\Downloads\ISOs\2023 ISOs

PS D:\Downloads\ISOs\2023 ISOs> Get-FileHash Win11_23H2_English_USA_x64v2.iso

Algorithm Hash Path
——— —- —-
SHA256 36DE5ECB7A0DAA58DCE68C03B9465A543ED0F5498AA8AE60AB45FB7C8C4AE402 D:…

PS D:\Downloads\ISOs\2023 ISOs> Get-FileHash Win11_23H2_German_x64v2.iso

Algorithm Hash Path
——— —- —-
SHA256 9BD27FD71714D7458D88B537DB74DE115CE7585FCD78783ED38D96A544017B68 D:\Downlo…

PS D:\Downloads\ISOs\2023 ISOs>

====

Now compare the SHA256 CHECKSUM with Microsoft web site at

https://www.microsoft.com/software-download/windows11 .

If they match you are good to proceed.

====


2- My PC from eBay.com a hp z640 – default language: de-de, change to us-en

If proceed with Upgrade from 22H2 to 23H2:

Normally will run the file setup.exe in the root file structure of the ISO. BEFORE DO THIS the ISO file gets burned on DVD, mounted to a drive, or extracted from ISO to a USB Stick location. You have to do this for both ISOs

Win11_23H2_German_x64v2.iso and Win11_23H2_English_USA_x64v2.iso

There are 2 problems Language should be de-de/German and hardware restrictions.

To bypass the language in the Win11_23H2_German_x64v2.iso extraction replace the folder:

G:\Win11_23H2_German_x64v2-en\sources\de-de

with

Win11_23H2_English_USA_x64v2\sources\en-us\

We proceed as follows: copy the Win11_23H2_English_USA_x64v2\sources\en-us\ to G:\Win11_23H2_German_x64v2-en\sources\

Rename the:

G:\Win11_23H2_German_x64v2-en\sources\de-de\

to

G:\Win11_23H2_German_x64v2-en\sources\de-de_2\

and the H:\Win11_23H2_German_x64v2-en\sources\en-us\ to G:\Win11_23H2_German_x64v2-en\sources\de-de\ .

This way I can follow in ENGLISH during the upgrade as I do not know German, see screenshots:


3- Bypass Restrictions of Win-11 Pro for WS: upgrade 22H2 to 23H2 *

The last step is to start the Upgrade process from 22H2 to 23H3. If the hardware supports Windows 11, we proceed to run the:

“G:\Win11_23H2_German_x64v2-en\setup.exe”

But the hardware is unsupported:

So, we proceed as follows:

Open CLI as Administrator and go to the folder:

G:\Win11_23H2_German_x64v2-en\sources\

THEN WE GIVE THE COMMAND:

setupprep.exe /product server

This will start the upgrade process ignoring the Hardware Restrictions of Windows 11.

Please ignore the “Install Windows Server” – It does not matter – it is upgrading the OS in which you run it, in our case Windows 11 Pro for Workstations – but, can also be Windows 11 Home, Windows 11 Pro, if e.g. Home or Pro, Windows 11.

Press “Next”

Press “Accept”

Press “Next”

Press “Install”.
[If you use a PC I recommend a UPS or if you use Laptop Plug-in the power cord]


4- After upgrading from 22H2 to 23H2, Win-11 Pro for Workstations, some minor updates may be needed

You proceed normally for minor updates – there is no check for unsupported hardware. See below shots:

here are some German words involved, for unknown reason:

You can search in Settings for “lang”, normally if you log out, re-login, or restart the PC, when prompted – some of the screen words may be in German but you will understand the RESTART Button is self-explanatory.

====

Thank you!

Please share this article with your friends on Social Media!


5- Buy Cheap Software keys – Windows 11/10 Pro for Workstations, Windows 11 Pro, Home, etc. **

Windows 11 Pro for Workstations – $13.99 just

Windows 10 Pro for Workstations – $13.41 just

Windows 11 Pro

Windows 10 Pro

Windows 11 Home

Windows 10 Home

Windows 11 Pro + Office 2021 Pro Plus

Windows 10 Pro + Office 2021 Pro Plus


Setup Laravel 10.x Homestead in Windows 10/11

Section – 1 [Install Software]

https://laravel.com/docs/10.x/homestead#installation-and-setup

vagrant_2.3.7_windows_amd64.msi – https://developer.hashicorp.com/vagrant/downloads

VirtualBox-6.1.46-158378-Win.exe – https://www.virtualbox.org/wiki/Download_Old_Builds_6_1

VirtualBox 6.1.46 (released July 18 2023) << This and Not the >> VirtualBox 7.0.10 platform packages – ​Windows hosts

According to: https://laravel.com/docs/10.x/homestead#installation-and-setup

Code Editor/IDE: PhpStorm-2023.1.4.exe or VSCodeSetup-x64-1.80.1.exe

Lastly install: Git-2.41.0.3-64-bit.exe – https://git-scm.com/downloads

Section – 2 [ENABLE VT-x in Hardware/BIOS/UEFI if disabled]

http://leonidassavvides.com/blog/2023/07/23/enable-vt-x-in-hp-z640-workstation/

Section – 3 [Installing Homestead]

https://laravel.com/docs/10.x/homestead#installing-homestead

Go To CLI Terminal in IDE/Editor or Windows Terminal or Git Bash Terminal and execute:

git clone https://github.com/laravel/homestead.git D:\htdocs_xampp\Homestead

where D:\htdocs_xampp\Homestead the Homestead directory, after entering this directory:

d:
cd d:\htdocs_xampp\Homestead

Next, execute the bash init.bat command from the Homestead directory to create the Homestead.yaml configuration file. The Homestead.yaml file is where you will configure all of the settings for your Homestead installation. This file will be placed in the Homestead directory: if there is a problem with the

init.bat 

use

./init.bat

Section – 4 [Configuring Homestead]

Follow the instructions at:

https://laravel.com/docs/10.x/homestead#configuring-homestead

For configuring the file: Homestead.yaml

Section – 5 [Launching The Vagrant Box]

After all, the steps above, it is time to:

Launching The Vagrant Box

You must have in mind the 4 most used CLI commands FROM CLI/Terminal at d:\htdocs_xampp\Homestead\:

vagrant up # if error on this - please Section 6 below
vagrant status
vagrant suspend
vagrant ssh

Section – 6 [Configuring SSH Keys]

In case the first attempt of running:

vagrant up

you getting

Please give the command to generate ssh keys in Windows:

ssh-keygen -t rsa -C "username@email.com"

This will create the:

C:\Users\lwdls\.ssh\id_rsa.pub
C:\Users\lwdls\.ssh\id_rsa

Then you have to go to Homestead.yaml and edit the SSH Keys with the correct Keys you have just created:

authorize: C:\Users\lwdls.ssh\id_rsa.pub
keys:
     - C:\Users\lwdls.ssh\id_rsa

Then you return to Section – 5 and give the command: vagrant up

The first time you have to await some time to download the Vagrant VM – Ubuntu Server from the repositories…

After the VM OK is launched go to: http://homestead.test/phpinfo.php to see the webpage of phpinfo():

phpinfo.php

<?php
phpinfo();
?>

if any problem put the phpinfo.php

in

public/phpinfo.php

to stop the VM – shutdown the PC – give

vagrant suspend

To add additional sites:

Adding Additional Sites

https://laravel.com/docs/10.x/homestead#adding-additional-sites

To create a Laravel Site – start with download Laravel files with the:

https://laravel.com/docs/10.x/installation#your-first-laravel-project

At Terminal d:\htdocs_xampp\

composer create-project laravel/laravel example-laravel-app

Composer can be installed from:

https://getcomposer.org/download/

Also, the composer comes preinstalled in Homestead/Vagrant/VM

And, a second way is:

After:

vagrant up 

Give:

vagrant ssh

and from Terminal at /home/vagrant/ give the command:

 composer create-project laravel/laravel example-laravel-app

Any way you choose, be sure to edit the Homestead.yaml and every new website added to run:

vagrant reload --provision

And lastly

To run a new URL locally modify the host file at:

On macOS and Linux, this file is located at /etc/hosts. On Windows, it is located at C:\Windows\System32\drivers\etc\hosts:

192.168.56.56 homestead.test
192.168.56.56 another1.test
192.168.56.56 another2.test

Again, according to

Homestead.yaml

After, download the Laravel 10.x bootstrap code base, view the Laravel homepage accordingly by going to http://another1.test.

Happy Laravel Web Development & Coding…!