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.
Related
I changed my port to 8080 so whenever user visit to website they need to include port is it possible to set to default same like using port 80. Instead of localhost:8080 should be localhost only. I need to change because my apache randomly crashing
Most web browsers will request through port 80. If you want to change that, it would have to be client wise. So, no, you can't set a default port.
The most you can do is set up the configuration to redirect traffic to the desired port. Check out on how to do it here.
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'm trying to open my Wamp server by entering this URL into my web browser:
http://localhost/
The browser returns a 400 error, stating that the webpage is not available.
Earlier, my Wamp server had stopped working (it was not turning green in the control panel) after I had installed tomcat. I found out that there was a conflict between ports with the two services, so I changed the port used by Wamp server from 80 to 8085 (8085 port is being used my tomcat).
To change the port, I the following change to the httpd.conf file:
Listen 80 //changed to 8085
ServerName localhost:8080 //changed to 8085
After that, the Wamp server turned green in the control panel and appeared to be working, but accessing the URL http://localhost/ still returned the 400 error.
What is happening?
It is important to understand the difference between normal ports, web browsers, and non-standard ports. The "web" runs on port 80 by default, and 443 for secured connections. But this isn't all that a URL can do.
Per RFC 1738, the URL can be formatted as such:
protocol://username:password#host.tld:port
Most browsers assume you mean to access the server anonymously, via port 80, and using the HTTP protocol.
In this case, you changed the default port that Apache would listen on to 8085. This means that you must specify the port as 8085 for the server to respond to the request.
The URL should be:
http://localhost:8085
The httpd.conf file into the folder you listen port Apache Find veto the change now
Listen 12.34.56.78:80
Listen any number
for sample
Listen 68
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.
When I run XAMPP Control Panel v3.2.1 I get this error:
07:37:24 [Apache] Problem detected!
07:37:24 [Apache] Port 443 in use by ""C:\Program Files (x86)\VMware\VMware Workstation\vmware-hostd.exe" -u "C:\ProgramData\VMware\hostd\config.xml"" with PID 2148!
07:37:24 [Apache] Apache WILL NOT start without the configured ports free!
07:37:24 [Apache] You need to uninstall/disable/reconfigure the blocking application
07:37:24 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
I could not fix it myself. Getting help soon will be thankful.
It's easier to change the port in VMware Workstation:
Edit > Preferences;
Shared VMs tab;
Disable;
Change port;
Enable.
Done.
Here is the solution step-by-step:
Open up httpd-ssl.conf in path2xampp\apache\conf\extra
Look for the line Listen 443
Change port number to anything you want. I use 4430. ex. Listen 4430.
Replace every 443 string in that file with 4430.
Save the file.
and, Finally restart your apache.
done.
Run vmware as administrator in windows or as root in linux. Then ctrl+P to open preferences. then on shared vms. You can see a port number 443 by default. This is conflicting with apache that is why it is not starting. Change it to some other value say 8443. Then try to start apache it will run.
Just go to vmvare edit->preferences->shared vms. Click on change settings and disable sharing.click on OK.xampp will work fine.
Connecting to shared virtual machines
Connection to VMware Workstation Server (the shared virtual machines) is administered by the VMware Host Agent service. The service uses TCP ports 80 and 443. This service is also used by other VMware products, including VMware Server and vSphere, and provides additional capabilities.
Configuring shared virtual machines
With the Shared VMs Workstation preferences, you can disable/enable the server, assign a different port for connecting, and change the Shared VMs directory.
To access the Shared VMs Workstation preferences:
Go to Edit > Preferences.
Click the Shared VMs tab.
Open VMware Workstation > Edit > Prefrences > Shared VMS > Change port 433 > 4330 > save.
Follow the process Showed in the Following video :
https://youtu.be/DYj7qIgwV2M
Here is the solution:
You use Ctrl+Alt+Delete, open task manager and switch to tab services find VMWareHostd and right click to chose StopService. You can start xampp without error
On Xampp edit apache config
Click Apache 'config'
Select 'httpd-ssl.conf'
Look for 'Listen 443',
change it to 'Listen 4430'
Say you let vmware use port 443, and use another ssl port in XAMPP Apache (httpd-ssl.conf) :
The red error will keep popping in XAMPP Control Panel.
You also need to change the port in the XAMPP Control Panel configuration :
In XAMPP Control Panel, click the "Config" button (top-left).
Then click "Service and Port Settings". There you can set the ports to match the ports used by Apache.
If there is no Shared VMs tab, you can edit the config manually.
Go to C:\ProgramData\VMware\hostd, and open proxy.xml with a text editor.
At the top, there should be <httpsPort>443</httpsPort>. Change it to -1.
Kill the process using Powershell:
Stop-Process -Id <PROCESS_ID>
Use the process ID provided in XAMPP's Control Panel's log.
You should be able to start Apache now.
Run XAMPP Control Panel as Administrator if using Windows 7 or more. Windows may block access to ports if not accessed by adminstrator user.