Page 1 of 1

Cannot close Port 80

PostPosted: 04. August 2020 14:28
by GlennFraser
I have tried several times to activate 7.4.8 but it always fails. I am enclosing the procedures I use. The first few cells in the table provide an overview, followed by details of each step.
*************************************************************
AAA GLF2 - XAMPP Installation 2020-07-26

0 ***** This procedure identifies the modules to install XAMPP *****
NOTE: Windows 10 Build 1909 ! installed 2020-07-26 - (July 26, 2020)
NOTE: There is no Anti-Virus installed other than Windows Defender Firewall.

***** Modules Overview ******
Windows Firewall Disable Port 80
Confirm Port 80 has been disabled
NOTE: The first module using Windows Defender does not work because Port 80 is still listening!
Startup - Disable Startup programs
UAC - Disable UAC
Windows Defender Firewall - Disable
Execute XAMPP program - Do not start immediately
XAMPP Control Panel - Run as Adminstrator
Ports - Select Port 8080 = Yes
Ports - Select Port 1443 = Yes
XAMPP Control Panel ConfigService and Port Settings
8080 in the “main port” and 1443 in the “SSL port” = Yes
Installation Progress
******************************
3:37:42 PM [main] Initializing Control Panel
3:37:42 PM [main] Windows Version: Home 64-bit
3:37:42 PM [main] XAMPP Version: 7.4.8
3:37:42 PM [main] Control Panel Version: 3.2.4 [ Compiled: Jun 5th 2019 ]
3:37:42 PM [main] Running with Administrator rights - good!
3:37:42 PM [main] XAMPP Installation Directory: "c:\xampp\"
3:37:42 PM [main] Checking for prerequisites
3:37:44 PM [main] All prerequisites found
3:37:44 PM [main] Initializing Modules
3:37:44 PM [Apache] Problem detected!
3:37:44 PM [Apache] Port 80 in use by "Unable to open process" with PID 4!
3:37:44 PM [Apache] Apache WILL NOT start without the configured ports free!
3:37:44 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
3:37:44 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
3:37:44 PM [main] The FileZilla module is disabled
3:37:44 PM [main] The Mercury module is disabled
3:37:44 PM [main] The Tomcat module is disabled
3:37:44 PM [main] Starting Check-Timer
3:37:44 PM [main] Control Panel Ready
3:44:48 PM [Apache] Status change detected: running
******************************
NOTE: Port 80 is still in use and I cannot disable it. Note this is Windows 10, Build 1909 !

***** End of the Overview *****

***** MODULES *****
1 Windows Firewall Disable Port 80
This module is designed to disable Port 80 and 443 for outgoing Out Going traffic.
1. Click Start Button
2. Click the Settings button
3. Enter Defender in the text box.
4, Click Windows Defender Firewall
5. Click Advanced Settings on the left window.
The window: “Windows Advanced Security on the Local Computer will appear
The top pane is titled : “Overview”.
The bottom pane is titled: “Getting Started”
6. In the Getting Started pane, Click Outbound Rules
The Outbound Rules Window will appear.
7. Move down the list to Recommended Trouble Shooting Client (HTTP HTTPs Out)
The second column says Recommended Trouble Shooting Note it is the only one in this category.
Slide the slider to the right and it will identify in the Remote Port Column the values “80,443” These are the ports to disable.
8. Slide the slider to the left to the Enabled column and Right click Disable Rule. Then entry should now should show “No
9. Slide the slider to the right to the Action column. And Right click.
In the bottom pane of this window Click Block
9. Exit Windows Defender Firewall

2 Confirm Port 80 has been disabled
This module confirms Port 80 has been disabled
1. Right Click Start
2. Click Command Prompt (Admin)
3. Enter “netstat -nao” on the command line
If Port 80 does not appear at the top of the list, then port 80 has been disabled.
If Port 80 appears at the top of the list, then port 80 has NOT been disabled.
4. Exit the window

NOTE: The first module using Widows Defender does not work because Port 80 is still listening!

3 Startup - Disable Startup programs
This module makes certain there are no programs in Start-Up that might interfere with the Installation. All the items have been “Disabled.

