PHP

Ubuntu 8.10 (Intrepid Ibex) Apache-PHP-MySQL Server

Simple installation of Apache, PHP and MySQL in Ubuntu 8.10 (Intrepid Ibex).

  1. Optionally, install SSH Client and Server (for remote access to this server)
    sudo apt-get install ssh
  2. Install Database Server
    sudo apt-get install mysql-server
  3. Install Apache2 web server
    sudo apt-get install apache2
  4. Install PHP5
    sudo apt-get install php5 libapache2-mod-php5
  5. Install PHP5-MySQL support
    sudo apt-get install php5-mysql
  6. Restart Apache
    sudo /etc/init.d/apache2 restart

Ubuntu 8.04 LTS (Hardy Heron) Apache-PHP-MySQL Server

Once again, here's my updated simple installation of Apache, PHP and MySQL in Ubuntu 8.04 LTS (Hardy Heron) Server.

  1. Install SSH Client and Server (for my remote access)
    sudo apt-get install ssh
  2. Install Database Server
    sudo apt-get install mysql-server-5.0
  3. Install Apache HTTP Server
    sudo apt-get install apache2
  4. Install PHP5 and Apache PHP5 module
    sudo apt-get install php5 libapache2-mod-php5
  5. Restart Apache
    sudo /etc/init.d/apache2 restart

Ubuntu 7.04 : Apache-PHP-MySQL Server

Here are the packages you need to install to make your Ubuntu 7.04 as webserver with PHP and MySQL support.

  1. Install Apache:
    sudo apt-get install apache2
  2. Install PHP5:
    sudo apt-get install php5-common php5 libapache2-mod-php5
  3. Install MySQL:
    sudo apt-get install mysql-server mysql-client
  4. To use MySQL with PHP:
    sudo apt-get install php5-mysql

PHP5 for CentOS 4.4

I’m using right now CentoS 4.4 and PHP5 is not yet part of the rpm package. I can always download the source and compile it or search some pre-pack PHP5 RPM and install it.

Alternatively, here’s how to do it using the good old yum one liner command.

  1. Edit CentOS-Base.repo
    vi /etc/yum.repos.d/CentOS-Base.repo
  2. Enable CentOSPlus by changing:

    #additional packages that extend functionality of existing packages
    [centosplus]

Dapper Drake Update: Ubuntu Apache-PHP-MySQL Server

Many people found my original post regarding this as "the quick help" how to install Apache, PHP and MySQL in Ubuntu; now with Dapper Drake I'll make it more ultra-quick :)

Just type this one liner in your Ubuntu console and you will have all them up and running:

$ sudo apt-get install mysql-server apache2 php5 php5-mysql libapache2-mod-php5

RHEL4 Apache-PHP-MySQL Server

After the default Minimal installation of Redhat Enterprise Linux 4, here are the packages I need to install to have a Apache-PHP-MySQL services running.

  1. Database Server
    # yum install mysql-server
  2. Apache HTTP Server
    # yum install httpd
  3. PHP for Apache HTTP Server
    # yum install php
  4. MySQL for Apache HTTP Server
    # yum install php-mysql

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
Syndicate content