Install and Configure PHP on Ubuntu 14.04

Install PHP

sudo apt-get -y install libapache2-mod-fastcgi php5 php5-fpm php5-cli php5-curl php5-gd php5-imagick php5-mcrypt php5-mysql php-apc php-pear

Open Source Software:

phpMyAdmin Debian 5

How to install phpMyAdmin on Debian 5

  1. Install phpMyAdmin
    apt-get -y install phpmyadmin
    1. Select the apache2 web server to be automatically configured to run phpMyAdmin.
  2. Restart the Apache Server
    /etc/init.d/apache2 restart

How to test phpMyAdmin on Debian 5

  1. Visit http://localhost/phpmyadmin in your local web browser.
    Note: You should see the phpMyAdmin login page.

MySQL Debian 5

How to install MySQL on Debian 5

  1. Install MySQL
    apt-get -y install mysql-server
    1. Enter and verify a root password.

How to configure MySQL on Debian 5

  1. Run Debian's MySQL Secure Installation tool:
    1. Enter the current MySQL root password.
    2. Change the root password: n
    3. Remove anonymous users: y

Open Source Software:

PHP Debian 5

How to install PHP on Debian 5

  1. Install PHP
    apt-get -y install php5 php5-cli php5-curl php5-dev php5-gd php5-mcrypt php5-mysql php-pear

How to configure PHP on Debian 5

  1. PHP Apache configuration
    1. Open the PHP configuration file
      gedit /etc/php5/apache2/php.ini
    2. Increase PHP script max execution time
      Replace max_execution_time = 30 with max_execution_time = 120
    3. Increase PHP script max upload size

Open Source Software:

Apache Debian 5

How to install Apache on Debian 5

  1. Install Apache Sever
    apt-get -y install apache2

How to configure Apache Server on Debian 5

  1. Enable mod_rewrite:
    a2enmod rewrite
  2. Enable mod_ssl:
    a2enmod ssl
  3. Restart apache:
    /etc/init.d/apache2 restart

How to test Apache on Fedora 13

  1. Visit localhost in your web browser
    Note: You should see an It works! message.

Open Source Software:

OpenSSL Debian 5

How to install OpenSSL on Debian 5

  1. Install OpenSSL
    apt-get -y install openssl

How to configure OpenSSL on Debian 5

Comming soon...

Open Source Software:

Configuring Debian 5

How to configure Debian 5

*Disclaimer:  This configuration of Debian 5 is for use in a development environment only and is not recommended for production use.

Open Source Software:

Install Debian 5

How to install Debian 5

  1. Download the Debian 5 Installation ISO of your choice.
    1. Visit the Debian 5 download site:
    2. Click the Official CD/DVD images of the "stable" release link
    3. Click the link for your architecture
    4. Click the debian-506-*-DVD-1.iso link to save the file to your system
  2. Burn the .iso file to a dvd or any other bootable media.

Open Source Software:


Subscribe to RSS - LAMP