Simple PHP Web uptime script

by Ruchira on December 5, 2010

Having 100s days of server uptime with your shiny linux box? Wanna showoff like I want to do? 😛 Or want to monitor server uptime without SSHing to server? There is nice way to showoff your uptime in simple PHP script which requires nothing fancy changes on your linux box. Ill will display system time load averages and uptime in simple layout.

You just want to do is create a .php file in your notepad and enter this syntax on notepad

<?PHP system('uptime'); ?>

When saving dont forget to choose “all files” and then name it whatever you want end in .php as file name.
ex- uptime.php and then move the saved file to your server path. ex-

If you are too lazt to create the php file on notepad just download the uptime.php file here and unrar it and put in to your web site directory.

Thats it.

See it live on


My hosting journey

by Ruchira on December 2, 2010

I have hosted on many places until now. Lessons learned and things changed. Early times I didnt had money to buy hosting account so went with

1. 000webhost


Actually good alternative if you dont have money to buy paid hosting. I have hosted Ruchirablog there for about a month. Not bad for free hosting.

2. Dreamhost


On that times dreamhost had a promotion to give out a free domain and free hosting account for a year for $9.99 it was blessing for me and I have moved to dreamhost immediately. Believe me I n ever bothered to backup my data for whole year and dreamhost worked like a charm without giving nightmare of losing data. Read my 1 year review here.

3.Keyweb Germany


Those times I have started proxy hosting business And bought my own 4GB RAM OpenVZ VPS and deployed Kloxo there and also moved this blog to that proxy hosting server. It was nice experience and the service was excellent.I have pushed 300GB a day with my proxyhosting biz.

4. BurstNET


I was busy because of some brutal exams and decided to close out my proxyhosting business after sending out a notice to clients few months before closeout. Then I have got 512MB RAM openvz vps from burstnet to handle Ruchirablog and one of my proxy site got 2000 visitors a day. And I didnt had any problems with them you can read my review here

5. Hawkhost


Remember I said I got 2000 visitor a day proxysite? Proxy site traffic is very unreliable because when sites becomes famous they gets automatically blocked buy web filters of user end. So I lose that huge traffic after few months. And Exams was to start soon. So I have decided to move my blog to shared hosting server with backup solution with RAID so I can forgot the risk of monitoring vps servers. Stayed few months with hawkhost you can read my review here

6. Linode

I got a sponsor for hosting this blog its I have chosen linode because they have data centers in London which gives fast latency to my visitors from Asia and so far so great thanks to net4ever . Actually net4ever servers are great but I have choose linode because they have daily backup options so I dont need to make backups daily 🙂 So far so great with linode. And Ill never move hosts again. Im very impressed with linode performance with XEN. And also I ll never move to openvz instead of xen.

Take my word for linode and if you got your mind to try linode use my referral code when you purchasing. You can get best performance on linode while helping me to get some credits. Order here

{ 1 comment }

Find out uptime of a server without SSH

by Ruchira on November 28, 2010

If you have a VPS or dedicated server you might be definitely interested on keeping long uptime record ( Online time of server without restart). But if you have VPS or dedicated server you will probably have SSH access to your server so you can view uptime using just 1 easy command below


But if you are on shared hosting server things different and 99% of shared hosting companies doesnt allow SSH access to your hosted server because of security purposes. So its not possible to access the server and view the uptime of your server. But 95% of worlds linux shared hosting companies have cpanel as their server control panel and even they had other control panel like directadmin,kloxo they definitely have phpmyadmin as their mysql control panel.

So there is a cool trick that you can server uptime with phpmyadmin. 99% of you guys might haven’t noticed this yet. Not even uptime you can even view how many queries to the server in any given minute,second,hour etc.

So open up your phpmyadmin and navigate to home or phpmyadmin then status tab, So now in this panel you can see uptime of your server and some other use full stuff.

So its easy like as seen on Ruchirablog 🙂


SixXS is a joke

by Ruchira on November 26, 2010

few days ago I signed up for sixXS ipv6 tunnel broker and they seems like providing good service for free. I really cant complain because its free service but there are things needs to be complained even its free service. I know sixXS is not a scam and people are using it.

[click to continue…]


Moved to statcounter! Sitemeter slows down my blog

by Ruchira on November 23, 2010

Hmm. I have used sitemeter alongside google analytics to track down my visitors for more than a year and recently I felt that sitemeter slows down my page loads because of their java code which i placed on my footer took more times than before to load. Slowing down page loads is not good because these days speed of web sites plays major part in SEO also its annoying to wait until footer gets loaded. So I decided to give a shot to statcounter and leave sitemeter.

I have used sitemeter because it has some great functions like real time visitor counter to see who is online at the given moment and stuff. And the interface is pretty clean and I have used to run sitemeter open, means anyone can view my visitors by clicking the icon on footer. And overall sitemeter provided great interface without ads and its very easy to manage.

