How-to: Setup LAMP on Ubuntu 10.04

Here's a lengthy yet simple procedure that describes how to install LAMP server on Ubuntu 10.04.

Installing Linux Apache MySQL and PHP, as what LAMP stands for, is described here. Since We've mentioned that we're installing it on Ubuntu 10.04 which is a linux, we're done with the first part. We will thus install Apache MySQL and PHP here.

Installing Apache

Open the Terminal and type the following.

sudo apt-get install apache2


Now it prompts for your password. Enter and press Return. Apache will be installed.

Testing Apache

Open any web browser and type the following in the address bar.

http://localhost/


It should open up the test page which must say - "It Works!". If you aren't getting that, then something's wrong and repeat the installation procedure again.

Installing PHP

Open up the Terminal again (Applications -> Accessories -> Terminal) and type the following line (or just copy-paste this).

sudo apt-get install php5 libapache2-mod-php5


php5 is your PHP engine and libapache2-mod-php5 is a library file that enables apache to recognize php scripts.

Testing PHP

In order to test PHP you should write a PHP script in the /var/www/ directory. Here's a quick guide to write and run a php script.

Open up a Terminal again and type the following.

sudo gedit /var/www/phptest.php


A editor opens up. Copy paste the following simple program.

It should open up the php information sheet which is something like this.


If you can see this then you're done with Apache and PHP installation.

Installing MySQL

Installing MySQL is little troublesome and may go awry. The following guide is pretty perfect and if anything goes wrong and doesn't act the way it is supposed to be then just comment here and I can help you out.

Open up the Terminal and type the following :

sudo apt-get install mysql-server


This should install the mysql-server.

At the end of the installation it asks you to set a password for the mysql running on your local system. Set it.

Now you can open MySQL in command line by typing the following in the command line (terminal).

mysql -u root -p


It requests your mysql password now. Enter and press return to enter the mysql prompt. If you can see the mysql prompt then you've successfully installed mysql.

phpMyAdmin is a GUI to the MYSQL and can be used for easy creation of databases. To install phpMyAdmin Copy/Paste the following in the terminal.

sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin


Now the last thing is to get your PHP working with MySQL and for that you've to edit a file called php.ini. Here's how.

Open the terminal and type the following.

gksudo gedit /etc/php5/apache2/php.ini


A file in an editor opens. Search for this line

;extension=mysql.so


And edit it to this

extension=mysql.so


(we've only removed the semi colon). Save and Exit.

Now restart apache

sudo /etc/init.d/apache2 restart


That is it. LAMP is set up on your Ubuntu Linux Machine. :)

PS: If you find any problems anywhere in this guide then please comment on the post. I will be glad to help.

Online Buffered audio/video[Microsoft Windows]

You all have watched several online videos in youtube, google and etc... and when you close that audio/video and again want to play the same audio/video, the audio/video has to buffer again, which is a waste of internet usage. If you want to download the audio/video which u heard/watched, you should use some softwares or the applications to download that audio/video. But have you ever noticed that WINDOWS copies the audio/ video which is being buffered somewhere in your computer hard disk and thus the browser plays the audio/video from the copied file?  Yes, here is a trick to copy the buffering/buffered file to some folder and watch it how much ever time as you wish without internet.  All the browsers supports this but i have given the description by making use of GOOGLE CHROME  web-browser.




  • First go to CONTROL PANEL, then FOLDER OPTIONS.

  • Click on VIEW and select "SHOW HIDDEN FILES AND FOLDERS-On" option and scroll little down and de-select "HIDE PROTECTED OPERATING SYSTEM FILES (RECOMMENDED)"

  • Click on APPLY and then OK.

  • Now go to { WINDOWS XP USERS } " C:\\Documents and Settings\\YOUR_ACCOUNT_NAME\\Local Settings\\Application Data\\Google\\Chrome\\User Data\\Default\\Cache "

  • { WINDOWS 7 or VISTA USERS } "C:\\Users\\YOUR_ACCOUNT_NAME\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Cache "   --{ Thanks for RITESH }


Here, YOUR_ACCOUNT_NAME should be replaced by your windows account name.


Now you can see a lot of files.




  • Just right click and select the VIEW option DETAILS and ARRANGE ICONS BY option by SIZE.

  • Now scroll down.  There you can see some files with larger size.

  • Just go on hearing/watching several files and you will find a your buffered file.  Just copy that file to some other drive and view how much time ever as you wish.


♣ THIS TASK SHOULD BE DONE BEFORE YOU CLOSE YOUR AUDIO/VIDEO URL IN WEB BROWSER 


Thank you :) :)

Create a Web template within minutes

I guess you all have a dream of designing you our template for your website or blogs but to design, you should learn HTML, CSS or PHP. How can you design you website template on your own without learning anything and that too only within minutes?   Here is a fabulous Online Website designer named CoolTemplate which allows you to create a template of your own with no HTML, CSS or PHP knowledge.



CoolTemplate allows you to create and download:




  1. HTML templates

  2. WordPress templates

  3. Joomla templates

  4. Microsoft ASP.net framework


Cool Template provides following features:-




  • Online web template designer.

  • Use cool drop shadows, glow effects and gradients.

  • Create fancy page borders with alpha transparencies.

  • Upload your own custom page backgrounds, textures or logo.

  • Customize header, menus, buttons and widget blocks.

  • Design quickly with fast and responsive AJAX technology.


Thank you for reading the post :)

Use Google Free Space as your Hard Disk

As you all know that our hard disk can be affected by viruses and can harm our computer and it may also make changes or corrupt our documents.  We are very afraid of these things. What if we get a space where we can keep our documents and files and be very sure about the security? Nice stuff right??  For this purpose, Google has come up with Google Hard Disk by which we can use/access the Google Hard Disk by logging in from our Gmail Username and Password.

