More on Wincache + WordPress + IIS 7

Filed Under (Uncategorized) by Mike Kauspedas on 23-03-2010

Tagged Under : , ,

I just found this blog post on iis.net and applied it to my WordPress site. The site does seem a lot faster but it could be the car wash effect. You know, when you get your car washed and somehow it makes it faster. Also known as the gas tank effect.

http://blogs.iis.net/ruslany/archive/2010/03/05/make-wordpress-faster-on-iis-with-wincache-1-1.aspx

Windows 2008 + Railo + IIS 7

Filed Under (Tech) by Mike Kauspedas on 23-03-2010

Tagged Under : , ,

I recently had the pleasure of figuring out how to get Railo working for a customer. Unfortunately the internet doesn’t convey my extreme sarcasm in saying the word pleasure. It was not pleasant. For one, there is very limited documentation. So limited that it’s hard to determine what version you should install. Despite all this I managed to figure out the basics in a few days and get some sites up and running. There are still a lot of things that confuse me, but I’m not about to figure all those out. I just wanted to get it running. Fortunately for anyone who is reading this I kept some notes on what I did, hopefully they help you in your endeavor.

First, download Railo server. Go here http://www.getrailo.org/index.cfm/download and scroll down, then download the exe under Railo server.

Run the installed, I chose to install in C:\Railo to keep things really simple.

After it’s installed try http://localhost:8600/railo-context/admin/server.cfm on the server. Don’t get excited, I’ve never had a problem getting that running. Don’t set anything up yet or add DSNs. I’m not sure if this is true but the admin is different for each site. At least I found that if I added a DSN under localhost it would not show up for the site. More on that later …

Open IIS and add a script mapping to your handler mappings.

Script: *.cfm
DLL: C:\Railo\win32\isapi_srun.dll
Name: CFviaRailo

Within handler mappings click on edit feature permissions from the right hand side and allow EXE. This is bad for the whole server so I recommend doing it on the sites individually.

If you are using Windows 2008 R2 x64 make sure the application pool for the site is set to allow 32bit apps and also set it to no managed code.

Open resin.conf in C:\Railo\conf. Find the line:

<!– configures a deployment directory for virtual hosts –>

Above that line put the following.

<!– configure IIS sites routing by host –>
<host id=”your-domain-name.com” root-directory=”.”>
<web-app id=”/” document-directory=”C:/inetpub/wwwroot/file-path”/>
</host>

Do the same for any other sites that will run Railo. Restart IIS (cmd –> iisreset) and the Railo server in services.

Now, in a web browser open the Railo admin under that site. Hopefully everything works for you. The URL would be “http://your-domain.com/railo-context/admin/server.cfm. You should be asked to set an admin password. After you do that and login add your datasources, setup the mail server, turn off debugging, and any other settings you like. With all that done your site should run as long as it doesn’t require something Railo doesn’t offer.

Like I said this is very basic and I did this for some relatively simple websites. I’m not sure if this is correct or recommended.Keep in mind that Resin is the web server, it is running the Railo sites and the CFML. IIS is simply passing the cfml to resin/railo. Just like normal CF/Java.

Some other links that helped me.

http://blog.durhamcons.com/post.cfm/railo-3-0-community-resin-3-1-and-iis6-learn-from-my-mistakes

http://www.railo.ch/blog/index.cfm/2009/6/24/h2Configuring-Railo-for-the-application-server–Part-1h2

Leave a comment with any questions you have and I’ll try and help.

PHP 5.2.13 + IIS 7 + Wincache

Filed Under (Tech) by Mike Kauspedas on 22-03-2010

MikeSaysMeh dot com is now running on PHP 5.2.13 with IIS 7 and Wincache. Its pretty easy to install, just download the Non Thread Safe version of PHP 5 from here. http://windows.php.net/download/ and download Wincache from here, http://www.iis.net/expand/WinCacheForPhp. Install PHP, add wincache extension, run. Its really that simple. Just make sure you use the non thread safe version of PHP or else you get fastcgi crashes. Another tip, if you’re running into errors open a dos prompt and run your page from there. You should get a warning box or error message that will be easier to follow. IE:

C:\PHP>php-cgi C:\inetpub\wwwroot\info.php

If you’re using Win2k8 R2 make sure yer app pool is allowing 32bit apps.

One of the other things I noticed is that php now compiles, its slow to start (like asp.net) but once its going it zooms along.

Larabars

Filed Under (Living with the gluten-less curse) by Mike Kauspedas on 19-03-2010

Tagged Under : ,

