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.
Related
I'm new to XAMPP. I just installed XAMPP on Windows 10 and it said that port is blocked. So I changed the default port for apache from port 80 to port 8080, and now have to type HTTP://localhost:8080.
Is there a way I can change this URL to remove the port number from the URL. So it will still point to port 8080 even if I don't mention in the URL.
You have to run the application as administrator or, at least, using a user having admin privileges.
Ports below 1024 need higher privileges to be bound by a process.
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.
I have a typo3 folder in /var/www/my_folder, I want to run php server inside my_folder,
I run php -S localhost:8080 but I have problems later with URLs, I want get rid of :8000.
when I try php -S localhost I get
Invalid address: localhost
How can I manage this ?
You can run the PHP web server on on port 80, which is the default for HTTP, like this:
php -S localhost:80
Then you can visit http://localhost in your web browser.
However, it's common practice to use a different port for local development so that you don't have any conflicts between your dev environment and anything else which may be running on your machine. If you're sure you're not using port 80 anywhere else, feel free to use it.
What you can't do is omit the port number like you have in your second example.
Without explicite port usage, browsers use port 80 for HTTP and 443 for HTTPS. So if you want your URLs you use 'later' to not include the port, start the PHP interpreter with the one you need the URLs for.
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
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.