Laragon Detected Exceptions!
-
For some reason, Laragon is reporting that the Apache service cannot be started whenever I click reload because it is disabled or because it has no enabled devices associated with it. Pressing OK on the error message closes Laragon. This all happened while I was installing a backup plugin for Wordpress. The site began to run extremely slow and I was forced to restart Laragon. After a wipe of the laragon folder and uninstall/reinstall. Laragon works.. Except for when I want to reload the Apache service. After Laragon closes, the services "httpd.exe" and "mysqld.exe" are left running.
What error logs can I provide to help? Thanks!
-
@MightyRufo : When Laragon reporting something, it detected error and if I see the error message, I can help you to figure out why and solve it. The backup plugin may have memory leak that caused the issue.
When you click Exit, Laragon will close all "httpd.exe" and "mysqld.exe" processes.If you want performance, you can try FastCGI by just adding PHP NTS version:
https://forum.laragon.org/topic/166/tutorial-how-to-add-another-php-version
-
This is the error message that I see when it happens
Clicking the 'OK' button causes Laragon to close with those two services mentioned above left running.
Laragon will sometimes also output this error regardless of what's happening. Sometimes Laragon will 'hang' as well, until eventually resuming normal operation.Are there any log files that I can upload for you?
-
@MightyRufo: Laragon has a log on bin/laragon, but when detecting exception, Laragon will display the exception, not write to log.
This is the first time I see an exeption in Laragon. In new version, I will close other processes first before displaying exception and exit.
What is the backup plugin you are using?
-
I had several installed and tested two. I don't remember off the top of my head but I can look and see later today. I've tried all of the typical troubleshooting methods to no avail. Perhaps the log file will help, maybe.. I'll also check that and upload it tomorrow.
What are some things that can cause Laragon to have excpetions?
-
Exception happens mostly depends on OS. Laragon catches Exception for strange things and the message could not tell much. If I have some information to replicate the issue, it will be helpful.
-
Where exactly is the log file?
Also, I was using Backup Guard and BackUpWordPress. I first enabled BackUpWordPress and that's when the problem started. Also, what dependencies does Laragon have? Like how some programs require Visual C++, what does Laragon require? Also, can Anti-Virus cause this issue?
-
@MightyRufo : If Laragon has logs, there will be a file names log.txt.
It could be the Anti-Virus. The point is the Backup plugin processed a lot of files & folders under Apache processes that made the Anti-Virus aware.
Laragon is portable so you don't need to use any backup plugin. You just need to put these folder to Dropbox, Google Drive, OneDrive,...
- For MySQL: backup the data dir
- For Code: backup the www dir
- For Settings (optional): backup the usr dir
When issues happens, just install Laragon on a new machine and put your the backup folders to right place.
Dependencies:
httpd-2.4.20-win32-VC14 (Apache) and php-7.0.8-Win32-VC14-x86 needs VC14, the Laragon installer will auto detect and installl it for you.
If you move Laragon folder to another machine and don't use the installer, just install VC14.
-
Oh! Alright, awesome. I'll do backups manually then instead. I can confirm that it wasn't my Anti-Virus. I installed Laragon on the machine that has the issue. Laragon works but in any moment where I have to restart the Apache service or I want to 'Quick create' a website, it gives the exceptions error. I wonder if VC14 is corrupt.
EDIT: Welp, VC14 wasn't my issue.
I ran an integrity check via CMD to ensure my system wasn't corrupted somehow - all seems good. I can't seem to fix this, even with everything checking out.
-
I found a topic about the issue here:
http://answers.microsoft.com/en-us/windows/forum/windows_7-security/the-service-cannot-be-started-either-because-it-is/58bf868f-6611-47b4-9d8f-f514d4302ff2?auth=1
if you try on another VM, you may get the answer.Btw, I'm working on adding Nginx to Laragon. Will release it soon
-
@leokhoa Interesting, that link suggests several things, but it does suggest an issue I've had before - services randomly disabling.
I'll do some further trouble shooting. Thank you for the help! You've been very helpful!
As for Nginx.. Well, I'm not really sure what that is.
EDIT: YOU ARE THE MAN (OR WOMAN). Turns out the 'Windows Installer' and 'Windows Medule Installer' was set to manual and it wasn't starting when called upon! Now it works
THANK YOU!
-
Oh, cool. No problem, I'm glad to here it helped
-
@leokhoa One other thing.. When copying a new version of Apache (say the 64-bit version) I'm prompted with an error saying that a httpd.conf file must be created.
-
Hmm, show me a picture of you Apache's conf dir, pls?
In the conf dir there must be a file names httpd.confThis topic may help:
https://forum.laragon.org/topic/165/tutorial-how-to-add-another-apache-version/
-
@leokhoa
Makes zero sense, but I'm 100% sure it's in the correct directory. Same Apache folder as the 32-bit version.This only happens if I add a new version of apache, even if I add the same 32-bit version. The only time it doesn't occur is when I use the Apache that's provided when installing Laragon
-
Maybe the Anti-Virus prevented Laragon from updating the file (for auto configuration) or maybe permissions. You can try:
- Temporarily disable the Anti-Virus
- Run Laragon as Administrator