1 Right Click the “Start” button on the task bar at the bottom of the page
2. Move up to the Command Prompt (Admin) and click on it
3. At the command prompt in the window, enter “msconfig” and press enter key
4. A window will open but there is no title to the window. It has the following tabs: General, Boot, Services, Startup, Tools
5. Select the Startup tab
The message “To manage startup items, use the Startup section of the Task Manager”
6, Click the box “Open Task Manager” to open the Task Manager window.
7. Select the “Startup” tab to display a list of all programs that are enabled or disabled.
8. Set all the items to “Disabled”
9. Close all windows
yes
4 Disable UAC
This module disables UAC from interfering with the installation
1. Click Start
2. Click Settings
3. Enter UAC in the text box at the top
4. Click Change User Account Control settings in the search results.
5. Disable UAC by dragging the drag the slider down to Never Notify and click OK.
6. Exit
NOTE: You can Enable UAC by dragging the slider up to the top and click OK
Yes
5. Windows Defender Firewall - Disable
************************************
1. Click the “Start” button at the bottom left of the task bar
2. Click the “Setting” button
3. Enter “Windows Defender” in the text box at the top of the page.
4. Select “Windows Security”.
5. Click on Firewall and Network Protection
6. Click on PrivateNetwork
7. On the Private Network window, click on the Windows Netwrok Firewall to ‘Off”. The screen will indicate the Firewall is off
8. Close the window.

5 NOTE On GLF2, BitDefender was not installed

6 Execute XAMPP program
NOTE: In the installation process there is the option to start everything or not to do so. If you choose not to start the process then in the XAMPP folder at the root directory (C:\XAMPP) you can use the Control.exe program to start the process at a later time. Do not start Apache or MySql in opening the XAMPP control panel


1. Choose NOT to start the program !!!
2, Click XAMPP folder at the root of the “C” drive (C:\XAMPP) to open the Control Panel
3. Right Click XAMPP Control.exe program.
4. Click Run as Adminstrator
4. Click on XAMPP Control.xe
The XAMPP Control Panel will open.

7 Ports - Select Port 8080
This module lets you change the default ports 80 and 443 to 8080 and 1443
1. Confirm the XAMPP Control panel
2. Click on Configure in the Apache row
3. Select the Apache httpd.conf option
4. Use the Edit Find command to find every occurrence of 80 in the document and change it to 8080.
5. When finished finding 80, save the program httpd.conf

8 Ports - Select Port 1443
1. Click on Configure in the Apache row
2. Select the Apache httpd-ssl.conf option
3. Use the Edit Find command to find every occurrence of 443 in the document and change it to 1443.
4. When finished finding 443, save the program httpd-ssl.conf.

9 1. In the XAMPP Control Panel click the Config button (top right hand corner)
2. Click Service and Port Settings
3. Click the Apache tab
4. Enter 8080 in the “main port” and 1443 in the “SSL port”
5. Save the changes
6. Exit this window.

NOTE: On the XAMPP Control Panel the new numbers should appear. (eg. 8080 and 1443) = Yes

NOTE: The program does not work because Port 80 is still open.


10 NOTE: Now you will have to access your local host by entering
Htpt//Localhost:8080

16. Start the Apache server and the MySQL server

***** End of installation of XAMPP *****
11 Enable UAC
This module enables UAC and returns it to its previous condition.
1. Click Start
2. Click Settings
3. Enter UAC in the text box at the top
4. Click Change User Account Control settings in the search results.
5. Enable UAC by dragging the slider up to the top and click OK

12 Enable Windows Defender
This module enables Defender and returns it to its previous condition.
1. Click the “Start” button at the bottom left of the task bar
2. Click the “Setting” button
3. Enter “Windows Defender” in the text box at the top of the page.
4. Select “Windows Security”.
5. Click on Firewall and Network Protection
6. Click on PrivateNetwork
7. On the Private Network window, click on the Windows Netwrok Firewall to ‘ON”. The screen will indicate the Firewall is On.
8. Close the window.
9. Close the window.

***** XAMPP Installation Complete *****