I think I’ve tried every flavor of larabars so far and the best one by far is peanut butter cookie. Not to say the other ones aren’t bad, but the pb cookie is that much better. Lemon bar is also a  favorite and actually reminded me of my Grandma’s lemon bars. So much that I had my wife make some gluten free lemon bars, but they weren’t Grandma’s, probably because they were missing delicious gluten. A box of larabars runs about $20 at King Soopers and lasts me and my wife 2 weeks. There are some days when all I have for lunch is one. They make great fuel on long rides as well.


DotNetNuke Install WebResource.axd Error IIS 7

Filed Under (Tech) by Mike Kauspedas on 18-03-2010

Tagged Under : ,

I’m testing an install of DotNetNuke on IIS 7 and ran into an error when trying to start the site.

The WebResource.axd handler must be registered

I tried following some guides online to add the handlers to the >system.webserver> section which is there for IIS in the web.config but I couldn’t get them to work so I just switched the application pool to classic mode. I’d rather run in integrated, I hate running something as up to date as DNN on an IIS 7 server in basically IIS 6 mode; but for now this works. So to get around this error just switch your app pool in IIS 7 to classic mode and then restart it. Below is a guide on how to do that.

http://support.gearhost.com/KB/a381/change-managed-pipeline-mode-in-iis-7.aspx

Gluten-Free Bread making Robot for President!

Filed Under (Living with the gluten-less curse) by Mike Kauspedas on 18-03-2010

Tagged Under : ,

http://mybready.com/index.php/

It’s $300 but can you put a price on joy? On deliciousness? No, you can’t. This is exactly what I have been looking for and I have to thank my wife for finding it for me. Gluten-free bread is normally frozen and never fresh. Unless you can actually find a restaurant that serves it, like Le Central (more on that later), your gluten-free bread experience will leave something to be desired. Bready, possibly the best robot ever created – yes it’s a robot – is going to change that for all of us who live with the gluten-free curse. That is why my vote will be a write-in for Bready. It’s also why your vote should be for Bready as well.

Gluten-free Frito-Lay Products

Filed Under (Living with the gluten-less curse) by Mike Kauspedas on 10-03-2010

You can find a list of gluten-free Frito-Lay products on their site here. Its actually pretty damn long.I eat plain fritos sometimes when I’m in a pinch and judging from the way I feel and the ingredients on the back I figured they were safe. I just did a quick double check online today and found out I was right, and there are a lot more unhealthy chips I can eat as well. Gonna be tough staying away from all that deliciousness.

http://fritolay.com/your-health/for-special-dietary-needs.html

Just click on product not containing gluten. Here’s just a few.

Last updated February 24, 2010

BAKED! CHEETOS® Crunchy Cheese Flavored Snacks
BAKED! CHEETOS® FLAMIN’ HOT® Cheese Flavored Snacks
BAKED! DORITOS® Nacho Cheese Flavored Tortilla Chips
BAKED! LAY’S® Cheddar & Sour Cream Flavored Potato Crisps
BAKED! LAY’S® Original Potato Crisps
BAKED! LAY’S® Parmesan & Tuscan Herb Flavored Potato Crisps
BAKED! LAY’S® Sour Cream & Onion Artificially Flavored Potato Crisps
BAKED! LAY’S® Southwestern Ranch Flavored Potato Crisps
BAKED! RUFFLES® Cheddar & Sour Cream Flavored Potato Crisps
BAKED! RUFFLES® Original Potato Crisps
BAKED! TOSTITOS® Scoops! Tortilla Chips
BAKEN-ETS® BBQ Flavored Fried Pork Skins
BAKEN-ETS® Fried Pork Skins
BAKEN-ETS® Hot ‘N Spicy Flavored Pork Skins
BAKEN-ETS® Hot ‘N Spicy Flavored Fried Pork Cracklins
BAKEN-ETS® Hot Sauce Flavored Fried Pork Cracklins
CHEETOS® Crunchy Cheddar Jalapeno Cheese Flavored Snacks
CHEETOS® Crunchy Cheese Flavored Snacks
CHEETOS® Crunchy Chile Limon Flavored Snacks
CHEETOS® Crunchy Flamin’ Hot Cheese Flavored Snacks
CHEETOS® Crunchy Flamin’ Hot Limon Cheese Flavored Snacks
CHEETOS® FANTASTIX! Chili Cheese Flavored Baked Corn/Potato Snacks
CHEETOS® FANTASTIX! Flamin’ Hot Flavored Baked Corn/Potato Snacks
CHEETOS® Giant Puffs Cheese Flavored Snacks
CHEETOS® Giant Puffs Color Changers Cheese Flavored Snacks
CHEETOS® Giant Puffs Flamin’ Hot Cheese Flavored Snacks
CHEETOS® Giant Snowballs Cheese Flavored Snacks
CHEETOS® Jumbo Puffs Flamin’ Hot Cheese Flavored Snacks
CHEETOS® Natural White Cheddar Puffs Cheese Flavored Snacks
CHEETOS® Puffs Cheese Flavored Snacks

