Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

I recently installed Ubuntu 8.10 Desktop edition on my computer. Actually I should have installed Ubuntu Server edition as it comes with pre-configured apache, MySQL and PHP. But to install Ubuntu server edition meant re-installation and that is what I was trying to avoid. Instead I decided to install Apache, MySQL and PHP on my Ubuntu Desktop Linux. Here is how I did it.
I opened up a terminal and gave instruction to install Apache web server
s
udo apt-get install apache2

After apache web server was installed properly, I installed PHP by typing following command in the terminal.

sudo apt-get install php5 libapache2-mod-php5

After installing PHP I installed MySQL with following instruction

sudo apt-get install mysql-server

While installing MySQL I was asked to enter root password and then to confirm it.I did that and MySQL too got installed on my computer.


This is how, I was able to prepare my computer for LAMP (Linux, Apache,MySQL,PHP) based web development.


If you are a programmer, developer or a person just learning to program in C and C++ you would require the compilers for C and C++. It's very easy to install compilers for C and C ++ on Ubuntu Linux. Just type the following command,

sudo aptitude install build-essential

As you are using sudo command you will be asked to enter your password. So just enter your user account password and C & C++ compilers will be installed.

To invoke C compiler you have to use cc or gcc command from the command prompt and to invoke C++ compiler you have to use g++ command.


 

Original Blogger Template | Modified by Blogger Whore