This service is made available for the users by the software application named GMail Drive Shell Extension.

To download file, click here.

Now install it and Login from your Gmail Username and Password.


This Google will provide 7400+ Mb free space and Later You will be charged some $$ to extend the free space.

Thank you :)

Google Voice and Video Now On Linux

The most awaited service from GOOGLE for linux platform has been launched now :)   GOOGLE VOICE & VIDEO CHAT.


This service is available for UBUNTU and Debian-based Linux.  Google has plans for RPM support in the “near” future.  Google is making its services available for Linux platforms too and hence there will be lot of improvement in the future and Linux will turn out to the most widely used operating system in the near future.  All the applications will be available for Linux platform too :)


Click here to download. :)


Thanks to GOOGLE for making this awesome service available for Linux platform :) :)

Cheapest 35$ tablet comes from India


India dazzled the world once by bringing a 2000$ car (Tata Nano) and now it strikes back with a 35$ tablet PC. IITians came together to build this revolutionary 35$ tablet and tagged as a necessity for students of India.


India aims to provide this tablet to the students of india and is currently searching for a company ready to mass manufacture this product. Kapil Sibal also said it at a news conference that further R&D may reduce its cost to below 20$. It has a ebook reader, a webcam, video player, preloaded educational softwares, 2GB RAM , wifi connectiviy and touch-stylus interface. It also has slots for MicroSD card, SIM card, a video output and a mini USB port as well. Now that's feature rich for 35$.



The 35$ laptop is a no-profit-no-loss product aimed at boosting Indian education. It is not intended to compete with Apple iPad or Amazon Kindle. In the retail market, there will be added taxes and the cost may be a little more than 35$. It is built by Indians (IITs), aimed for the development of India but I still have no idea why it is called 35 'dollar' laptop.


Here's the episode of NDTV gadget Guru.










Install Joomla in Ubuntu

Prior to the installation of joomla, we have to install "apache" server.  Why do we need apache server? :) Apache is the open source freely available software. It is platform independent i.e it works on all Operating systems such as Unix, GNU, FreeBSD, Linux, Solaris, Novell NetWare, Mac OS X, Microsoft Windows :) So, this web server is majorly used.


Well, first we should install this. This can be installed by Opening the Terminal (Applications > Accessories > Terminal).  Then type the following in terminal.    sudo apt-get install apache2.   The Terminal will then ask you for you're password, type it and then press enter.


Testing Apache:-




  • Open up any web browser and then enter the following into the web address. http://localhost/

  • Now you will see a message saying "It works!" , congrats to you!


Now we have to install PHP. Type the following in terminal.


sudo apt-get install php5 libapache2-mod-php5


This will install PHP.  Now we have to restart our apache server.  This is done by entering the following in terminal.


sudo /etc/init.d/apache2 restart


Testing PHP phase:-


In the terminal copy/paste the following line.


sudo gedit /var/www/testphp.php


Copy/Paste this line into the phptest file.   <?php phpinfo(); ?>


Save and close the file.


Now open you're web browser and type the following.


http://localhost/testphp.php This will open a file which is in blue color and this shows that php is configured.


Now we are done with Apache and PHP :) ;)


Install MySQL:-


Type the following in terminal.    sudo apt-get install mysql-server


Now open a file my.cnf by entering the following command in the terminal.


gksudo gedit /etc/mysql/my.cnf


Change the line  bind-address = 127.0.0.1 to bind-address = localhost


Enter mysql -u root -p in terminal.


Now you will be shown "mysql>" prompt. Enter


SET PASSWORD FOR 'root'@'localhost'=PASSWORD('yourpassword');

[change yourpassword to a password of your choice.]

phpMyAdmin is an easy tool to edit your databases. We can install this by entering in the terminal   sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin

Enter gksudo gedit /etc/php5/apache2/php.ini

Change this line  ;extension=mysql.so to  extension=mysql.so

Now just restart Apache   sudo /etc/init.d/apache2 restart

Now, its time for the installation of joomla :)


First download the package of joomla from their own site for free. http://www.joomla.org/download.html


Now extract the files to some folder.  Now open your terminal and enter the following command.  sudo -R 777 /var/www


After doing this, browse to /var/www folder and create a new folder with the name joomla(You can give any name) and copy the extracted files to this folder.  Now open your browser and in address bar, type as http://localhost/joomla and then press enter.


Now select your language and click on next.  Now just click "Next" in 2nd and 3rd page too.  In 4th page, you need to enter the information. The information is as shown below. In the picture, you can see the database name as srikanth1. This is done by a entering the command mysql -u root -p in terminal and then enter you mysql password.  Now "mysql>" prompt will be shown.


Now enter mysql>create database srikanth1; and then press enter.  Press cntl+z or type mysql>exit. Now we have created a database with the name srikanth1. This name is given in the joomla installtion too.


In FTP configuration page, just click on "Next".


In the "Main Configuration" page, enter the details and in this page, you can see one option called "Install sample data". This installs the sample content to your site. Sample means an example like thing and if you install this, you will be able to understand how exactly the site is developed and if you do not want to install Sample data, then no problem, Just enter the information in the fields and click on "Next".


Now the last page names "Finish" says PLEASE REMEMBER TO COMPLETELY
REMOVE THE INSTALLATION DIRECTORY
.  To do this, go to /var/www/joomla and delete the folder named "Installation".


Now open the browser and type http://localhost/joomla/administrator and here type the username as "admin" and password which you provided in the "Finish" page :)


That's it :)  You are logged in to joomla and you are ready to explore yourself with joomla :) :)


Any problems regarding the installation can be posted in comment panel or you can mail me to srikanth.gundaz@gmail.com


Thanks you :) ;)