Apache not running in xampp despite of port changes - php

I have changed the port from 80 to 8080 in httpd.conf and 443 to 4433 or 4443 in ssl, but still nothing changes and Apache is not up running. and shows error:
I have checked the ports also, port 80 and 443 aren't in use by any other app but still I changed the port in case it works. Attaching the netstat SS below.
Any help would be appreciated, Thanks in advance.

I got my answer, Actually my php.ini file was missing. Some how the php folder was renamed to php7 and thats why Apache was not up for running. I renamed it again to php and things got well again.

Related

How to fix localhost refused to connect on Windows 10 Wamp server and Xampp?

I've installed WAMP Server on Windows 10 and it was working fine. But when I try to load localhost today it gives me refused to connect error. I've read some questions on Stack Overflow and tried their answers but no luck.
Re-installed wamp (also tried xampp. non of these work)
IIS is off
Web Development.. thing in services is not running.
Tried netstat -aon and port 80 PID is same as wampapache64 process.
changed listening port to 81 in httpd.conf in wamp => apache =>
Cleared browser cache
Wamp icon is green
Can't connect using 127.0.0.1
Nothing works.
Screenshots:
I will assume the wamp icon in the system tray is green. I think you should start tracing the root cause from the apache error/access log.
Try change the http port to 8080 and access localhost:8080. left click the wamp icon in the taskbar, go to apache > httpd.conf and edit this file: change "listen to port .. 80" to 8080.
Try the hosts file with only the initial records and test.
127.0.0.1 localhost
::1 localhost
If you are facing the error from the apache errors log file
(OS 10038)An operation was attempted on something that is not a socket. : AH00332: winnt_accept: getsockname error on listening socket, is IPv6 available?
then do the following:
* Run 'command prompt' as administrator and run the command netsh winsock reset . and restart the PC.
Skype default port is 80 and this might be having a conflict .. try to change it from Skype options.
Finally make sure the antivirus or any firewall you are having is not blocking your application requests.
firstly, uninstall wampp as well as xampp server from your PC. Also delete the wampp/xampp folders in C drive.
then install wampserver 2.0i from the link below-
wampserver 2.0i
after installation, start wamppserver and try to open localhost in chrome browser.
if localhost doesnt work, then try localhost:80
hope it helps!!

Why is my mysql service won't start using xampp?

I have tried to resolve, error on how to start mysql service on xampp.
I tried disabling the port on skype
What should I need to do to start MySQL using Xampp. Thanks in advance for the reply
This happens when you have something running on port 80, like skype. You can either stop the service running on that port or open httpd.conf (in your XAMPP directory) and change the port to something else, change the following line
Listen 80
to
Listen 8080
The correct answer was
To stop the apache2 service in XAMPP control panel.
by carton

I can't change xampp apache default port number

I changed the httpd.conf file lines:
Listen 80 TO Listen 8012
servername localhost TO servername localhost:8012
And still it trys to start apache at port 80, but can't because a system process is using it.
EDIT
No my question is still different because I already followed those steps listed in the possible duplicate question: How to change the port number of Apache in Xampp
you need to run xampp as an Administrator. it will fix it.

XAMPP Apache not running, path issue

I'm having a problem with my XAMPP Control Panel. The Apache won't run, I tried reinstalling it and allowed the Apache and its http.exe in my firewall. And I also tired editing the port Listen and its server localhost name in the Apache(httpd.conf) like what the other sites were suggesting. ( i don't have a Skype too) help.
skype might be the issue. Tools ->connection option-> uncheck "use port 80 ...." -> save and restart Skype and try
Ahh you have installed xamppp to C:\Program Files (x86), right? Have you reinstalled xampp to C:\xampp and tried?
Click on httpd.conf
and change Listen 80 to Listen 8181, now you can access it as http://localhost:8181 and here as well ServerName localhost:8181
OR
close your skpype and start it and then start using skype.
PS: You can use 80 from skype settings as well if you want to use 80 part with apache

How to know which port php5 is using I forgot the port number I used to install

I did not use PHP but had to install it for ganglia setup but could not access the php on calling localhost it shows IT Works .How do I know what is the port number .
The default port for HTTP is 80, so if in your browser you are using http://localhost and says "It works!" means it is working on port 80.
PHP is not a web server, you are probably using Apache. You can find its configuration files in /etc/apache2 folder. Look for apache2.conf, httpd.conf or ports.conf and find a line like "Listen (Port Number)"

Categories