Posts

Showing posts with the label ubuntu

What is the difference of apt-get update and apt-get upgrade

Image
what does “ sudo apt-get update ” does?? it obtains the information and download the package lists about what updated package versions are available from the source repositories.It’s very important to run this command before installing any packages , and necessary to run it to install the latest updates. Then what does “ sudo apt-get upgrade ” does?? It will download the newer versions of packages that are existing in the ubuntu machine , if it knows the newer versions in the mean of “ sudo apt-get update”

How to install LAMP on Ubuntu

Image
Install Apache : open up the terminal and run the following commands. sudo apt-get update sudo apt-get install apache2 this should install apache on your machine. what does “ sudo apt-get update ” does?? what-is-the-difference-of-apt-get-update-and-apt-get-upgrade Install MySQL : run the following command on the terminal. sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql while running this you would be asked to set a root password. after installing MySQL it has to be activated.run the following command to do so. sudo mysql_install_db then run the following MySQL set up script sudo /usr/bin/mysql_secure_installation when running above script you will be asked several questions.If you want you can change root password here.for other questions better to go with the default options. Now only one step is remaining.it is to install PHP. Install PHP : Open the terminal and type the following command. sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt if will be use...