how to run polymer web app on localhost (xampp) - html

I'm trying to run polymer on a local machine with XAMPP but, it seems like it can't run it,
It shows nothing ,but when I inspect console on the page in browser , it's giving this error :
Failed to load resource: net::ERR_FILE_NOT_FOUND
file:///C:/Users/Home/Desktop/polymer/iron-component-page/iron-component-page.html
I'm using XAMMP on windows (Apache port : 80)

Move your project into the XAMMP htdocs folder and you will able to use it from the http://localhost/myproject address. The file:// protocol is not for the web.
If you polyserve it then the url should be: http://localhost:8080/ or any port what you defined with -p.

Related

"localhost refused to connect" vscode html

<!DOCTYPE html>
<html>
<head></head>
<body>
<button>Hello</button>
</body>
</html>
Running this code from VSCode on my M1 Air yields either this:
..or a completely blank page.
What am I doing wrong? Was working, but then I accidentally clicked "run" on a .css file instead of my .html file, and it broke.
You can just open your .html file by double-clicking on it from your file browser.
Or if you want to serve it locally, you can use an extension like Live server. And then from your Editor, you can click on "Go Live"
Then this would show that your local server is running on a port like here it's 5500
Then the extension should open a new tab in your browser to http://127.0.0.1:5500/FILENAME.html.
If you don't want to use this VS Code extension, you can try other alternatives like browsersync.
localhost refused to connect.
is an error message that typically appears when there is a problem with the connection between Visual Studio Code (VSCode) and the localhost server. This can happen for a number of reasons, but some common causes include:
The localhost server is not running or is not configured properly.
There is a problem with the network connection, such as a firewall blocking the connection.
There is an issue with the code or configuration of the HTML file in VSCode.
To troubleshoot this issue, you can try the following steps:
Check that the localhost server is running and configured correctly.
Check your network connection and ensure that any firewalls or antivirus software are not blocking the connection.
Check your HTML code and configuration in VSCode to ensure that there are no syntax errors or other issues that might be causing the problem.
Make sure that the chrome browser is in the updated version.
Check the port number if it is configured correctly in your code, if not change it to the correct port number.
Open your .html file by double-clicking on it from your file browser or right click context menu and then open with option, choose a browser option.
Use Live Server VS Code Extension or BrowserSync Extenstion.
If the problem persists, you can also try running the HTML file in a different browser or using a different localhost server to see if that resolves the issue.

My localhost refused to connect with vs code

crbug/1173575, non-JS module files deprecated.
This error I am facing whenever I try to run my HTML file in vs code to see it's output.
And also My chrome is not connected, it shows that localhost refuse to connect.

Trying to Connect to MySQL local host server but browser does not load and asks me to download a file

Total noob here apologizes in advance.
When I test my localhost connection in my SQL it says its good and server status is green. However, when I go to the URL at the top and attempt to navigate to localhost:3306, instead of the page displaying "This webpage is not available" as I expect, it does not navigate to the page and instead gives me a pop up asking me to download "download.file" a 1KB file which I can't open.
I'm trying to learn Rails
Please advise.
Try to run Apache server. For example install XAMPP.

VisualSVN messed up my localhost in Chrome

EDIT:
The localhost seem to be working fine in my firefox, IE and even Chrome's incognito mode. These is a problem specific to chrome. Any ideas?
PREVIOUS:
I just uninstalled VisualSVN Server from my Windows 7. But now when I try to hit localhost, I get redirected to localhost/svn. I am using WAMP and developing something that requires the root access. I can not put the project in a sub directory. I have also tried netstat -ao but no process is using ports 80 or 443.
You may have solved the problem....but for future, those who came here like me looking for a solution to this, this seems to be a prob for browser cache....clearing browser cache history solves the problem.....did for me...
If you uninstalled VisualSVN Server, then it's some other application which runs on 80 / 443 port that redirects you to /svn. Some steps that may help you to determine the root cause:
Verify that VisualSVN Server has been successfully uninstalled.
Start appwiz.cpl and see whether VisualSVN Server is listed as the installed application,
Start services.msc and see whether "VisualSVN Server" service is listed.
Run netstat -anbv and see which app runs on HTTP(S) port.

apache web server doesnt read html in htdocs

I'm using linux mint and I'm install Apache web server. When I'm testing him in web browser I can see
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
But if I'm trying to added one more html docs in the htdocs directory. I;m restart the server, but I have an 404 error:
Not Found
The requested URL /test.html was not found on this server.
Apache/2.2.22 (Ubuntu) Server at localhost Port 80
Now I'm open index.html which located in htdocs just after installation the server. It contains the following:
<html><body><h1>It works!</h1></body></html>
Now I'm trying to change it, but there is no effect when I'm trying to view it in browser http://localhost/index.html.
Question: What is a possible reason of this trouble?
DocumentRoot for apache2 on Linux Mint is /var/www/.
To change the default message, edit /var/www/index.html.
Put new files in /var/www/
You don't need to restart apache after updating or adding files, changes are seen immediately.