[click to continue…]


LNMP0.5.1RB released

by Ruchira on November 23, 2010

Well its really nice to see that my modified LNMP installer is getting nice popularity! And its also nice to see lots of people used this guide to setup their servers as of now. You all know this is modified script and original rights goes to . What I did is simple modifications to original script.

Changelog 0.5.1

  • Actually LNMP0.5RB script places a script called “prober” its located on /p.php on home directory and it shows all server data when viewing p.php so if you forget to delete it after installing it might be security risk. So on 0.5.1 I have decided no to install prober automatically when running script.
  • And one problem that we had on 0.5RB the script itself rewrites local server time to china shanghai time. I dont know why original developer wanted this kind of thing. So I have removed that now it keeps your local time zone without rewriting it to china time!
  • Installation process simplified with clear details when installing. Actually this is just minor change as LNMP is itself very simplified. Script searches for some scripts like nginx is already exists or not and used to give output called Error: So its bit misguiding, So I have cleaned up the code for newbies so they don’t need get scared seeing error! 😀
  • Software packages like php,mysql.,etc moved to my own server which runs on 1Gbps pipe so it makes installation faster. I have did because some users reported that some times previous host unavailable to pull the packages.

So there is nothing major updates on 0.5.1 its just security release for newbie users.

What should i do to update my 0.5 to 0.5.1 ?

  • As said nothing major. If you are already running LNMP0.5RB please delete prober placed on /p.php and php info file located on /phpinfo.php as it might pose security vulnerability.

And kudos for all your support so far!

You can find updated LNMP0.5.1RB here


LOL Mails- November 2010

by Ruchira on November 18, 2010

*Jeez* Hong Kong bank guy use yahoo mail account to do business!


WordPress plugins that I use

by Ruchira on November 9, 2010

my plugins

Well im using 25 wordpress plugins *jeez* .Some of them are resource hungry and I have tried more than 50 plugins but ended up removing unnecessary things. Here is the list what is currently active.

  • Akismet, (Akismet checks your comments against the Akismet web service to see if they look like spam or not.)
  • All in One SEO Pack (Out-of-the-box SEO for your WordPress blog.)
  • Autor Exposed (Simple and elegant way to get more information about author.)
  • Comment Relish ( Increases your readership and RSS subscription rate by simply sending a short ‘Thank You’ message to users when they first comment on your site.)
  • Contact Form with Captcha (Simple Contact Form with Captcha Enabled)
  • DamnSexyBookmarks ( DamnSexyBookmarks adds a (X)HTML compliant list of social bookmarking icons to each of your posts.)
  • Do Follow (Removes the evil nofollow attribute that WordPress adds in comments.)
  • Easy AdSense (Easiest way to show AdSense and make money from your blog.)
  • Fast Secure Contact Form (Fast Secure Contact Form for WordPress. The contact form lets your visitors send you a quick E-mail message)
  • Google XML Sitemaps (This plugin will generate a special XML sitemap which will help search engines like Google, Yahoo, Bing and to better index your blog.)
  • MobilePress (Turn your WordPress blog into a mobile website/blog.)
  • Permalinks Moved Permanently (When permalink isn’t found, this checks if a post with the requested slug exists somewhere else on your blog.)
  • Posts by Author (At the bottom of every post, links are shown for that author’s last X posts. See options page for config.)
  • Redirection (Manage all your 301 redirects and monitor 404errors)
  • Robots Meta (This plugin allows you to add all the appropriate robots meta tags to your pages and feeds, disable unused archives and nofollow unnecessary links.)
  • SEO Friendly Images (Automatically adds alt and title attributes to all your images. Improves traffic from search results and makes them W3C/xHTML valid as well.)
  • SEO Slugs (Removes common words like ‘a’, ‘the’, ‘in’ from post slugs to improve SEO.)
  • SEO Smart Links (SEO Smart Links provides automatic SEO benefits for your site in addition to custom keyword lists, nofollow and much more. )
  • Top Commentators plugin (Adds a sidebar widget to show the top commentators in your WP site.)
  • Twitter for WordPress (Displays your public Twitter messages for all to read. Based on Pownce for WordPress by Cavemonkey50.)
  • W3 Total Cache
    The fastest and most complete WordPress performance plugin. Dramatically improve the speed and user experience of your site. Add browser, page, object and database caching as well as minify and content delivery network (CDN) to WordPress.
  • WordPress Related Posts
    Generate a related posts list via tags of WordPress
  • WP-PageNavi
    Adds a more advanced paging navigation to your WordPress blog
  • WP-UserOnline
    Enable you to display how many users are online on your WordPress site
  • WP Memcached Manager
    A simple tool to manage memcached server(s) from inside the WordPress admin interface.

PS-Showing your plugins on public is not a good habit! Some of them might be vulnerable for hacking! 😀