A practical interface to Webobjects/Wonder JavaMonitor: controle your apps the easy way!
- An installed Wonder/Webobjects application server with JavaMonitor (Have a look at JavaMonitor WonderCommunity Page)
- Other requirements are those of the underlying used projects : Apache with mod_rewrite, php5+, modphp5-curl
Php, Javascript, html, css, The excellent Bootstrap css framework, The amazing Sticky Table Headers Jquery Plugin, The minimalist yet powerful Epiphany PHP Rest Api Framework, The outstanding TableFilter framework, The fabulous jQuery Framework
- Download files to your desired directory.
- Configure .htaccess in root directory to reflect subdirectory in mod_rewrite configuration :
RewriteBase /mydirectory
- Configure your VirtualHost for PHP (php-fcgid is a good choice)
- Rename
conf/config.default.ini
toconf/config.ini
and modify to your needs
Example configuration for your Apache Virtualhost :
<IfModule mod_fcgid.c>
<Directory "PATH-TO-YOUR-DIRECTORY/cktjavamonitor/">
#Enable .htaccess files
AllowOverride All
#Add php support by fcgid
AddHandler fcgid-script .php
FcgidWrapper /usr/local/bin/php-wrapper .php
Options +ExecCGI
# Customize the next two directives for your requirements
Order allow,deny
Allow from XXX.XXX.XXX.XXX
</Directory>
</IfModule>
Example for fcgid wrapper /usr/local/bin/php-wrapper
#!/bin/bash
PHP_FCGI_MAX_REQUESTS=1000
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php5-cgi
Start your browser and open the application's url. You'll find everything very intuitive !
To stop the apps you should, in that order:
- Turn AutoRecover Off
- Turn RefuseNewSessions On (and wait until the app closes after every user has disconnected)
To start the apps you should, in that order:
- Turn RefuseNewSessions Off
- Turn AutoRecover On (the apps should start immediatly)