XAMPP Installation on Window Workstation/Server
1 Download Link:
https://www.apachefriends.org/download.html
https://www.apachefriends.org/download.html
2. Configure Custom ports for HTTP/HTTPS:
If you click Start on Apache right now and it turns red or immediately stops, you have a port conflict. Let's shift Apache over to custom alternative high-order ports.
Part A: Changing the HTTP Port (80 ➔ 8080)
> Open the XAMPP Control Panel.
> Click the Config button right next to the Apache service, and select Apache (httpd.conf).
> In the text file that opens, press Ctrl + F and search for Listen 80
Change that line to:
Apache
Listen 8080
> Next, search for ServerName localhost:80
Change it to:
Apache
ServerName localhost:8080
> Save and close the file (Ctrl + S).
Part B: Changing the HTTPS/SSL Port (443 ➔ 4433)
> In the XAMPP Control Panel, click the Config button next to Apache again, but this time select Apache (httpd-ssl.conf).
Search (Ctrl + F) for Listen 443.
Change it to:
Apache
Listen 4433
>Next, search for <VirtualHost _default_:443>.
Change it to:
Apache
<VirtualHost _default_:4433>
>Finally, search for ServerName localhost:443.
Change it to:
Apache
ServerName localhost:4433
>Save and close the file.
> In the XAMPP Control Panel, click the Config button next to Apache again, but this time select Apache (httpd-ssl.conf).
Search (Ctrl + F) for Listen 443.
Change it to:
Apache
Listen 4433
>Next, search for <VirtualHost _default_:443>.
Change it to:
Apache
<VirtualHost _default_:4433>
>Finally, search for ServerName localhost:443.
Change it to:
Apache
ServerName localhost:4433
>Save and close the file.
3: Testing Your New Setup
>Click Start next to Apache.
>Click Start next to MySQL.
Because we shifted away from standard ports, typing just localhost into your browser will no longer work. You must explicitly append your new port number to the URL:
Your Local Dashboard: http://localhost:8080
Your Database Management (phpMyAdmin): http://localhost:8080/phpmyadmin
Secure HTTPS Connection: https://localhost:4433
Comments
Post a Comment