Thursday, September 16, 2010

Enabling trace on Datasources in WAS 7

In the Admin Console, you can add 2 Custom Properties to a datasource to enable trace level logging.

Go to your datasource, and click on the "Custom Properties" link to the right of the middle frame and add the following:

traceLevel (value is 7)
traceFile (value is fully qualified file name for the data to be written to)

Once I set these up, I usually cycle the nodeagent on one of our servers, and then do a test connection when it's back. This proves to me the setting is correct and something will be written to the log.  once I know this is ok, I can cycle the appServers I am concerned about for the settings to take hold.

Friday, March 12, 2010

How can I tell if a perl module is installed?

TO LOOK FOR A SPECIFIC MODULE:
find `perl -e '{print join $/, grep {/[^.]/} @INC}'` -name '*pm' 2>/dev/null |grep -i <>

where <> is the name of the module you are looking for

TO LIST ALL INSTALLED MODULES:
find `perl -e '{print join $/, grep {/[^.]/} @INC}'` -name '*pm' 2>/dev/null

Tuesday, March 9, 2010

Updating PHP variables without access to PHP.ini

http://www.karakas-online.de/EN-Book/change-php-parameters.html

has the following information:

although you will probably not achieve the desired result, due to restrictions that your ISP has set in place, to change the maximum execution time limit of your PHP scripts, add:

php_value max_execution_time 60

This will set the time limit to 60 seconds.


In general, to set values in an .htaccess file, use the following format:

php_value PHP-VARIABLE VALUE

where the string php-value is a literal.