Whenever I'm trying to start my Apache
server from XAMPP
on my Macbook
(MacOS-Sierra) . I'm getting following application log :
Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started
And status remains Stopped
. I re-install XAMPP
and restarted my laptop multiple times, but I'm still having same issue. Couldn't find anything help to resolve this issue.
This is because in Mac OS X there is already Apache pre-installed. So what you can do is to change the listening port of one of the Apaches, either the Apache that you installed with XAMPP or the pre-installed one. To change the listening port for XAMPP's Apache, go to /Applications/XAMPP/xamppfiles/etc and edit httpd.
The most common cause for the XAMPP Apache server not starting issue is because the default port no 80 may already be in use by another program like Skype, Teamviewer etc.
To start XAMPP simply open XAMPP Control and start Apache, MySQL and ProFTPD. The name of the XAMPP Control is "manager-osx".
Run XAMPP (=> Apache) under an another port: Rename all ports with 80 to 8080 in your httpd. conf file. Your using Windows: Use notpad or editor with Ctrl+H to replace "80".
So let me explain how to fix apache not starting on XAMPP? Usually, it’s because the World Wide Publishing Service is running on port 80 on your computer, which also happens to be the default TCP/IP port that Apaches uses on XAMPP, and two applications can’t use an equivalent networking port.
How to install XAMPP on Mac: 1 Download the correct version of XAMPP 2 Run the installer with the default options 3 Launch XAMPP 4 Start the services More ...
To have launchd start XAMPP’s Apache server as a service we need to create a launchd configuration file. This configuration file has a .plist extension, a format familiar to many Mac OS X users. launchd configuration files can be placed in one of three folders determining when and for whom the service will start.
if you have an application that depends on World Wide Web Services and you can remove the WWWS service then you need to change TCP/IP Port. So Apache will run on different Ports. Step1: Open XAMPP Control Panel click the Config button. Step2: Select the Apache (httpd.conf) option and Scroll down and find the line: Listen 80.
Another related issue, which I faced caused Apache sever failure. And failure logs is :
[Sun Jul 30 12:43:58.747822 2017] [unique_id:alert] [pid 9188] (EAI 8)nodename nor servname provided, or not known: AH01564:
unable to find IPv4 address of "MacBook-Pro.local" AH00016: Configuration Failed
To solve this :
Executed following command
sudo -e /etc/hosts
Then, changed following entries
127.0.0.1 localhost
::1 localhost
to
127.0.0.1 localhost MacBook-Pro.local
::1 localhost MacBook-Pro.local
I had the same Problem and fixed it by deleting
the lib folder
in Applications/XAMPP/xamppfiles/
and installing XAMPP again
. It's probably due to old lib files from previous versions not being updated properly.
Simply goto your terminal and type:
sudo apachectl stop
It'll ask for password. Enter your system password.
Go back to XAMPP control panel and start Apache. It should get started now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With