Joomla:How to move your site to a different server?


Most of you may have created your Joomla site in the localhost and you may be thinking of the way to move it to a live server on the web.

This also applies when you want to move the site from a one live server to another one.

The first thing you need to do is to upload the files to the new server. If your new web host give you a cPanel this is damn easy. (Free web hosts like x10hosting give you a cPanel for controlling your hosting account).

If you have the ability of extracting a compressed file in the server you can transfer your files very easy.

Note! Only *.zip, *.Gz, *.Bz2, or *.tar file types can be extracted in cPanel.

You can use either FTP or the online file manager of your hosting control panel to upload the files. When uploading files be careful to upload either to www folder or to a folder like public_html.

However if the new domain is mapped with a folder inside the public_html folder you need to upload the files there.

Eg: Main domain of my hosting account is sanjaya.me. So if i need to setup a site for sanjaya.me I would upload the files to public_html directly.

If I have created a sub domain jom.sanjaya.me which is mapped with the public_html/jom folder I must upload the files to that jom folder.

To upload the files via FTP you can use an FTP client like FileZilla.

(If you don’t have the ability of extracting a compressed file on the server this is the best way you can upload all your files.)


Here you can fill the ftp Host, ftp username and ftp password and connect to the server. You can enter into the correct server folder in the right side and drag and drop the files to it from the left panel which shows the files in your pc.

( You may get the FTP details when you create your hosting account for the first time. Or you may create additional FTP accounts through the page you get when you click FTP accounts button in the cpanel.)

Else you can use the online file manager. Below you see the file manager of cPanel.

File Manager

Here you see an Upload button where you can upload the files one by one. (nearly impossible to upload thousands of files one by one, but you can upload a compressed file using this way as well as using ftp).

After uploading a compressed file you can extract the file by checking the checkbox for the compressed file and clicking on the extract button.

OK somehow you have now uploaded the files successfully.

Then what you have to do is to get a database prepared for the Joomla site.

First you need to get a database dump of your site.

Go to your localhost’s phpMyAdmin and select your database. Then press export.

Export DB

Better you check the check boxes which I have marked in orange in the above picture. You may need that when you are importing a dump to a DB where you have data already.

You can press the GO button after selecting a file type.

Now you’ll get a backup of the database as a file.

What you have to do now is to create a database in your live server. In cPanel you can use MySql DataBase Wizard for this. There you can enter the name of the DB, a username and a password. And at last you’ll be asked about the permissions which you must give to the newly created DB user. You can check all the checkboxes there.

Now you have created a DB and a user for it.

Go to phpMyAdmin in your live server, select your database and go to the import tab. There you can see a browser button.

(You may see something like this :
Imported file compression will be automatically detected from: None, gzip, zip. So it means you can upload compressed formats too. Else you need to upload the .sql file directly.)

You can locate the db dump you got from your local server and press GO. So now the data will be imported to the database in the live server.

Now what you have to do is to configure your joomla site to connect to this database. Go to the place where you uploaded the files and find the configuration.php file.
In cPanel File Manager you can use the online editor ( you can see an Edit button on the top). Or you can download the file, edit it and upload again.
Edit the following things in the way that suits with your new DB

var $host = ‘localhost’;
var $user = ‘root’;
var $db = ‘myoldDB’;

var $password = ‘myOldPass’;

$host can be kept same as localhost most of the time.

And you may change the following ones too.
var $log_path = ‘E:\\Web\\xampp\\htdocs\\jom\\logs’;
var $tmp_path = ‘E:\\Web\\xampp\\htdocs\\jom\\tmp’;

If everything is OK now you may see the site working :)

Go go go and see the frontpage!
However for components like Virtuemart you may need to do more configuration. And file permissions may affect too. I may discuss those things later.
Joomla Logo

Joomla: Localization (post in English)


මෙහි සිංහල පරිවර්තනය මෙතැනින් ලබා ගන්න http://blog.sanjaya.me/how-to-localize-a-joomla-web-site/

You may have seen so many web sites which can me viewed in several languages. You may also think that it is so difficult to create such a site. But doing such a thing is not much difficult.

Presenting your Joomla web site in 3 languages is not a much difficult thing. Joomla can be used with several languages. I used as Trilingual in the title because in Sri Lanka we mainly use 3 languages.

So, we are going to use the popular JoomFish component for this. This is a great component which can be used very easily for localization.

(For writing this article I’m using a Joomla site installed in a folder called jom in localhost)

Let’s first install this component to our Joomla site.



Download the latest stable version here.

