Installing LAMP Stack in Ubuntu

Hai friends. Lets Setup the LAMP-Linux Apache MySql and PHP in Ubuntu Linux 🙂

First of all Install Ubuntu Linux in the Machine you wish to Install the LAMP Stack.

Step1: Hey Step 1 in setting LAMP Stack is installing a Linux Distro and by now you might have completed the  first step 🙂

Considering the installation as a fresh one.

First update the distro for that open a terminal and give the following commands :

$sudo apt-get update

The above command will fetch the softwares list from the Ubuntu repositories.

Next

$sudo apt-get upgrade

The above command will update your Ubuntu OS to date.

Step2:

The Second step is to install APACHE WEB SERVER. for that :

$sudo apt-get install apache2

this will install apache server on your machine

You can control apache using

$sudo service apache2 start/stop/restart

Step3:

The next step is MYSQL DATABASE SERVER for that:

$sudo apt-get install mysql-server mysql-client

while installing the server it will prompt for a password for mysql server. Enter is twice and continue.

You can control mysql server by

$sudo service mysql start/stop/restart

Here you can install mysql-gui-tools-common which will give you

1.mysql-query-browser

2.mysql-administrator

which will be of great help 🙂

step4:

Now the last step is to install php.

$sudo apt-get install php5

and everything is done. 🙂

Now goto /var/www and create a test.php

<?php

phpinfo();

?>

and open a browser and navigate to http://localhost/test.php

it shows the phpinfo page and the LAMP Stack is Ready 🙂

Installing Google Chrome on Fedora Core 8

EXPLANATIONS WILL BE UPDATED LATER: or TRY http://macles.blogspot.com/2009/05/google-chrome-chromium-for-linux.html

Hai friends we are going to install Google chrome(chromium) on fedora core 8. Those who had tried to install would have found various dependency problems. Now with the help of the above link i am going to explain the installation procedure .Chromium requires more recent libraries than already installed, and yum cannot update them due to unresolved dependencies. But you can download and extract the required libraries and make Chromium use them, without interfering with the already installed system libraries.

1. First of all become root using su.and enter password when prompted

$su

.2. First step is to create a folder for working

#mkdir -pm 777 /opt/chrome-linux/libs

3. Now navigate to the folder created

#cd /opt/chrome-linux/libs

4. Now download some rpm’s and install it.

#wget ftp://archive.kernel.org/fedora-archive/updates/8/i386.newkey/nspr-4.7.3-1.fc8.i386.rpm\ ftp://archive.kernel.org/fedora-archive/updates/8/i386.newkey/nss-3.12.2.0-1.1.fc8.i386.rpm\ ftp://archive.kernel.org/fedora-archive/updates/8/i386.newkey/nss-tools-3.12.2.0-1.1.fc8.i386.rpm

5. Now install the downloaded packages and remove those rpms from the current directory either by deleting or copying it for later use.We here just delete those files

#rpm -Uh *rpm

#rm -f *rpm

6. Now get some more rpm’s

wget http://kojipkgs.fedoraproject.org/packages/gcc/4.3.2/7/i386/libstdc++-4.3.2-7.i386.rpm http://mirrors.kernel.org/fedora/updates/10/i386/pixman-0.12.0-3.fc10.i386.rpm http://mirrors.kernel.org/fedora/updates/9/i386.newkey/pango-1.20.4-1.fc9.i386.rpm http://kojipkgs.fedoraproject.org/packages/cairo/1.6.4/1.fc9/i386/cairo-1.6.4-1.fc9.i386.rpm

for i in `ls *rpm`; do rpm2cpio $i | cpio -idv; rm $i; done

7. Now move the new libraries to the root of the installation

#cp usr/lib/* $PWD

#cd /opt/chrome-linux/

#mv libs/* $PWD

8. Now create a custom launcher.

cat << EOF > /opt/chrome-linux/chrome.sh
#!/bin/sh
export LD_LIBRARY_PATH=/opt/chrome-linux/libs:$LD_LIBRARY_PATH
/opt/chrome-linux/chrome-wrapper
EOF

9. Recheck the script whether the item in bold displayed above is there or not

10. Now apply execute permission to the script

#chmod 755 /opt/chrome-linux/libs/chrome.sh

11. Download Chromium and extract it.

wget -N http://build.chromium.org/buildbot/continuous/linux/LATEST/chrome-linux.zip

sudo unzip -o chrome-linux.zip -d /opt
sudo chown -R user /opt/chrome-linux

12. Remember the user shown in bold is the username of the local user

13. Now create a custom launcher in dekstop with

name:Google chrome

location:/opt/chrome-linux/chrome.sh

or

in terminal just excecute

$/opt/chrome-linux/chrome.sh