why i have to give port number manually in the browser - php

I have changed the port already in wamp but when I run wamp I got
error 404-not found
All the time I have to give port number manually from 80 t0 81
"http://localhost/phpmyadmin/" to "http://localhost:81/phpmyadmin/"
How to solve this problem.
I did not install skype.
I have installed vs2010,SqlServer2012
I have done following things with wamp--
changed port from 80 to 81 in Apache=>httpd.conf file

Because the convention with http protocol is that if no port is added, it will be 80. If the port is 81, then without specifying the port, it will use 80 and your wamp won't be accessed. Try using the port at 80 and accessing it with http://localhost:80/phpmyadmin. You'll find that you can access it just the same as http://localhost/phpmyadmin.

i solved my problem by following
Open the wampmanager.tpl file. On my machine, it’s located here: C:\wamp\wampmanager.tpl
Do a search for “http://localhost/” and replace it with “http://localhost:81/” (There are four total).
Do a search for “${w_testPort80}” and replace it with “${w_testPort81}”.
Save and close the file.
now wamp automatically listening to port 81
thanks all

Related

How to remove port number from url using apache server?

I have installed Apache, PHP, Mysql in ubuntu system.
I have changed the port of apache server 80 to 802 in httpd.conf file.
I am accessing localhost from the below URL successfully.
http://localhost:802/
But the thing I want to access the localhost without using port number in the URL. Where I need to change for this.
Please suggest.
Where I need to change for this.
In httpd.conf where you set the port number to 802, set it back to 80.
HTTP operates on port 80 by default, and web browsers use that default by convention. Since you have changed that default, you need to specify the port in the address. Otherwise the web browser will attempt to connect to port 80 and won't find your server.

Why do I need to use 'localhost:8080' instead of just 'localhost' to connect to my server WAMP?

I am currently using WAMP server on my Windows XP SP2 system. I just want to know why do I need to use localhost:8080 instead of just localhost to connect to my server-WAMP? I'm not that interested in this :8080 stuff.
So if you guys know why this happens, or how to exclude :8080 from the address, just help me through. Thank you very much by the way. Have a nice day.
Notice: Please don't tell me to switch to XAMPP. I know it works well.
This happens because your server is listening on port 8080, and not on port 80 which is the default (so when you type localhost you mean localhost:80).
So, you need to change your configuration to make WAMP listening on port 80. You find here how to do this: How to change port number for apache in WAMP.

Port Redirect on Mac

What is the easiest option to redirect a request to a different host/port?
Here is my entire scenario:
I am making a request using php to a certain ip and port. The response includes another url location, but it is badly configured and instead of including ip and port, it simply includes a server name. Now, if I access the entire url location that I have as response with the server name replaced with the proper ip and port it works.
I've tried editing /etc/hosts setting the server name to the ip address, but how do I workaround the port too?
I am using mac osx 10.9.4, and I've tried some things with ipfw and pf, but neither really worked.
Thanks.
I had a similar problem quite recently on Mavericks (10.9). The way I solved it included 2 steps:
hosts file
Simply added a line similar to this:
127.0.0.1 www.someaddress.com
port forwarding
To set up port forwarding I used ipfw, which worked fine, e.g:
ipfw add 100 fwd 127.0.0.1,9001 tcp from any to any 80 in
In the example above port 9001 is forwarded to port 80. Even though ipfw is deprecated it still works.

apache and mysql ports

I am installing an open source software, which is `vtiger, and that use mysql and php
The first screen in installing that software asks for mysql and apache code,
the installation tools set these values as:
apache port 8888
and mysql port 33307
but when I open my xampp I see different ports like this:
Should I change the values of these ports to the values that I see in the image or not?
Thanks in advance
edit
this is what the installation tool suggest
so should I replace the 8888 with the 8082
and should I replace the 33307 with 3306 ?
Mysql's default port is 3306, and your XAMPP control panel shows that's the one in use, so you don't need to touch anything here.
As per apache webserver, the default http port is 80, which in this case you could access with
http://localhost
but you can use pretty much whatever you want as long as you append the port number to the url
http://localhost:8082
http://localhost:8082/anotherpage.html
Your Apache webserver is listening to both 4430 and 8082. I wonder if http://localhost:4430 would try to open as https, but I believe that is irrelevant at this point.
Long story short: if you aren't planning to use any other app on port 80, just set Apache to listen to port 80 to forget about appending port numbers on your urls.

Wamp stopped working after vmware installation.

I have wamp running fine with 2 virtual hosts. But after installation of vmaware wamp server not starting. Any idea about this problem? Or how can i figure what make wamp not starting, does it store its error log somewhere?
I am using widows 7.
Thanks
It is possible that WMWare uses the same port as WAMP. I remember Skype doing this resulting in APACHE being unable to start the servers on its port.
You can use this tutorial to try and change the vSphere port from it's 80 default:
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1021199
LE: There could be some other WMWare component that uses the 80 port. Try closing all WMWare components and start WAMP. If it works, then WMWare is using the 80 port.
Most probably the 2 fight over the same port (80). Also, Skype might cause WAMP to fail at starting and to display "304" errors for every GET request on the server.
Change WAMP's listening port from \wamp\bin\apache\apache2.2.8\conf. Locate httpd.conf, open it with a text editor and search for listening. Change to whatever port you consider.

Categories