Page 1 of 1

Apache and MySQL Failure to launch

PostPosted: 07. October 2016 17:54
by Santi87
I am trying to start both Apache and MySQL and this is what I keep getting. I already opened ports both 80 and 443 and I am still not able to run either one. Below is what is being shown in the field. Please help, I am starting class this Monday and need to have this up and running as soon as possible. Thank you for your time.

12:38:17 PM [Apache] Error: Apache shutdown unexpectedly.
12:38:17 PM [Apache] This may be due to a blocked port, missing dependencies,
12:38:17 PM [Apache] improper privileges, a crash, or a shutdown by another method.
12:38:17 PM [Apache] Press the Logs button to view error logs and check
12:38:17 PM [Apache] the Windows Event Viewer for more clues
12:38:17 PM [Apache] If you need more help, copy and post this
12:38:17 PM [Apache] entire log window on the forums
12:38:18 PM [mysql] Attempting to start MySQL app...
12:38:30 PM [mysql] Attempting to start MySQL app...
12:38:37 PM [Apache] Attempting to start Apache app...
12:38:37 PM [Apache] Status change detected: running
12:38:38 PM [Apache] Status change detected: stopped
12:38:38 PM [Apache] Error: Apache shutdown unexpectedly.
12:38:38 PM [Apache] This may be due to a blocked port, missing dependencies,
12:38:38 PM [Apache] improper privileges, a crash, or a shutdown by another method.
12:38:38 PM [Apache] Press the Logs button to view error logs and check
12:38:38 PM [Apache] the Windows Event Viewer for more clues
12:38:38 PM [Apache] If you need more help, copy and post this
12:38:38 PM [Apache] entire log window on the forums
12:38:47 PM [mysql] Attempting to start MySQL app...
12:38:47 PM [mysql] Status change detected: running
12:38:47 PM [mysql] Status change detected: stopped
12:38:47 PM [mysql] Error: MySQL shutdown unexpectedly.
12:38:47 PM [mysql] This may be due to a blocked port, missing dependencies,
12:38:47 PM [mysql] improper privileges, a crash, or a shutdown by another method.
12:38:47 PM [mysql] Press the Logs button to view error logs and check
12:38:47 PM [mysql] the Windows Event Viewer for more clues
12:38:47 PM [mysql] If you need more help, copy and post this
12:38:47 PM [mysql] entire log window on the forums

Re: Apache and MySQL Failure to launch

PostPosted: 09. October 2016 16:42
by Santi87
I ran the administrator rights and I am still having problems getting Apache and MySQL running. I was following install directions from https://premium.wpmudev.org/blog/setting-up-xampp/?rad=b&utm_expid=3606929-86.PHoDXYJeQYmWFQIujGOFZg.1&utm_referrer=https%3A%2F%2Fwww.google.com%2F and followed how to open ports 80 and 443. All was working fine until trying to run Apache and MySQL. So even after running the administrator rights, I am still getting this:
11:27:50 AM [Apache] Attempting to start Apache app...
11:27:50 AM [Apache] Status change detected: running
11:27:51 AM [Apache] Status change detected: stopped
11:27:51 AM [Apache] Error: Apache shutdown unexpectedly.
11:27:51 AM [Apache] This may be due to a blocked port, missing dependencies,
11:27:51 AM [Apache] improper privileges, a crash, or a shutdown by another method.
11:27:51 AM [Apache] Press the Logs button to view error logs and check
11:27:51 AM [Apache] the Windows Event Viewer for more clues
11:27:51 AM [Apache] If you need more help, copy and post this
11:27:51 AM [Apache] entire log window on the forums
11:27:52 AM [mysql] Attempting to start MySQL app...
11:27:52 AM [mysql] Status change detected: running
11:27:53 AM [mysql] Status change detected: stopped
11:27:53 AM [mysql] Error: MySQL shutdown unexpectedly.
11:27:53 AM [mysql] This may be due to a blocked port, missing dependencies,
11:27:53 AM [mysql] improper privileges, a crash, or a shutdown by another method.
11:27:53 AM [mysql] Press the Logs button to view error logs and check
11:27:53 AM [mysql] the Windows Event Viewer for more clues
11:27:53 AM [mysql] If you need more help, copy and post this
11:27:53 AM [mysql] entire log window on the forums

When I clicked into the logs entry for both, I am not getting any logs for any of the Apache logs and I am getting one log from MySQL. This is what I get:
2015-11-10 15:26:56 10fc InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2015-11-10 15:26:56 4348 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2015-11-10 15:26:56 4348 [Note] InnoDB: The InnoDB memory heap is disabled
2015-11-10 15:26:56 4348 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-11-10 15:26:56 4348 [Note] InnoDB: Memory barrier is not used
2015-11-10 15:26:56 4348 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-11-10 15:26:56 4348 [Note] InnoDB: Not using CPU crc32 instructions
2015-11-10 15:26:56 4348 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-11-10 15:26:56 4348 [Note] InnoDB: Completed initialization of buffer pool
2015-11-10 15:26:56 4348 [Note] InnoDB: Highest supported file format is Barracuda.
2015-11-10 15:26:57 4348 [Note] InnoDB: 128 rollback segment(s) are active.
2015-11-10 15:26:57 4348 [Note] InnoDB: Waiting for purge to start
2015-11-10 15:26:57 4348 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.26-74.0 started; log sequence number 1835027
2015-11-10 15:26:57 6140 [Note] InnoDB: Dumping buffer pool(s) not yet started
2015-11-10 15:26:57 4348 [Note] Plugin 'FEEDBACK' is disabled.
2015-11-10 15:26:57 4348 [Note] Server socket created on IP: '::'.
2015-11-10 15:26:57 4348 [Note] Event Scheduler: Loaded 0 events
2015-11-10 15:26:57 4348 [Note] C:\xampp\mysql\bin\mysqld.exe: ready for connections.
Version: '10.1.8-MariaDB' socket: '' port: 3306 mariadb.org binary distribution
2015-11-10 15:27:11 5152 [Note] C:\xampp\mysql\bin\mysqld.exe: Normal shutdown