OMFG! – Progresso Traditional New England Clam Chowder is Gluten Free!

Filed Under (Living with the gluten-less curse) by Mike Kauspedas on 02-03-2010

Tagged Under : ,

Gluten free deliciousness.

This is the first time I have found out one of my old staples is gluten free. I LOVE clam chowder and now I can eat it again. I don’t know if this has always been gluten free. Regardless I know what I’m having for dinner tonight!

Curb check = face laceration and another trip to the ER

Filed Under (Regarding Mike) by Mike Kauspedas on 04-01-2010

I did it again. For some reason I have been incredibly accident prone lately. I took the dog out around 10pm on Saturday night. We usually run for short little sprints. Moya and I never go across Downing towards the country club, but that night I decided I’d take her over there so maybe she’d stop pulling so much every time we get close. She’s like me, hates taking the same route twice and loves going to new places. So I bolted with her across Downing. I slipped on a thin clear sheet of ice and slammed my face right into a curb. Fortunately I didn’t knock myself out and Moya came bouncing back to see what was wrong. She staid by my side until I figured out where my glasses were. For the 2 or 3 minutes I stood there collecting my senses, glasses, and trying to keep blood in a cab sat maybe 2 feet away. He sat there and watched me but never rolled the window down to ask if I needed help. When I got back to the tower I scared the shit out of some lady taking her dog out. Literally my face and hands were covered in blood. I mumbled it looked worse than it was and then got in the elevator. She never said a word.

When I walked into the apartment I told Grace I broke my glasses again. She said how in an annoyed voice and I walked into the office where she was playing WoW with my hand soaked in blood holding about 50 paper towels to the cut. Of course she freaked out and I told her I wasn’t going to the emergency room. My last experience was horrible and they hurt worse than the actual accident. Typical of my bloody injuries I could not look at it without wanting to vomit and then pass out. I knew I just had to wait and my nerves would calm. After about 2 hours of laying on the couch and reading Percy Jackson and the Olympians I took a look at it.

Man did it look cool. I put a huge gash above my left eye. I mean huge as in flesh showing and stuff. What happened was my glasses hit the curb first and then moved above my eye and cut a huge gash. My brand new glasses by the way. Then I bled all over my nice North Face jacket and brand new new balance running shoes. When it rains it pours I guess. I never thought it was that bad because head wounds bleed like crazy. I thought I just made a little scrape, maybe worthy of stitches but if it wasn’t that bad I wasn’t going to the emergency room to deal with f’n needles and burning saline solution. Unfortunately this was pretty f’n horrible and the bleeding still hadn’t stopped. Grace took me in and of course I got stung with a thousand needles and then they burned me with the f’n saline solution when they cleaned it out. At one point the doctor was numbing an area the nurse forgot (that was burning from the cleaning) and his syringe exploded. I’m not kidding. Numbing medication burst everywhere. In my eye, my mouth, my face, Grace, the doc. And he left the needle half stuck in my wound while he scrambled for another. Yes, they have to stick these f’n needles in the actual wound to numb it so they can sow it shut.

Needless to say I’m going to try and be more careful. Today I am incredibly sore and I can’t open the eye. I did manage a shower though so at least I’m clean :)

*Warning*, the pics below are f’n awesome.

Dell Zino is Mac Mini competition?

Filed Under (Tech) by Mike Kauspedas on 23-12-2009

Pretty interesting little PC from Dell. If only it came with blu-ray it would make a killer media PC, same with Apple.

zino
The Dell Zino HD sporting options like a dual core AMD CPU, up to 8GB RAM, 1TB hard drive (7200rpm as well) and a Radeon 4330 with 512MB RAM, surely at least WoW capable. This would make an excellent media PC and they start at just $249. Dell should also go with a slot loading DVDRW.

Dell Zino HD

mac mini
Whereas the Mac Mini here starts at $599, but it does feature slightly better hardware. Intel Core 2 Duo, DDR3, etc. I know the Mac mini is WoW capable because my Macbook is. And that is always important. Apple store reps response when I asked if I could get a blu-ray player for my Macbook “everyone streams everything now.” Yes we all stream, but no one streams f’n blu-ray, jesus. I just want to be able to bring my BD’s with me on trips, or to school :)

Apple Mac Mini

I wonder what awesome small form factor cases are available. Maybe I can finally make a tiny inconspicuous media PC/Mac. I wonder if my old macbook can handle 720p?

Get Adobe Flash playerPlugin by wpburn.com wordpress themes