Install

This step-by-step tutorial explains how to install Zend Framework on Linux server.
We will go through basic Linux install, Zend specific configuration of Apache and Mysql and actual install and configuration of Zend Framework itself, so it will be ready for development immediately.

You might wish to check security articles on our web site for production environment lock-down.

For this tutorial we will use Zend Framework version 1.10.3 and Debian Lenny.

The tutorial provide screenshots of EVERY step you need to take to install and configure Zend Framework machine properly.

By framework-zend on 11 April 2010

Everyone knows that using ROOT for day-to-day tasks is not good. There are 2 reasons for it: my might break you system easily by running dangeours command; you also shoudl not leave root account usable so oneone can brutefroce it, as it is much easier and quicker to bruteforce password once loing is known. And in this case loing is ROOT. Hence we sugest you to disable the root account. But before you do that you have to ensure that you will be abe to re-enable it again and also be able to perfom admin tasks.

By framework-zend on 15 April 2010

Once the Core of the operating system is installed, you have to choose what basic configuration of the system you would like to have in terms of default software installed. Debian offers pre-defined packages for Desktop environment, Web, Print, DNS, File, Mail, database servers as well as configs for laptop and most standard set-ups.

We would recommend you to DESELECT ALL options and have minimal and clean install to ensure that you don't have unnecessary software running and you are not exposed to potential vulnerabilities through it.

By framework-zend on 12 April 2010

Once you have you Linux OS ready you need to install Apache web server, PHP and MySQL.
This tutorial explains you how to install these from pre-compiled Debian repository. This is the most hassle free way of install software in Debian like systems. This tutorial works for Ubuntu as well.

We assume that you completed the minimal Debain install as describe and the previous section.

Please, login to the system using the account that you have created during installation process (or with any other account if you have one).

By framework-zend on 12 April 2010

Now your system is nearly installed. Debain team wants to have a feedback and you might be willing to provide one. Otherwise just say no.

Image

Please, ensure that you removed all CD/DVD disks, so the next time your start starts it will boot from Debian Hard drive.

By framework-zend on 12 April 2010

To ensure that you always get teh latest version of the Linux operating system, Debian has a fantastic feature build into install. It talks to mirror servers located all arround the world, checks for any updates and if any found apply them straight during installation process. So when you start your system first time it is fully up-to-date and secure.

It also tryes to save you time waiting fro downloads to complete by oferring you to select the country the server is in:

By framework-zend on 12 April 2010

On Linux systems you normally have at least 2 accounts: root and a user.

Root as is superuser account that allows you to do whatever you like with a system, but remeber "with a great power comes great respocibility". Youc an easily scew up the system or inctroduce vularabilities. So be careful hen using this account.

By framework-zend on 12 April 2010

To install any Linux OS you have to partition your hard drive. We will use the most typcal and simple approach by using all the disk space avaiable. By saying avaialbe we mean not used by other partitions. In comst ommon case you eitehr have an empty hard drive, spare non-utilize dcapacity on hardrive or empty virtual disk space if you are using Xen, VMWare, KVM or any other virtualization technology.

By framework-zend on 12 April 2010

So, we will start with clean box (or virtual server) and install Debian on it.

You need to boot with Debian install CD or ISO image. We would recommend you to use Network Install image for several reasons:

  • this minimal package has all you need to setup proper web and database server
  • it does not have outdated and unnecessary software that might have security vulnerabilities or consume computer resources
  • it is small and quick to download

When you start your box and it boots from the CD you will see the first Debian install screen.

By framework-zend on 11 April 2010