Hi,

If SuPHP cannot run a script (e.g. because an Apache process limit has been 
reached) currently no error is logged. The following very small patch makes 
exception information appear in the SuPHP log to help find these (and possibly 
other) configuration issues:

---
diff -u -r suphp-0.7.2/src/Application.cpp 
suphp-0.7.2-patched/src/Application.cpp
--- suphp-0.7.2/src/Application.cpp     2013-05-20 13:24:54.000000000 +0200
+++ suphp-0.7.2-patched/src/Application.cpp     2013-10-09 09:14:55.000000000 
+0200
@@ -136,6 +136,7 @@
         // So, if we get here, return with error code
         return 1;
     } catch (SoftException& e) {
+        logger.logError(e.toString());
         if (!config.getErrorsToBrowser()) {
             std::cerr << e;
             return 2;
---

I understand that SuPHP is no longer actively maintained, but it is still an 
immensely useful piece of software to us. Not just because it seperates user 
scripts but also because it enables us to offer our customers the option to 
choose the PHP version their websites run on.

Kind regards,

-- 
Sebastiaan Hoogeveen
<[email protected]>

NederHost is ingeschreven bij de Kamer van Koophandel onder dossier 34099781.


_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp

Reply via email to