27 April, 2009

Setting up LAMP on ubuntu

As I can remember (though I have a bad memory) I think that I have mentioned that I am an Ubuntu user for at least about 100 times on this blog. To read about why I use Ubuntu please see the posts which I have posted here.

I thought of writing a post to explain how to set up a working LAMP (Linux Apache PHP MySQL) server (I will call it a server ;)) on ubuntu.

And from here onwards I am talking about the terminal, sometimes it may be boring but yet I believe that being simple is very helpful to be flexible.

Okay now the first step must be the install Apache on your Ubuntu installation,

For that you will have to use the apt, paste the following command in your terminal.

sudo apt-get install apache2

okay here you installed Apache on your computer.

now what? PHP I think

run the following commands in your terminal one after the other.

sudo apt-get install php5
sudo apt-get install libapache2-mod-php5

these will install php and the mod_php for Apache,

then restart your webserver, use the following command,

sudo /etc/init.d/apache2 restart

Now you have installed PHP and Apache, okay lets do install MySQL use the following command to do it.

sudo apt-get install mysql
sudo apt-get install php5-mysql

now again restart your webserver and all wil run good.

is this post useful? any comments highly appreciated.

12 April, 2009

we opened a new website for open source

On the very first post I wrote about the twitter module on my blog here, I mentioned that the team at whynotonline.com including me; are planning to open up a new website for the open source contributions we do. As I mentioned we agreed to use the URL http://open.whynotonline.com for the website.

I did the designing and the coding for the website, and Dasun my best friend and my business partner filled the website with content. As being the owners of the company we had to do some extra work on the website and had to be awakened for a couple of nights.

The goal of the website is that to make people more passionate on open source software. Open source has been helping whynotonline.com to be successful in business, we spend 20% of our time in open source developments. Though whynotonline.com is new to the web development business (10 months) it has done a lot, and has managed to build a huge client base which includes clients from all around the world. My thought is that such a website will help the developers at whynotonline.com to build up good profiles individually, as well as the company will benefit from it too.

At last the website is for you all, and we will be really happy to see more and more traffic to the website. Have a look http://open.whynotonline.com

10 April, 2009

An editor which make me happy

I am using Ubuntu for sometime now, but still I was feeling a bit unhappy about the editors I had to use for PHP, HTML, CSS editing. Before using ubuntu I used MS Windows, but it felt that I have to say goodbye to windows, after the launch of Windows Vista. To be frank at that moment I couldn't spend money for a high performing computer. So what I did is that I though of using Ubuntu. Ubuntu has been serving me for about two years now. And I dont have any complaint towards Ubuntu.

But there was one thing I really missed when using Ubuntu, it was Adobe Dreamweaver, I used Adobe products including Adobe Dreamweaver for all sorts of web development. I could use it on Wine; but I was not that interested in that, because I didnt like the userinterface which I got, and there were some performance issues.

I tried a few editors, actually I am not that much interested to use IDEs. For me what I think is that IDEs are good for a person who is having a super fast computer. I used Quanta Plus, I was a bit happy about it. But again with time I used gEdit. Which is the defalult editor for Ubuntu. It is a very simple editor. But I had to spend some more time to keep my codes clean and tidy, with indentations and all.

Anyway now I have found an editor which suites me a lot, and which can serve all my needs. It is Komodo Edit. it has a lot of features including,
  • Multilanguage support
  • Code folding
  • Code reuse
  • Multi document editing
  • Syntax coloring
  • Syntax checking
Alone with these features, I am really happy to use it for my developments.

Before writing this post I did a lot of searches on google to find out what is the best, and what other developers feel about different editors. Now I thought that I must write something about my favorite editor, so that others can try it.

Good luck!

08 April, 2009

More into Open Source

The Sinhala and Hindu New year is close by, I got leave from the 9th April to 20th April. This is going to be some good time for me, to take my head off from the office, and the stuff I do at whynotonline.com, and I can head into some more open source related work. I have several things in mind, I wrote a proposal to the GSoC 2009, its for WordPress, to make a new versioning system for templates. But still I am waiting for the results, they have to approve it anyway. And my other plan is to work on a new module for SilverStripe Open Source CMS, which enables to provide booking facilities. This can be a very highly useful one, as my wish is to make this useful for Hotels, Cabs, etc., etc.

With these plans in mind I will be writing down my sketches about the booking module, as well as I am planning to read about various versioning systems, such as SVN, CVS, and GIT (which I use at whynotonline.com) for help my GSoC application.

Wow at last, when I take a look at my plans, all my 10 days are packed up. I will be going home, which is in the upcountry Sri Lanka, (on the mountains ;) ) and spend some time with my mom, dad, brother, and sister. Hope to finish most of the work possible from home anyway.

Also with all these heaps of work I will be spending sometime with my girl too, to please her.

Wish you a very happy and peaceful new year!!!!

06 April, 2009

finally the twitter module got in to the module directory

Today again is a special one for me. If you are a frequent reader of my blog you might have seen that I wrote some posts about the twitter module. Today I managed to catch Andrew at SilverStipe Open Source CMS, and got his approval to have the module on the SilverStripe website.
Now you can see the module on the pre-release list of the SilverStripe website, click here to follow it. And this is the link for the modules page.

I got some comments for the last post I wrote on adding an RSS feed for the module, I will be working on that too while preparing the codes for the next release.

Hope this module will be a useful plug-in to your website. Welcome to use it and for any comments.