[SOLVED] Localhost This page can't be displayed

Problems with the Windows version of XAMPP, questions, comments, and anything related.

[SOLVED] Localhost This page can't be displayed

Postby Auhn » 18. October 2014 10:06

Hi! Newbie here learning. I'm having trouble getting anything to display after I installed XAMPP :)
There's probably a really simple solution that's just hovering over my head and I really appreciate any help I can get.
I'll describe below each step in the process I've taken and what I've done.

Installation:
1. Fresh installation of Windows Server 2012 R2 (Skype, IIS or other software and features are not installed).
2. Server domain joined with static IP-address.
3. Installed xampp-win32-1.8.3-5-VC11-installer.exe to default installation location C:\xampp\
4. I have not touched httpd.conf or other configuration files.

Firewall:
I've opened the following default firewall ports across domain, private and public profiles:
Apache: 80, 443 (TCP)
MySQL: 3306 (TCP)
Tomcat: 8005, 8009, 8080 (TCP)

Control Panel:
1. I started the XAMPP Control Panel as administrator.
2. I installed Apache, MySQL and Tomcat as services and started them; they all start and are listed as running. (I tested starting and stopping the services a few times when troubleshooting)
Image

Testing if it works:
I open Internet Explorer on the server and go to http://localhost/ but after a few seconds I'm met with This page can't be displayed message.
Image

I checked the log files:
C:\xampp\apache\logs\access.log <-- file is empty
C:\xampp\apache\logs\error.log <-- the entries below are logged immediately upon starting the apache service
Code: Select all
[Sat Oct 18 10:54:41.821847 2014] [ssl:warn] [pid 4060:tid 496] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Oct 18 10:54:41.915599 2014] [ssl:warn] [pid 4060:tid 496] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Oct 18 10:54:41.946848 2014] [mpm_winnt:notice] [pid 4060:tid 496] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15 configured -- resuming normal operations
[Sat Oct 18 10:54:41.946848 2014] [mpm_winnt:notice] [pid 4060:tid 496] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 11:50:08
[Sat Oct 18 10:54:41.946848 2014] [core:notice] [pid 4060:tid 496] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Sat Oct 18 10:54:41.946848 2014] [mpm_winnt:notice] [pid 4060:tid 496] AH00418: Parent: Created child process 3288
[Sat Oct 18 10:54:42.290597 2014] [ssl:warn] [pid 3288:tid 392] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Oct 18 10:54:42.399972 2014] [ssl:warn] [pid 3288:tid 392] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Oct 18 10:54:42.431222 2014] [mpm_winnt:notice] [pid 3288:tid 392] AH00354: Child: Starting 150 worker threads.

I checked Netstat via the XAMPP Control Panel to see what executable used which port:
Image

I'm new to this and I don't know how to proceed to get things working. Can anyone please help me?
Last edited by Auhn on 18. October 2014 10:38, edited 1 time in total.
Auhn
 
Posts: 4
Joined: 18. October 2014 09:30
Operating System: Windows Server 2012 R2

Re: Localhost This page can't be displayed

Postby Auhn » 18. October 2014 10:37

Update: I may have solved my own issue and managed to get things working.
Internet Explorer's Enhanced Security Configuration is enabled by default on the server. When I disabled this feature and restarted Internet Explorer I was able to access http://localhost/ from the server.

In order to access the web server from my network I also edited C:\xampp\apache\conf\extra\httpd-xampp.conf from
Code: Select all
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
   Require local
   ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

to
Code: Select all
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
   Require all granted
   ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>


Tests seem to be working, wish me luck :)
Auhn
 
Posts: 4
Joined: 18. October 2014 09:30
Operating System: Windows Server 2012 R2

Re: Localhost This page can't be displayed

Postby Nobbie » 18. October 2014 10:44

Auhn wrote:Tests seem to be working, wish me luck :)


You will need lots of luck after, your server now is AS UNSAFE AS POSSIBLE. If you are planning to go online with this configuration, dont be surprised if you loose all data or similar.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Localhost This page can't be displayed

Postby Auhn » 18. October 2014 10:57

Nobbie wrote:
Auhn wrote:Tests seem to be working, wish me luck :)


You will need lots of luck after, your server now is AS UNSAFE AS POSSIBLE. If you are planning to go online with this configuration, dont be surprised if you loose all data or similar.

Thanks for the heads up! Right now I'm just looking to learn more about apache and php. The server is just for testing purposes. It will never go online. When I get a better feel for where everything's at I'll learn more about security settings and lock it down like you're supposed to. Right now my only focus is to get it up and running in order to create a learning environment.
Auhn
 
Posts: 4
Joined: 18. October 2014 09:30
Operating System: Windows Server 2012 R2

Re: Localhost This page can't be displayed

Postby Nobbie » 18. October 2014 11:04

Auhn wrote:Right now my only focus is to get it up and running in order to create a learning environment.


I only wonder, why you need access to the admin pages from different clients than localhost only?
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Localhost This page can't be displayed

Postby Auhn » 18. October 2014 11:28

Nobbie wrote:
Auhn wrote:Right now my only focus is to get it up and running in order to create a learning environment.


I only wonder, why you need access to the admin pages from different clients than localhost only?

No real justifiable reason. I simply want to be able to administrate the server as much as possible from an administration console. In a test environment I think it's ok. But if I ever decide to do anything in production then it won't be acceptable and I'll need to follow best practices.
Auhn
 
Posts: 4
Joined: 18. October 2014 09:30
Operating System: Windows Server 2012 R2


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 132 guests