Ubuntu Apache-PHP-MySQL Server

After the default normal installation of Ubuntu, here are the additional steps I need to do to have a Apache-PHP-MySQL Server.

  1. SSH Server (for my remote access)

    sudo apt-get install ssh
  2. Database Server

    sudo apt-get install mysql-server
  3. Apache HTTP Server

    sudo apt-get install apache2
  4. PHP for Apache HTTP Server

    sudo apt-get install php4
  5. MYSQL for Apache HTTP Server

    sudo apt-get install libapache2-mod-auth-mysql
    sudo apt-get install php4-mysql

Note: Ubuntu 8.04 "Hardy Heron" update is here.

Comments

red hat mail server

i want the all basics of the mail server plz help me out

GD library

Don't forget to install the GD library:
sudo apt-get install phpX-gd

Clear & Concise!

Thanks -- just what I was looking for. I'd skipped over the last two steps and firefox kept asking me if I wanted to open or save the php file...

m

Very good instructions. I

Very good instructions. I replaced php4 with php5 everywhere since some of my scripts need that function.

/Bob Cahn

Installed LAMP after your comments

It went all OK until I did something wrong. From then on, I can`t "sudo mysql" beacause it answers me "access denied for user 'root'@'localhost' USING PASSWORD: NO)". If I only "mysql" the answer is "access denied for user 'eduardo'@'localhost' USING PASSWORD: NO)".
Can you help me?
Thanks.

Just type like this: $ mysql

No need for sudo, just type like this:
mysql (If you don't have password in mysql)

Or

mysql -u root -p (If you have root's password)
mysql -u eduardo -p (If you have eduardo's password)

Hope this helps.

The one here is better...

The one here is better... shows you how to set up a SSL site as well.

http://blog.st0rage.org/

Thanks.

Installed Ubuntu on my USB key a while back. Thanks to your instructions, it is now a PHP/Mysql development environment. All I had to do was change "php4" references to "php5".