Now  in the Joomla Backend (http://localhost/jomdemo/administrator/) go to Extensions>> Install/Uninstal.

Extensions >> Install/Uninstall

Now press Browse button and select the downloaded file. After that press upload file and install. Now JoomFish will be installed.


Now in the Backend menu you’ll see the name JoomFish under components’

Also in the Frontend you’ll see the flag of UK near the search box( If you are using the default template)’


Now we need to download the language packs. Find them here : http://community.joomla.org/translations.html



Install 3 packages, si-LK.installation.zip, si-LK_joomla_lang_admin.1.5.15v1.zip, si-LK_joomla_lang_site.1.5.15v1.zip similar to the above described way.



Install the 2 packages ta-LK_joomla_lang_site.1.5.15.zip, ta-LK_joomla_lang_admin.1.5.15.zip found in the above url.

Now language installation has been completed.

Components >> JoomFish >> Language Configuration ( http://localhost/jom/administrator/index.php?option=com_joomfish&task=languages.show ) හි active යටතේ සිංහල හා දෙමල භාෂාවන් සඳහා Check Box තුළ හරි ලකුණ සඳහන් කර Save බොත්තම ඔබන්න.

Go to Components >> JoomFish >> Language Configuration ( http://localhost/jom/administrator/index.php?option=com_joomfish&task=languages.show ) and check the checkboxes for Sinhala and Tamil under Active, and press Save.

Now in the Frontend you’ll see “Sinhala (Sri Lanka)Tamil” with that above stated flag of UK. We can change the site’s language by clicking on these.

In Sinhala

If you want to show 2 images instead of “Sinhala (Sri Lanka)Tamil”, create two images called si.gif and ta.gif , and place them in the components/com_joomfish/images/flags/ folder inside the folder where we installed Joomla.

Examine the changes in the frontend when we are changing the languages’

You won’t see any changes in Articles and Menu Items. We need to translate them manually.


For this goto Components >>JomFish >> Translation.

In the right side give the language we are going to translate for the listbox “Language”. Let’s select Sinhala’

In the other ListBox (Content elements:) select Menus. You’ll then see a list of available menu items.

Translation Selection

දැනට තියෙන menu items list වේවි.

Click on the link for the menu item “Home”. So you’ll get a page for translation. There under Name you’ll see a box called Translation. Let’s add “මුල් පිටුව” there. Then check the Published checkbox in the right side and press save.

Now go to the frontend and check the main menu.

Menu after translation

Now similar to the picture above, you’ll see what has happened.

Now I’m going to Translate the article “Joomla! Community Portal” into Sinhala.

In the similar way described above select Contents in the Content elements: ListBox. Then in the next view click on Joomla! Community Portal article and Translate in the same way described above.

See below:

After Translating the article

See it is translated :)

Translated the other things in the same way. Good Luck!

(You can find extensions to get the site automatically translated into several languages using Google Translate here : http://extensions.joomla.org/extensions/languages/automatic-translations)

Tell me what you need me to write about soon…..

Sinhala (Sri Lanka)Tamil,Sinhala (Sri Lanka)Tamil,

Once I love you


Once I love you..
I enjoy being with you..

And after some time,

I hate you.
I feel bored being with you.

You force me to close the FaceBook window..
and ask me to go and study..

Only a few people on Gtalk,
May be because of you..

You make everything around me fine..
When I’m inside..

And sometimes….
You confuse all my plans..
I will blame you..
What have you done to me!

When you are always with me,
It makes me annoying..
You don’t let me go anywhere..
You don’t let me do what I want..

And when you are not with me,
I may feel like crying..
I feel uneasy..
It’s too boring..
Without you……….


phpBB is now ASPbb


phpBB is now ASPbb

Postby The ASPbb Team » Thu Apr 01, 2010 4:00 am

The phpBB Team was recently approached by Microsoft and asked to develop a bulletin board system for their .NET platform. This board will power their MSDN Social network and will be released to the community under a freeware license for smaller boards, with commercial licensing options available for larger communities.

With Microsoft’s financial backing, phpBB is proud to announce that development focus is switching to this project, and the phpBB Group is being renamed to ASPbb Incorporated.

phpBB 3.0.7 has already been ported to ASP.NET and phpBB.com has actually been using it for the past several hours (urls are being rewritten to .php files to maintain bookmarks and search engine ranking). Additionally, we are working with web hosts to automatically convert phpBB3 boards to ASPbb 1.0 within the next several days. Boards with greater than 30 users or 100 topics will have ASPbb’s licensing fees added to their hosting bill with their next payment. Those refusing this update will be fined, forcefully converted to ASPbb, and sent an angry letter by our law firm of Dewey, Cheetam, and Howe. We will pursue all such cases to the fullest extent of the Internet Regulatory Code 16.8.16.b.b.

As part of the licensing agreement, MOD and Style authors will need to register for an alteration license from Microsoft. A registration form and payment collection page will be available shortly. These styles and modifications will be sent through a thorough approval process, and we anticipate their availability in the ASPbb store approximately six months after submission.

These changes are intended to help stimulate the ASPbb (formerly phpBB) Community. We believe ASP.NET to be the premier web development platform for the future, and hope the community will help during this transition period.

Thank you,
The ASPbb Team

Taken from : http://www.phpbb.com/community/viewtopic.php?f=14&t=2050855
So sad. Have to pay for phpBB?

දුටු තැන මිල දී ගනු ! Buy at first sight !


බය වෙන්නෙපා මාතෘකාව දැක්කම. කාරුණික ඉල්ලීමක් කරන්නයි හදන්නෙ.

Don’t be amazed seeing the title. Going to do a kind request.







Above are just samples.

UCSC 1st Year අපි, 2010 මාර්තු 28 ‍වෙනිදා පිරිත් පිංකමක් කරන්නයි සූදානම. ඉතින් ඒක‍ට ආධාර එකතු කරගන්න අපි ස්ටිකර් කිහිපයක් ගහල තියෙනවා. හෙ‍‍‍ට හා අනිද්දා ( 06, 07) ලංකාවෙ නගර කිහිපයකදිම මේවා අලෙවි කරන්න සුදානම් කරලා තියෙනවා. අපි හෙට ගම්පහ පැත්තෙත් එනවා. මේ සද් කාර්යයට ඔබ සියලු ‍දෙනා දායක වෙන්න.

තවත් තොරතුරු ලඟදිම කියන්නම්.

We, as UCSC 1st Year students, are organizing a Pirith Ceremony.This is an annual function in UCSC. This time it is planned to hold on 28th March. So we have decided to sell stickers to collect funds for this. Stickers will be sold in major towns in Sri Lanka on 7th and 8th March. We’ll be at Gampaha tomorrow. So invite you all to please join this meritorious deed.

I’ll add more info soon.

FB Notifications in Gmail

මූනු පොතේ වයිරසයක් ? A virus on FB?


Please be careful. Don’t click on suspicious links you get on photo comments.

Seems that some kind of virus like thing is effecting the FB now. It seems that one of my friends has tagged myself in so many of her pics and I got 18 SMS messages one after another. Another friend of mine has got 87 sms and he said he is getting more and more. If you were tagged don’t click on the links in the comments. And don’t click on a link for the so called FB games SIMS 2 or SIMS3.

You also may have at least got the above warning message.


So many people have experienced this . I’ll tell you my experience. When I get the first FB SMS it’s 8.10 pm. And after that I got the same message 17 times one after other. The last message was received at 8.14 pm. It says “<My Friend’s Name> added a photo of you…..” and so on. Then I wondered what this was. However when I came home and checked my mails this is what I saw.

FB Notifications in Gmail

FB Notifications in Gmail

In the above pic there are mails regarding 2 people tagged me in their photos. I first asked one of my friends whether she added a pic of me. She said “nope”. Then I went to my photo gallery.

My FaceBook photos added by others

My FaceBook photos added by others

As she says she had clicked on a link for a FB game called “SIMS 3″ (some people talk about “SIMS 2″ ) which he got from one of her friends at 8 pm today. So after that her friends has got photos tagged themselves in, by her. In the same way I got 18 notifications on my mobile and so many in my email inbox. I have got only 18, but some others has got 50, 87, 159,200 and so on. One of my friends told me that he is getting this thing on and on. And also there are people who had got only 1 image tagged.

The nicest thing is not this. When I checked photos which are said to be added by the above stated person there are nice comments which are said to be added by her.

See this

Photo Comments

Photo Comments

See it clearly : http://blog.sanjaya.me/wp-content/uploads/2010/03/fb4to.jpg

So the incident is clear. This application is prepared to do something unusual. When person “A” enters that application most of A’s friends get notifications saying that A has tagged a photo. And when A’s friends  go and see the photo galleries there are so many photos in “Photos added by others”. And there are so many automatically generated comments too.

And at last I must say that this virus or whatever it is, doesn’t do any harm to your PC. It just tags some friends in FB photos of the person who clicked such a link. So don’t be afraid. Nothing to worry much. Don’t click any suspicious link and also please keep an eye on the photos which are said to be added by others. There may be photos which makes your character into a bad situation, think there’s nothing to explain on that.

And if somebody has clicked the link please remove all the comments and tags which are automatically added (May be erasing the pics is easier :) ). And let your friends know what has really happened before they blame you.

Read these too:



True Friends සැබෑ යහළුවෝ


බලන්න මේ රූප රාමු පෙළ. පුදුම හිතෙන කථාවක් නේද?

අපිට සතුන්ගෙනුත් ගොඩක් ‍දේ ඉගෙන ගන්න ති‍යෙනවා නේද?

See the following video. What a nice story. See, there are so many things for us to learn even from animals.

True Friends සැබෑ යහළුවෝ

I saw this video first in the FB profile of our senior Gayan Malinda Wijewickrama.

මේක ඉස්සෙල්ලාම මම දැක්කෙ අපේ ගයාන් අයියාගේ FB profile එ‍කේ. ඕගොල්ලන්ටත් ‍වැදගත් ‍වෙයි කියලා හිතුනා.

Go to Top