Apache vs. Nginx – testing performance under heavy load

Hacks Hosting Reviews

It has come to my attention, when a client of mine recently experienced unexpected traffic spike, that some industry standard solutions not always work or should i say not 100% reliable all the time. My client’s server setup was an-old-school Apache 2.2/mod_php WordPress blog installation. One day they posted some “hot-buzz” celebrity photos and server had become non-responsive under the traffic flow. Of course, at that time i was unaware about high-availability setups and never imagined scenarios like this one, when you get monthly volume of visitors during the 24 hour period.

Since then i have researched a lot of places online and found, that Apache web server is not the only solution to the hosting setup problem. Many others exist and those others, event quite “beta”, allow for the great tolerance for the high volume traffic.

Today i’d like to share with you my test results for my current server setup – LEMP or Linux, nginx (Engine-x), MySQL, PHP-FPM versus my old setup for this blog: LAMP – Linux, Apache, MySQL, PHP. Both of those are on the Linode VPS (Linode 360). Before getting rid of the old server configuration i booted it one more time and ran tests using guys from LoadImpact to determine how will each of these survive under the load of 10-20-30-40-50 simulations requests.

continue reading »

Nikon D3000 – great budget DSLR with awesome features

Reviews

For most of the people professional photography means expensive cameras and costly equipment with price tags somewhere around $1500.00. Not for me – i was lucky enough to be given Nikon D3000 for my birthday and i must say i love it. By the way – Best Buy now has it on sale – go check it out.

Besides professional modes on the settings dial it has your regular point-and-shoot camera options for portrait, landscape, sport and auto mode. So you can experiment with aperture and ISO in pro-mode and if fail switch back to the basic ones, shooting awesome quality pictures. Camera kit lens, which are included with this one are great for taking not only portrait photos, but for shooting almost anything.

Take a look at those i took not so long ago in Central Park:

continue reading »

Zip a folder on the server with php

Hacks Hosting PHP

zip icon

I have a spent a day today figuring how to zip a client’s web site folder on a Godaddy shared Linux hosting today (they made sure users don’t have SSH access on those) in order to transfer it to another server. Apparently, given the limitations of the account setup the best way was to write a php script by executing which i would zip the given folder contents, so that then i could copy just one file and unzip it on the target server.

And it can’t be easier than that – if you have a folder, which contains a number of other folders and files in them the script below lets you add to the zip file quickly and easily:

continue reading »