XAMPP - “This webpage is not available”

梦想与她 提交于 2019-11-28 12:59:16

Try running control panel with admin rights. Right click on control panel icon and select "Run as administrator". Also it would help if you pasted here the messages that you get in control panel when you start apache (mysql is not needed to run your hello.php file since you don't access any database).

If admin privileges did not work for you, and you are SURE that your firewall or some other app is NOT blocking Apache ... then:

Make sure, you are visiting the same port, that your Apache is listening to...

Basic http://localhost/ is actually requesting port 80
Secure https://localhost/ is requesting port 443

So in Control Panel, check what ports are 'on' for Apache:
Usually the first one of 2 ports is the one you want - if there is 80, use http://localhost/ ,
if there is 443, you would use https://localhost/

...and lastly - if there is NONE of these 2, you need to write your URL like:
http://localhost:PORT_NUMBER

I hope this will help someone :)

I've actually also had quite some issues with XAMPP now, so I bet it's a problem with the software setup. Here are some reasons that could cause your roblem.

  1. Try the local URL http://127.0.0.1/hello.php
  2. Check the XAMPP control panel to see if Apache is running properly
  3. Restart your computer
  4. Run Apache with Administrator privileges
  5. Check the Apache server configuration

Some less probable causes

  1. Make sure no Firewall or other software is blocking the applications, specifically port 80 [e.g., Skype may do that; can be disabled in a menu]. You might want to try out Windows Firewall to try it out ( make sure to reenable it afterwards )
  2. Check the hosts file in C:\Windows\System32\drivers\etc

Alternatively, try connecting to the standard XAMPP page located at the local website roots localhost / 127.0.0.1.

If you have changed the port numbers of Apache when configuring XAMPP,

you have to run the localhost as,

http://localhost:PORT_NUMBER

ex: 89 is the port number.So it can be written as localhost:89

You can find the allocated port number from XAMPP control panel.XAMPP Control Panel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!