Cannot load http://localhost/phptest:8080/ - windows

I decided to learn HTML so I installed apache on windows vista. Everything seems to work fine; when I go to http://localhost:8080 the sample webpage installed by apache shows. Apache is configured at port 8080.
So far so good. Since my DocumentRoot is c:\pub, I made another folder inside, e.g., c:\pub\test. What I'm trying to figure out is why the page at http://localhost/test:8080 cannot load? It has index.html and apache is working fine.

You are specifying port in the wrong location. The format is:
protocol://domain:port/path
So, try:
http://localhost:8080/test

The port goes right after the host: http://localhost:8080/test

try http://localhost:8080/test

Related

xampp not working on localhost(127.0.0.1) but works on(192.168.X.X)

Im running xampp-vm on macOS Catalina. Site loads fine on the provided ip by xampp (192.168.X.X/project_name) but it does not work on localhost (localhost/project_name). Is this normal or is there a way to fix this?
Please go to check 'Network' tab to edit the mapping like:
localhost:8080 -> 80
to
localhost:80 -> 80
Image from the FAQ of Xampp:
https://www.apachefriends.org/faq_stackman.html
Put your projects in different folder. Assign for each project a different domain.
Configure Apache with different hosts.
You can follow the following video about how to setup PHP environment using XAMPP. The last part contains vhosts configuration

HTTP Error 404 with xampp even though it's connected successfully

I've been having a lot of issues with xampp lately. I use it to run wordpress locally, for practice.
I made a new wordpress site last night and it worked fine but after restaring my laptop it stopped.
I changed httpd.conf to listen on 8080, by changing these:
Listen 12.34.56.78:8080
Listen 8080
ServerName localhost:8080
Apache and mySQL connected successfully:
Here is what I get in my browser:
Nothing has been changed with the site since last night, when it worked, or the htdocs folder.
I don't know what else to do :)
Thanks in advance
Try with localhost:8080/something

Xampp Is Messing Up?

First Apache wouldn't work with me so I had to change the port number which fixed everything so that is good, but then I went online and found this
"Start Apache and MySQL and go to localhost in your browser (on the same machine as your server). If this is your first time browsing the local site, you should now see a webpage with the XAMPP logo and a choice of languages. Click on your preferred language."
When I type in localhost:8080 (Apache port), it comes up this I have no clue how to make it so I'm taken to the XAMPP Logo where the languages are. -.- Help please.
Try this :
Just create a sample html page in htdocs of your apache folder and try to access it in browser.
If you name it is as index.html, you just have to write localhost in the browser or localhost/.html
This will make sure your server is working.
And in cmd prompt run mysql -u -p status to check the status of mysql that will check whether mysql is working or not.

ajax php example not working on local web server mac

I am trying to learn ajax on my mac apache server using the example code in http://www.w3schools.com/php/php_ajax_php.asp . But it is not working on my local server as desired( I am using CODA 2 in mac 10.8). I have no idea what is going wrong. Can someone help me with this.
It may be a port issue. I run MAMP (which I just switched to from WAMPP, and I love it). By default it runs Apache via port 8888 and MYSQL via port 8889. I had to switch this to ports 80 and 3306, respectively, to get everything working properly.
But if you can run any more basic php calls, I'd rule out this suggestion.

Typing http://localhost always redirects me to http://anonym.to

So I'm trying to install a local server to experiment on... Tried Wamp which gave this problem in the title (or so I thought).
Instead, I then tried installing Apache, and Xampp. Everything seems fine again. But when I type http://localhost into my browser (firefox, but for what it's worth the same thing happens with IE) it just redirects me to http://anonym.to/.
Anyone know why?
That's some kind of anonymizer site that acts as a proxy server to browse anonymously. You should probably check your /etc/hosts file to see if there is a redirect going on there for localhost or 127.0.0.1.
Either you have an entry in your Windows Hosts file %SystemRoot%\system32\drivers\etc\hosts (entry which you can delete by editing this file) or your browser has proxy settings set (which you can unset).

Resources