Cannot restart Apache on XAMPP on MAC - macos

I recently fixed a problem on my VirtualHosts on xampp, and I must restart Apache. I noticed when I stopped it through my control panel, localhost was still loading. I attempted to start it again through the control panel, and get this error:
XAMPP's Apache can not start while another webserver is using port 80. Please turn it off and try again.
So, I tried to stop any other Apache processes that could have been running using
sudo apachectl stop
through Terminal; it returned this error:
launchctl: Error unloading: org.apache.httpd
I also used
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
which returned the same error.
which I'm pretty sure is supposed to mean that Apache is already stopped. I decided to quit XAMPP and reopen it, with Apache turned off (red dot next to it). When I reopened it, Apache was already back on automatically (green dot next to it), basically it turned itself on. How can I fix this? Thank you.

Ok, so I'm only a designer with occasional dev skills, but I do know how to fix the port issue.
In your apache config file (xamppfiles/etc/httpd.conf) change the port...
Here is the text to look for...
Listen 12.34.56.78:80
Listen 80
change the 80 in both listen strings to something else 91 is much less popular than 80 for system services and other apps wanting to do something through a port (of some sort)(ha ha)

Related

PgAdmin runs in desktop mode and I want to change it to server mode

I installed PgAdmin 5.5 version on my Windows 10 computer. Before PgAdmin was opening in default browser and there was an icon in the system tray. Now it runs as a native desktop app. I want to run it as before. Is it changed recently? Did i miss something?
Thank you.
A bit late to the party, but I had the same question (but for v6.x) and can't find much info about it either.
According to this thread in the pgAdmin_support mailing list the option to run just the server seems to be removed which is just flabbergasting.
https://www.postgresql.org/message-id/flat/CA%2BOCxoxF_hw%2BDjB8Cvv1kCP_FOjxrtFD-_cMduaMSGAZwqv6RA%40mail.gmail.com#d678896b1966fa054a500ad1ab29b63f
The way to go probably is to use the Docker although I wonder how much overhead that will bring. That said, you can kind-of work around the lack of default web server by
adapting C:\Program Files\pgAdmin 4\v6\web\config.py so the built-in webserver listens on all network addresses and you can access it from the LAN like this:
DEFAULT_SERVER = '0.0.0.0'
when starting up pgAdmin in the 'application', in the menu go to File \ Runtime \ View log and scroll all the way down, it will have a line that reads something like Application Server URL: http://127.0.0.1:5555/?key=ad836827-6a30-483b-973a-bb2f11a0267e
replacing '127.0.0.1' with the name of your server should allow you to use that url to connect from any machine on your LAN to the pgAdmin service.
Note, you can minimize the pgAdmin 'application' but don't close it because doing so will also close the web-server.

Intellij stops process but port is still used

MacOS 10.15.5
Intellij 2020.2
I have a java application which starts HTTP server on port 4232. I stopped the application (sometimes it hangs and I need to use force (red skull icon) button). Then I launch the app one more time and I get that cannot start port is already used.
Fine, so I try to find that process and kill it.
I use lsof to find pid which uses that port - but nothing.
It is not intellij issue, because I can telnet to localhost 4232, so something uses that port.
Could you tell me how can I debug it? I know that reboot is a solution but it is not a preferred solution.
I found many posts with similar questions but nothing helps - I just cannot find what uses this port.

Getting started with xampp

so I've just downloaded xampp on my laptop (Windows 10). When trying to start it there seems to be a few problems which I'm not too sure how to fix being unfamiliar with xampp. Please let me know what I need to do, thanks.
Note: See pic attachedXAMPP
I had a similar problem and I solved it by changing the port that Skype was using, it happened to be the same as XAMPP was trying to use.
You can see the discussion with the solution that helped me in the link below
Open Skype.
Tools -> Options -> Advanced -> Connection.
Disable the "Use port 80 and 443 for alternatives for incoming connections"
Sign Out and Close all Skype windows. Try restarting your Apache.
XAMPP MySQL password setting (Can not enter in PHPMYADMIN)

Installing and Re-installing XAMPP

I have recently installed XAMPP on my computer it was working fine but my friend accidentally deleted the XAMPP folder.So when I reinstallled it isn't working,ports for Apache and MySql are showing that they are busy.
What should I do ?
If you are running Skype, then you can easily change its ports. Go to Tools -> Advanced -> Connections and uncheck the Use Port 80 and 443 option and close Skype. Now again try to start Apache. You should be able to do it.
Have a look there "How to get open ports" it explains how to see what ports are open and which programs opened them.
Start running mysqld.exe file which will be seen in the bin folder inside your MySQL installation.

xampp not working on windows 7 - Windows 7 Forums

My xampp installation 1.7.4 in windows 7 does not seem to work. http://localhost returns not found error.
Xampp Control panel shows both mysql & apache service running fine.
Frustrated since past 2 weeks to find a solution to this. Any pointers and support will be appreciated!
Do you have Skype or something similar running on your computer? Skype uses the default http and https ports 80 and 443 unless you explicitly change that in its settings.
As I saw this is common "problem" for Windows 7 and Vista - in some cases these systems doesn't know 'localhost'. Try use http://127.0.0.1 or add one line to file C:\Windows\System32\drivers\etc\hosts
This line is:
127.0.0.1 localhost
Did you check firewall ? Or if you have broken windows firewall (which is sometimes it's not available to stop or even open firewall in windows 7), it may be the reason.
by default this link should work: ServerName http://localhost:80
at least it's in the http.conf this way. Check out if you have it the right way set (or to another port like 8080)
Quit Skype, start xampp again, restart apache, run skype again. Now you can have both your apache server and Skype running fine :)
In win7, you have a IIS running on port number 80 which is also default port for Apache server
Follow the Steps
1. Open httpd.conf in the conf folder of apache folder
2. Find Line "Listen 80" and change it to any other port say 8800
3. see if the file exists httpd.conf.build, if yes change in that too
4. restart the server and you are done
Do check all the app that uses internet and see what all app you have
installed uses port 80, in case the above steps don't work.
Localhost uses the default port 80. If you have changed it to 8080 in httpd.conf. Then you can also check it by using http://localhost:8080
A long time ago I had a similar problem and I described it here on my blog (NOTE: working Skype can be a issue but I had not installed Skype then):
http://paweln66.wordpress.com/2013/08/11/why-xampp-and-wampserver-doesnt-works-under-windows-7/
There you can find:
Explanation of possible reason why it does not work: issue relates generally to Windows 7
Two approach to solution how you can enable XAMPP "quick" and more advanced that not disable another services
Please read this post then everything should be clear!
I hope it help you...
What if you use EasyPhp instead? i'm using it at work with windows 7, no problems, now xdebug works out of the box too

Resources