Unable to connect to localhost Apache Ubuntu - apache

I run xampp (apache) on Ubuntu 12.04. I've got localhost declared as ServerName localhost in httpd.conf. So far, I've not experienced problems with this but now, the browser Firefox is unable to connect to localhost. What could the problem be? Thanks.

OK. Found the answer and responding to myself in case it could be of interest to others; Actually, Apache server was not running. When I started xampp, it said Apache is already running but in fact wasn't due to the fact that the file logs/http.pid was corrupt. I deleted this file and then restarted xampp. This time it did launch the apache server and everything is fine.

Related

AMPPS for Mac, local vhosts now no longer working

AMPPS 3.9 64-bit for Mac is working fine on MacOS 10.15.2.
I created some .local vhosts in /Applications/Ampps/Apache/conf/extra/httpd-vhosts.conf, and added the domains to /etc/hosts.
All was running well, I had about 5 different .local vhosts up and running fine.
On 1 .local website, after running WP Migrate DB Pro pulling a remote db down into the local site, every .local vhost has failed to load, producing ERR_CONNECTION_TIMED_OUT.
Restarting Apache has not resolved the issue.
I've double checked /etc/hosts/ & httpd-vhosts.conf and they both look fine.
I've tried Restore Config in the AMPPS control panel with no success. Rebooted with no success.
http://localhost/phpmyadmin opens fine.
Help and troubleshooting advice appreciated.
I found the local IP address had changed somehow, after running WP Migrate DB Pro.
Updating the hosts file with the new IP address has fixed the problem.

Apache running on XAMPP, but localhost is not reachable

I installed XAMPP and started the Apache Server and MySQL. However, if I try to access https://localhost/, it just shows a blank page in Firefox. I am on a Windows 10 machine. I already tried to change the localhost port from 80 to 8080, but it says that it cannot open the page this way.
Any ideas what the reason could be?

XAMPP 1.7.7 - Apache won't start (ports already changed)

I installed XAMPP 1.7.7 for testing on the old php version. Current XAMPP is running fine. I changed the ports in httpd.conf from 80 to 8081, and in httpd-ssl.conf from 443 to 4434.
Still, when trying to start apache, I get the error
"error: apache was stopped unexpected. This might be caused by a blocked port, missing dependencies,..."
I also changed these ports again (they were not used in both cases).
I run XAMPP as an administrator and I disabled my firewall without any results... What are other possible options? (Error-)Logs are empty.
maybe the following information might help:
I am using windows 10, xampp 1.7.7 portable, and although I changed the ports, when I run XAMPP, it tells me the following:
Problem detected!
Port 80 in use by "Unable to open process" (PID 4)!
Apache will NOT start without the configured ports free!
Try to do this:
Run -> CMD, type services.msc and stop the program:
Web Deployment Agent Service
Afterwards try restarting XAMPP and say if it works or not!
I fixed it via reinstalling into another directory.

Apache is not running from XAMPP

I have IIS and skype like things on my system. So, i changed my port from 80 to 8081 and PID from 443 to 4433 or any other. And it was working after installation well and good. But then i restarted my system again. Apache didn't run and i tried to stop the ports and also changes my PORT and PID but it's still not working. Can anyone help me on this situation and i don't under all this now.
these are the I have done this too
I have installed xampp. but apache is not starting showing is program can't start because api-ms-win-crt-runtime-I1-1-0. dil is missing from your computer. Try reinstalling the program to fix this program

XAMPP Access Forbidden [ubuntu]

Yesterday I was able to completely normally use PHP and phpmyadmin with XAMPP and make apps. The only thing changed is that I restarted the computer. Now I start lampp like always
sudo /opt/lampp/lampp start
and I get
XAMPP: Starting Apache...fail.
XAMPP: Another web server is already running.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
Maybe the apache is the problem I don't know. But when I open localhost in browser, I get
Forbidden
You don't have permission to access / on this server.
Apache/2.4.7 (Ubuntu) Server at localhost Port 80
I added 'Require all granted' to that httpd.conf file, and it didn't help, so something else must be going on. I tried a lot of other threads on forums, nothing helped.
Ideas?
Thanks
It could be possibly because another instance of Apache is running on your system. Just try to close all intances via sudo killall -9 apache2 and then try to start/restart the LAMPP.
Most linux OS ships Apache as default server, so if you even haven't installed them, they might be running in your system.