eHow launches Android app: Get the best of eHow on the go.

How To

How to setup Apache, PHP, and MySql on Ubuntu

Member
By ottodashadow
User-Submitted Article
(0 Ratings)

Apache is a web host program which will serve web pages to the users who connect to your site. PHP is a scripting language that can be used to create dynamic pages that a user can go to using your apache server. And finally, MySql is a database program similar to Microsoft Access.

Difficulty: Moderately Easy
Instructions

Things You'll Need:

  • A normal installation of Ubuntu Linux
  1. Step 1

    Open up a terminal window, and make sure your logged in as a root user. You'll know that your running as the root user when the line reads "root@[...]~#:" where the "[...]" are the name you gave your system at the setup time.

  2. Step 2

    Now that you are running as the root user now all you have to do is run a couple commands.

    TYPE: sudo apt-get install mysql-server-5.0 [ENTER]

    This will download and install the MySql system.

  3. Step 3

    TYPE: sudo apt-get install apache2 [ENTER]

    This will download and install the Apache2 HTTP Server, which is the program the client user is actually connecting to. This program handles everything.

  4. Step 4

    TYPE: sudo apt-get install php5 libapache2-mod-php5 [ENTER]

    This will download and install the PHP5 Scripting language and also the apache mod which allows Apache to handle .php files.

  5. Step 5

    Finally you need to restart Apache.

    TYPE: sudo /etc/init.d/apache2 restart [ENTER]

    You could also just restart you computer if this command doesn't seem to work right.

  6. Step 6

    This step is optional, but it makes it easier to manage your MySql databases.

    TYPE: sudo apt-get install phpmyadmin [ENTER]

Tips & Warnings
  • Access your new local website by going to `http://localhost/` in any browser
  • Access your PHPMyAdmin by going to `http:/localhost/phpmyadmin/` in any browser

Post a Comment

Post a Comment
  • Have you done this? Click here to let us know.
I Did This

Related Ads

Computers
Alexia Petrakos,

Meet Alexia Petrakos eHow's Computers Expert.

Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

eHow Computers
eHow_eHow Technology and Electronics