Apache doesn't start on any port - apache

I just installed apache 2.2 and it was working just fine after I restarted that this error appears when I'm trying to start that:
The requested operation has failed!
first I thought It's about the default 80 port that apache is using so I turned off IIL from windows features but that didn't help
so I change the port from Apache httpd.conf
but still this error prevents me from starting the server.
does anyone know how can I fix this?
any help will be much appreciated.

I just installed apache 2.2.9 instead of 2.2.11 and it's working fine

Related

XAMPP - Apache is stuck on Attempting to start Apache service

I have a windows 7 home premium operating system. I have recently install xampp onto my computer with apache and mysql. I opened xampp as administrator. I attempted to start apache the following message occurs: Attempting to start Apache service . I checked my ports and port 80 is not being used. Skype is not running. I checked my event viewer to see my system logs and I found this: under general: The Apache service named reported the following error:
httpd.exe: Syntax error on line 81 of C:/Apache/Apache/conf/httpd.conf: Cannot load modules/mod_authn_core.so into server: The specified module could not be found. .
I know where the httpd config file exists, however I am sure what to edit to figure this problem out. I am a bit of an amateur developer, though I understand most the concepts and components. Any help in this matter would be appreciated.
Thanks.

XAMPP Apache Start Error

enter image description here
This is the problem that I currently have. I tried some options like running it as administrator, changing the port on http.conf & httpd-ssl.conf but it doesn't work. I hope you can help...
check if your apache is not already running,
run apachectl configtest (or change apachectl to your apache runtime),
check if default config is working,
check if config with modified dirs is working,
check your apache server logs (Im sure you'll find clue in there)
btw. from the error message it looks like something (tomcat server) is already running on 8080 port so you'll either need to change port of tomcat or change the port on which apache is trying to start (/etc/httpd/httpd.conf + virtuals dir or /etc/apache2/*.conf) - it looks like it wants to start on 8080 which is quite default port for web server (apart of 80 which is added by default so when you're writing something.com your browser is really going to something.com:80 - just you dont see it)

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 httpd is not restarting in centos

I install Zend server CE 5.6. With that Apache is installed automatically. Now I want to restart Apache server then it is showing error
click here for image to see exact error
any help
why i cannot restart apache httpd service.....?
Well you got some syntax error in httpd.conf and zedserver_php.conf.
For libphp5.so, check if the user apache can access to usr/local/zend/lib/apache2/libphp5.so.
First look, I think you have some error in httpd.conf and zedserver_php.conf and that apache can't access to httpd.conf and zedserver_php.conf.

Unable to connect to localhost Apache Ubuntu

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.