Place to share anything

Free Software, Download, Tips and Tutorials, Cars, Notebook, Review

Hot to Install Apache2 With PHP5 And MySQL Support On Ubuntu Karmic Koala (LAMP)

LAMP is combination between Linux, Apache2, MySQL and PHP5. This combination has been used by many web servers around the world because of its power, and stablity. You don’t have to be an Ubuntu or Linux Master to be capable installing the Apache2. MySQL and PHP5 on Ubuntu Karmic Koala. This tutorial will show you how to install the LAMP server.

1. First open terminal and type “su” to get root privileges.

su

2. Installing MySQL. First we need to install the MySQL database server. Type this command below on your terminal.

 apt-get install mysql-server mysql-client

3. Next you will be asked to provide a password for the MySQL root user – this password is used for the user root@localhost, so we don’t have to specify a MySQL root password manually later.

New password for the MySQL "root" user: <– yourrootsqlpassword

Repeat password for the MySQL "root" user: <—yourrootsqlpassword

4. The next step is installing the Apache2 server.

 apt-get install apache2

5. Wait until the installation process finished. Then to test if the web server is up and running, open your browser and type your server ip address. For example my server (computer where you install LAMP) IP address is 192.168.1.2, then I type 192.168.1.2 on the browser. If its going right, you will see this kind of result.

Apache’s default document root is /var/www on Ubuntu, and the configuration file is /etc/apache2/apache2.conf. Additional configurations are stored in subdirectories of the /etc/apache2 directory such as /etc/apache2/mods-enabled (for Apache modules), /etc/apache2/sites-enabled (for virtual hosts), and /etc/apache2/conf.d.

6. The last thing is installing PHP5 on Ubuntu Karmic Koala. Here are the commands.

 apt-get install php5 libapache2-mod-php5

the command above will install PHP5 and Apache PHP5 modules. Then the apache2 must be restarted to take effect.

 /etc/init.d/apache2 restart

7. Basically LAMP installation is finished and your web server should be up and running.

Adopetd from this post.

keywords;Install LAMP on ubuntu, install apache2 on ubuntu karmic koala, apache-karmic koala

Incoming search terms for the article:

  • Share/Bookmark

Related posts:

  1. How to Install Luminance HDR Software in Ubuntu Karmic Koala This tutorial will guide you to the installation of Luminance,...
  2. Install and configure Apache web server in Ubuntu Server Apache is a modular web server, which means that the...
  3. Install Audacity in Ubuntu Karmic Koala Audacity is a free and open source software for audio...
  4. How to install Banshee media Player in Ubuntu Karmic Koala This is tutorial of installing Banshee Media player in...
  5. How to install dropbox on Ubuntu Karmic Koala This tutorial will show you how to install DropBox 0.61...

Related posts brought to you by Yet Another Related Posts Plugin.

One Response to “Hot to Install Apache2 With PHP5 And MySQL Support On Ubuntu Karmic Koala (LAMP)”

  1. [...] original here: Hot to Install Apache2 With PHP5 And MySQL Support On Ubuntu … By admin | category: ubuntu install | tags: gis, linux, windows, windows-operating | [...]

Leave a Reply