Error starting Apache

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Error starting Apache

Postby danielsock » 03. March 2016 13:02

So my server restarted beacause one of my devs forgot to remove one line of code from a program update and now when i start apache this error pops up in the logs
PHP Notice: Undefined index: HTTP_HOST in C:\\xampp\\htdocs\\index.php on line 7

Code: Select all
   if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
      $uri = 'https://';
   } else {
      $uri = 'http://';
   $uri .= $_SERVER['HTTP_HOST'];

This is line 1-7
I have made sure the port is on which is 80 is open could someone please help me

I have restarted my server in attempt to see if that would fix the problem it has not i have gotten a new error in the status window
Problem detected!
6:19:21 AM [Apache] Port 80 in use by "Unable to open process" with PID 4!
6:19:21 AM [Apache] Apache WILL NOT start without the configured ports free!
6:19:21 AM [Apache] You need to uninstall/disable/reconfigure the blocking application
6:19:21 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
Posts: 1
Joined: 03. March 2016 12:52
Operating System: Windows server 2008 RT

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 66 guests