Troubleshoot Apache startup errors
Check the Apache error log file
Check the Apache error log file at installdir/apache2/logs/error_log (Linux and OS X) or installdir/apache2/logs/error.log (Windows) for information about why the error occurred.
Check if another process is listening to that port
If another process is using that address you’ll get:
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:port_number no listening sockets available, shutting down
To see which process is already using that port you can run the following from a command prompt:
$ sudo netstat -ltnp | grep :port_number (Linux and OS X) netstat -b -a -n (Windows)
In the last column you’ll see the process id or process name. You can then use:
$ ps aux | grep process_name (Linux and OS X)
Look for the pid in the second column and you’ll get more information about that process.
In case another process is using that port, use another port or stop that process.
Check if IIS is enabled and running (Windows)
In case you are using IIS on Windows, you may have some troubles if IIS is running. Check it first:
netstat -b -a -n
If this is the cause, you can stop it by opening an elevated command-line window. At the command prompt, type net stop WAS and press ENTER, then type Y and press ENTER to also stop W3SVC.
If you upgrade Windows, IIS may cause conflicts and you won’t see the services in the Bitnami Manager Tool. If you lost your services, recover them by opening an elevated command prompt, loading the environment by running “installdir/APP-VERSION/use_app.bat” and then installing the services with “installdir/APP-VERSION/serviceinstall.bat INSTALL”.
Check permissions and ownership
Check if you have permissions to bind Apache to the requested port. To bind Apache to privileged ports, start Apache as root. If you don’t have permissions to bind Apache to some port, you’ll see this error:
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:port_number no listening sockets available, shutting down
If Apache is unable to open the configuration or the log file, check that the owner of those files is the same user account that installed Apache and that it has write permissions on logs and read permissions on the configuration file. If this is not the case, you will see these errors:
(13)Permission denied: AH00649: could not open transfer log file installdir/apache2/logs/access_log. AH00015: Unable to open logs (13)Permission denied: AH00091: httpd: could not open error log file installdir/apache2/logs/error_log. AH00015: Unable to open logs httpd: Could not open configuration file installdir/apache2/conf/httpd.conf: Permission denied apache config test fails, aborting