Return to Blog Home

Jim Connor has written 5 articles

Changing ColdFusion Temporary Install Directory

Assembled by: Jim Connor under Web Development

I was trying to install ColdFusion 9 on a Linux server and received this error:

Launching installer...

./ColdFusion_9_WWE_linux64.bin: line 2468: /tmp/install.dir.8076/Linux/resource/jre/bin/java: Permission denied
./ColdFusion_9_WWE_linux64.bin: line 2468: /tmp/install.dir.8076/Linux/resource/jre/bin/java: Success

Turns out that the hosting provider set up the /tmp directory to mount “noexec” as a security precaution.

To get around this I could remount the /tmp dir with exec turned on, or I could change the temp directory that the installer uses. That second option seemed like the better solution, but it took a bit of research to figure out how to do it.

Since the ColdFusion installer uses InstallAnywhere, we can set the IATEMPDIR environment variable:

mkdir /root/cf9_install
export IATEMPDIR=/root/cf9_install

You’ll need to do the same thing to run the uninstaller.

CFLock vs CFTransaction and TRUNCATE TABLE Trouble

Assembled by: Jim Connor under Web Development

When performing a series of update or insert queries, you will most likely want to wrap the code with a <cftransaction> tag to have the entire set roll back in the event of an error. This is probably standard practice for most of us. The cftransaction tag has other uses as well. By setting the "isolation" attribute, it can also be used to limit access to certain data, similar to using a cflock tag. There are a few key differences between using <cflock> and <cftransaction>, though. For one, the cftransaction method allows the database to handle the locking, maintaining data integrity across applications. Another important difference is that the cflock method forces the second call to wait for the first call to finish, whereas the cftransaction method allows the second call to complete normally, but using the data as it appeared before the transaction began.

Let me explain. Continue Reading “CFLock vs CFTransaction and TRUNCATE TABLE Trouble”

The quest for the perfect framework

Assembled by: Jim Connor under Web Development

What’s In a Name

We’re no strangers to frameworks. We were using a front controller driven framework back in 2000, complete with database mappings to tie pages to their drivers and layouts. Of course the mappings were stored in the application scope for quick retrieval. This framework served us well for many years. Continue Reading “The quest for the perfect framework”

Fedora 12 on Windows 7 Virtual PC

Assembled by: Jim Connor under Web Development

If you are trying to install Fedora 12 in Windows Virtual PC and the VM just shuts down right after you begin installation, try adding “vga=0×32D” to the boot params.
Continue Reading “Fedora 12 on Windows 7 Virtual PC”

Apache JMeter Website Testing

Assembled by: Jim Connor under Approach and Web Development

I was looking for a simple web “stress” tool to test an issue with a current project. It needed to do more than just smack a single URL a billion times. I wanted to be able to log in and perform a couple typical user actions. Continue Reading “Apache JMeter Website Testing”