WAMP Server :Project not running on localhost - php

I have installed WampServer Version 2.4.9 on windows 7
Created a folder in wamp/www/myproject/index.php ,I am using user account(not admin account).The index.php conatins HTML code only,I tried with index.html too,but nothing worked.
The problem:
When I run localhost or phpmy admin by typing localhost in browser URL space then it shows the main window and then i click on project and get these messages:
This webpage is not available
when I click on more button in browser
The server at myproject can't be found, because the DNS lookup failed. DNS is the network service that translates a website's name to
its Internet address. This error is most often caused by having no
connection to the Internet or a misconfigured network. It can also be
caused by an unresponsive DNS server or a firewall preventing Google
Chrome from accessing the network.
I tried running from admin account too but that also did not worked.I tried running the application with off state of firewall too but that also did not work
EDIT:
I uninstalled xxamp ,I have apache tomcat too in my system that is used with JSP ,it takes 8080 port.but it is not running currently.The default port for wamp is 80,I tried running it on 81,8080,but both the thing didn't work.Skype also take port 80 so I exited from skype too...
when i type localhost/myproject,It worked.
but when I type localhost and then main page of wamp comes...and when click on localhost then the dns lookup failure occur that is written initially

check whether port 80 is free. You can check it in your apache conf file.

Related

Can't run PHP website with Laragon because of "This site can’t provide a secure connection localhost sent an invalid response." error

When I try to run a PHP website with Laragon I get This site can’t provide a secure connection localhost sent an invalid response. Try running Windows Network Diagnostics. ERR_SSL_PROTOCOL_ERROR
I already changed the hostname template within Laragon to {name}.local and {name}.mc but didn't worked.
What should I do? (Other PHP built websites are still working)
I right clicked on Apache in Laragon, turned SSL on and now it works.

Xampp Apache not able to access port 80 even though it's not in use

These are the error message I get while trying to run Apache from Xampp control panel. I am using Windows 8 and XAMPP Version: 1.8.2
Error Message :
The Apache service named reported the following error:
(OS 10013) An attempt was made to access a socket in a way forbidden by its access permissions. : AH00073: make_sock: unable to listen for connections on address 0.0.0.0:80
I have already tried these solutions but no use :
Changed the port no to 8080 in httpd.conf and httpd_ssl.conf
In cmd checked netstat -a -n-o | find "80" but port 80 is not in use.
In httpd.conf the DocumentRoot and <Directory> entries are pointing to existing folders.
Skype , IIS is disabled.
Firewall has valid inbound rule to allow access .
Uninstalled and reinstalled the Xampp .
Control Panel error:
Windows event view error:
I know this is an old thread. I don't have enough reps to upvote. :( But after 2 hours of troubleshooting, changing the http.conf and httpd-ssl.conf files for the listener and port references to 8080, and still getting this error, but #afkari got it. Running XAMPP as administrator resolved my issue (Windows 10).
. . . made to access a socket in a way forbidden by its access permissions . . .
Do you run xampp with administrator access in windows 8.* ?
Xampp on windows 8 need administrator access to work correctly.
Follow there steps :
Locate the program icon or a shortcut in Windows Explorer.
Right-click the program icon or shortcut, and then click Run as administrator.
When the UAC message is displayed, do one of the following:
If you are logged on as a standard user, or if UAC is configured to always require credentials, enter the appropriate administrative credentials, and then click OK.
If you are logged on as an administrator and UAC is not configured to always require credentials, click Yes to start the application.
OR
You can use this link on microsoft website :
run an application once with a full administrator access

External XAMPP Access With Modem

I'm trying to create a live web server on my Windows 8.1 computer.
I am connected directly to my modem using ethernet (I do have a wireless router) but I am not connected to it on this computer (desktop).
I have XAMPP working and my website appears at http://localhost/home
However, if I put in my IP from www.whatismyip.com it does not load my web server.
What am I missing?
You need to create a Port Forwarding for Port 80 to your Computers local IP Address. There should be a Admin Panel for your Router (normally the Gateway - check out with Start - Run - cmd -> then insert "ipconfig" and check out the Gateway.
And i guess in XAMPP the Internet Access is blocked. But this is a simple Apache Server, so you need to open your httpd.conf File (Should be: “c:\xampp\apache\conf\extra\httpd-xampp.conf)
Search here for:
There should be a "Deny from all" - add a # in Front to deactivate that rule.
Restart your Xampp and it should work.
Here you find more Information about Port-Forwarding:
https://managewp.com/how-to-access-a-local-website-from-internet-with-port-forwarding
Any maybe you will also need to activate Port 80 on your Firewall (depends on your Configuration)
You need a method of telling request sent to your public ip to be forwarded to the private ip of the web server. Try logging into you device (router etc) and setting this up.

jQuery ajaxy, history app not loading on localhost

I would like to use ajax plugin for loading content with hash change.
LINK to plugin webpage http://balupton.github.io/jquery-ajaxy/demo/
It is working on external server
LINK http://revelier.home.pl/SzymonDz/demo/
But on local how when I use xampp 3.1.0.3.1.0
Im connecting by port 8080
Normally there is no error on my server
but locally it load only active state
and ERROR
GET http://localhost/history/demopages/bananas.html
Like it would lost one "/" between demo and pages -> demo/pages
Can some1 help me with this problem?
Any help would be appreciate:)
Solved, had to made localhost without 8080, found out which program took my 80 (thats why i had 8080). Skype , settings, advanced, ports and uncheck "use port 80 and 443". Now script work.

Weird PHP not displaying over local ip address

I have the following setup below:
Amazon EC2 instance.
IPs:
192.168.1.200 = eth0 = x.x.x.x public ip address
192.168.2.200 = eth1
Apps:
Apache
vhosts:
-domain.tld
PHP
The strange part is this. When I try to browse domain.tld over public ip address, its working fine. But when I browse it through 192.168.2.200, it will keep waiting until no display coming out in the browser. A simple index.php with a text "test" inside is working fine. Only when the php codes like phpinfo() will not be working.
Do you have any idea what could be the problem in php or apache or my network? I have already open all ports on the firewall but the problem still persist.
Thanks.
I found the issue - it's due to incorrect network routing table on the EC2 server including blocking of traffic that rectified through playing security settings.
Thanks to your comment #Dagon.

Categories