Python 2.7.5 on CentOS 6.x

For the last few months, I’ve been coding in Python relentlessly. It’s new to me and it just makes sense. The one thing I really like is keeping codes and logic simple. You can comment Python’s OOP implementation but then again, everyone got a favourite right? Most of the servers I handle everyday are CentOS 6.x distros with Python 2.6.x preinstalled by the system. You DON’T wanna upgrade it through yum or any other method, you will break the whole system. So here’s to how get Python 2.7.5 working. ...

July 17, 2013 · Batista Harahap

Compiling nginx 1.4.0 With SPDY on CentOS 6

Just a few days ago, the latest version of nginx at 1.4.0 was released to the public. The version bump adds a lot of new capabilities for your web stack. The most interesting for me was support for SPDY 2 protocol. Excerpts from Chromium SPDY’s page reads below: As part of the "Let's make the web faster" initiative, we are experimenting with alternative protocols to help reduce the latency of web pages. One of these experiments is SPDY (pronounced "SPeeDY"), an application-layer protocol for transporting content over the web, designed specifically for minimal latency.  In addition to a specification of the protocol, we have developed a SPDY-enabled Google Chrome browser and open-source web server. In lab tests, we have compared the performance of these applications over HTTP and SPDY, and have observed up to 64% reductions in page load times in SPDY. We hope to engage the open source community to contribute ideas, feedback, code, and test results, to make SPDY the next-generation application protocol for a faster web. In order for SPDY to work, one will need an SSL certificate and OpenSSL 1.0.1c at least to compile and run a website successfully with nginx. SPDY needs NPN enabled with OpenSSL and CentOS only provides 1.0.0. According to a blog post here, we can just add a repo to get OpenSSL to work nicely. Here are the steps needed to compile nginx with SPDY support: $ rpm -ivh --nosignature http://rpm.axivo.com/redhat/axivo-release-6-1.noarch.rpm $ yum --enablerepo=axivo update openssl $ cd /opt/src $ wget http://nginx.org/download/nginx-1.4.0.tar.gz $ tar xfz nginx-1.4.0.tar.gz $ cd nginx-1.4.0 $ ./configure --with-pcre --with-http_ssl_module --with-http_spdy_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_stub_status_module --prefix=/usr/local/nginx $ make -j4 $ make install ...

May 6, 2013 · Batista Harahap

Cloud Install Linux With a Browser!

So these past days, I’ve been looking for a nifty replacement (new home) for hostingMUREH.com - The only webhosting with 10 gigs web space for just 200K/year! Sorry for the hard selling gesture, completely intentional :p After a few sessions with Google, I stumbled CloudSigma.com, it comes with a 7 days free trial I might add. First look at its website does not resemble anything like the other cloud server providers. No fancy stuffs, the get right to the point. ...

January 5, 2011 · Batista Harahap