2015-11-10 15:27:11 5152 [Note] Event Scheduler: Purging the queue. 0 events
2015-11-10 15:27:11 5732 [Note] InnoDB: FTS optimize thread exiting.
2015-11-10 15:27:11 5152 [Note] InnoDB: Starting shutdown...
2015-11-10 15:27:13 5152 [Note] InnoDB: Shutdown completed; log sequence number 1835037
2015-11-10 15:27:13 5152 [Note] C:\xampp\mysql\bin\mysqld.exe: Shutdown complete

I have run XAMPP before on my computer and never had a problem with it, but I lost my installation due to my hard drive dying. I don't know what else to do. Should I uninstall and reinstall?

Re: Apache and MySQL Failure to launch

PostPosted: 09. October 2016 17:25
by Altrea
Please show us the complete xampp control panel log messages.

Re: Apache and MySQL Failure to launch

PostPosted: 09. October 2016 19:12
by Santi87
2:06:34 PM [main] Initializing Control Panel
2:06:34 PM [main] Windows Version: Home 64-bit
2:06:34 PM [main] XAMPP Version: 5.6.24
2:06:34 PM [main] Control Panel Version: 3.2.2 [ Compiled: Nov 12th 2015 ]
2:06:34 PM [main] Running with Administrator rights - good!
2:06:34 PM [main] XAMPP Installation Directory: "c:\program files\xampp\"
2:06:34 PM [main] WARNING: Your install directory contains spaces. This may break programs/scripts
2:06:34 PM [main] Checking for prerequisites
2:06:34 PM [main] All prerequisites found
2:06:34 PM [main] Initializing Modules
2:06:34 PM [main] The FileZilla module is disabled
2:06:34 PM [main] The Mercury module is disabled
2:06:34 PM [main] The Tomcat module is disabled
2:06:34 PM [main] Starting Check-Timer
2:06:34 PM [main] Control Panel Ready
2:06:40 PM [Apache] Attempting to start Apache app...
2:06:40 PM [Apache] Status change detected: running
2:06:41 PM [Apache] Status change detected: stopped
2:06:41 PM [Apache] Error: Apache shutdown unexpectedly.
2:06:41 PM [Apache] This may be due to a blocked port, missing dependencies,
2:06:41 PM [Apache] improper privileges, a crash, or a shutdown by another method.
2:06:41 PM [Apache] Press the Logs button to view error logs and check
2:06:41 PM [Apache] the Windows Event Viewer for more clues
2:06:41 PM [Apache] If you need more help, copy and post this
2:06:41 PM [Apache] entire log window on the forums
2:06:43 PM [mysql] Attempting to start MySQL app...
2:06:43 PM [mysql] Status change detected: running
2:06:44 PM [mysql] Status change detected: stopped
2:06:44 PM [mysql] Error: MySQL shutdown unexpectedly.
2:06:44 PM [mysql] This may be due to a blocked port, missing dependencies,
2:06:44 PM [mysql] improper privileges, a crash, or a shutdown by another method.
2:06:44 PM [mysql] Press the Logs button to view error logs and check
2:06:44 PM [mysql] the Windows Event Viewer for more clues
2:06:44 PM [mysql] If you need more help, copy and post this
2:06:44 PM [mysql] entire log window on the forums

I also received warnings about disabling the UAC, which I did and it still did not help, besides installing Microsoft Visual C++ 2008 redistribute package. And while opening the control panel, I get this warning:

-n Warning
Windows cannot find '-n'. Make sure the name is spelled correctly.

Re: Apache and MySQL Failure to launch

PostPosted: 09. October 2016 19:15
by Santi87
I forgot to say the -n warning, UAC, and Micrsoft Visual warnings came up while I was installing XAMPP. After that they did not show up again. I did uninstall the program and I did reinstall it and I am still coming up with the above issues.

Re: Apache and MySQL Failure to launch

PostPosted: 09. October 2016 19:22
by Altrea
Santi87 wrote:2:06:34 PM [main] XAMPP Installation Directory: "c:\program files\xampp\"

There is your problem. You are using a 64 bit Windows version. Programs installed to C:\program files\ need to be 64 bit compiled. XAMPP is 32 bit compiled.
You should install XAMPP to the root of your harddisk, for example c:\xampp\
Don't install XAMPP to a path containing whitespaces or special characters.