XAMPP Troubleshooting
Cross(x) Platform Apache MySql PHP and Perl is XAMPP.
You still Apache server software on a laptop, and can use your server locally on your laptop.
Using the file:/// protocol instead of http:// with localhost (which will appear initially as http://localhost/... but then changes usually to localhost in the web address bar.
•Remember that SITE ROOT in your web address bar is http://localhost/... or localhost/…
•Remember that SITE ROOT in your XAMPP applications folder is the htdocs folder within the XAMPP folder
•All files and sub-folders that follow or are within these two site root areas above NEED TO MATCH EXACTLY, which leads to…
Not specifying the correct sub-folder and file path names, spelling, or folders that follow after the localhost/ site root URL.
•Again these sub-folders and file path names MUST match what is WITHIN the htdocs in your XAMPP folder on your computer.
Not having the Apache server running in XAMPP
•Opening up XAMPP and starting the Apache server usually fixes this…
•With 2 exceptions…
• Had to change the port number from 80 to 81 in the configuration file in the XAMPP app. Have to change in 2 places.
Helpful Video Walkthrough
Troubleshooting:
If you can't get Apache to close on Windows...
For Windows cmd.exe
net stop Apache2.4
# or for specific versions
net stop Apache2.4
# or
taskkill /F /IM httpd.exe
# or for Apache
taskkill /F /IM Apache.exe
For Windows Powershell
Stop-Service Apache2.4
# or
Stop-Process -Name httpd -Force
# or
Stop-Process -Name Apache -Force