in reply to Re^3: Threaded MPM Sharing Variables (this time with complete test code)
in thread Threaded MPM Sharing Variables (this time with complete test code)
Thanks for the javascript-code. I've got the libjs-jquery package installed, but I'm not sure how to use the javascript-code you provided (I'm not a webdev :)). Do I just put it in a .js-file and plop it in /var/www to access it using a browser? (Which only shows the contents, it doesn't run it).
Switching from apache2-mpm-prefork (needed for php5) to apache2-mpm-worker seems to have reduced the number of running apache2-process to 3 (One owned by root, 2 by www-data).
Putting files in / is against the filesystem-hierarchy standard (and my personal opinion on where to put files). Though your trick will allow apache2 access to /testSharing.log, this is not the place to put that file. Regardless, I got it to work using /var/www/testSharing.log (as I explained earlier), so that's not really an issue.
Trying my previous method by holding down F5 for a bit now gets me only one occurrence of 'Initializing'.
|
|---|