ED php framework :: Tutorial #1
Install Apache 2.2.14 & PHP 5.2.9 on Win XP SP3
This is just an example installation! Feel free to change whatever else you might find useful.

1. Install Apache 2.2.14

   1.1 Download http://archive.apache.org/dist/httpd/binaries/win32/apache_2.2.14-win32-x86-no_ssl.msi
            (if the above link doesn't work find it elsewhere)

       - follow the standard installation and set the following parameters during it

             Network Domain = localdomain
             Server Name = localhost
             Administrator's Email Address = admin@localhost
             select "only for the Current User, on Port 8080, when started Manually"

   1.2 Modify C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf

       - change 
            "Listen 8080" to "Listen 80" // line 46

       - change and uncomment
            "ServerName localhost:8080" to "ServerName localhost:80" // line 170

       - add
            LoadModule php5_module "C:/php5/php5apache2_2.dll" //line 127

       - around line 191 comment these 2 lines
            Options FollowSymLinks
            AllowOverride None
            # Order deny,allow
            # Deny from all

       - change
           "DirectoryIndex index.html" to "DirectoryIndex index.html index.php" // line 240

       - after "AddType application/x-gzip .gz .tgz" // line 382
           add "AddType application/x-httpd-php .php"

       - uncomment
           "Include conf/extra/httpd-vhosts.conf" // line 463


2. Install PHP 5.2.9
   2.1 Download http://museum.php.net/php5/php-5.2.9-Win32.zip
            (if the above link doesn't work find it elsewhere)

   2.2 Unzip php-php-5.2.9-Win32.zip under c:\ and rename the directory php5, so you will have c:\php5 at the end
   2.3 Copy php.ini-recommended to C:\WINDOWS\php.ini
   2.4 Copy C:\php5\ssleay32.dll to C:\WINDOWS\system32\ssleay32.dll (otherwise php_curl won't work)
   2.5 Copy C:\php5\libeay32.dll to C:\WINDOWS\system32\libeay32.dll (otherwise php_curl won't work)
   2.6 Copy C:\php5\libmcrypt.dll to C:\WINDOWS\system32\libmcrypt.dll (otherwise php_mcrypt won't work)
   2.7 Modify C:\WINDOWS\php.ini

       - change
            allow_call_time_pass_reference = On // line 213

       - change (for test environment)
            display_errors = On // line 373

       - change
            extension_dir = "C:\php5\ext\" // line 542

       - enable
            php_curl, php_mcrypt and php_sockets // lines 662, 675 and 699

       - change and uncomment
            date.timezone = UTC // line 713

       - create directory "C:\temp", then change and uncomment
             session.save_path = "C:\temp\" // line 1043


Install Apache 2.2.14 & PHP 5.3.1 on CentOS / Red Hat Linux

We are starting with blank CentOS 5.1 Linux distribution.

Prerequisites (Apache):
yum install e2fsprogs-devel
yum install keyutils-libs-devel
yum install libsepol-devel
yum install libselinux-devel
yum install krb5-devel
yum install openssl-devel

Prerequisites (PHP):
yum install libxml2-devel
yum install bzip2-devel
yum install libidn-devel
yum install curl-devel
yum install gdbm-devel
yum install libmcrypt
yum install libmcrypt-devel
yum install mhash
yum install mhash-devel

  ##############################################################
  # Optional!!! for the "GD" extension (for image manipulation)
  ##############################################################
  yum install libpng
  yum install libpng-devel
  yum install libjpeg
  yum install libjpeg-devel
  yum install libtool-ltdl-devel

1. cd /usr/local
2. mkdir src
3. cd /usr/local/src
4. fetch http://archive.apache.org/dist/httpd/httpd-2.2.14.tar.gz
            (if the above link doesn't work find it elsewhere)

5. tar zxf httpd-2.2.14.tar.gz
6. cd /usr/local/src/httpd-2.2.14
7. ./configure --prefix=/usr/local/apache2 \
               --enable-so \
               --enable-cgi \
               --enable-info \
               --enable-rewrite \
               --enable-speling \
               --enable-usertrack \
               --enable-deflate \
               --enable-ssl \
               --enable-mime-magic
8. make
9. make install
10. make clean
11. cd /usr/local/src
12. fetch http://museum.php.net/php5/php-5.3.1.tar.gz
            (if the above link doesn't work find it elsewhere)

13. tar zxf php-5.3.1.tar.gz
14. cd php-5.3.1
15. ./configure --prefix=/usr/local/apache2/php \
                --with-apxs2=/usr/local/apache2/bin/apxs \
                --with-mysql=/usr/local/mysql \
                --with-pgsql=/usr/local/pgsql \
                --with-config-file-path=/usr/local/apache2/php \
                --with-zlib \
                --with-bz2 \
                --with-curl \
                --with-mhash \
                --with-mcrypt \
                --with-gettext \
                --with-gdbm \
                --enable-sockets \
                --enable-zip \
                --disable-cgi

                    ##############################################################
                    # Optional!!! for the "GD" extension (for image manipulation)
                    ##############################################################
                    --with-jpeg-dir=/usr/lib \
                    --with-png-dir=/usr/lib \
                    --with-gd



16. cp /usr/local/src/php-5.3.1/php.ini-development /usr/local/apache2/php/php.ini 

17. Modify php.ini
      - change
         zlib.output_compression_level = 5

      - change
         display_errors = On (for dev environment)

      - change and uncomment
         date.timezone = UTC

18. Modify /usr/local/apache2/httpd.conf
      - add
         "AddHandler php5-script php" below "LoadModule php5_module        modules/libphp5.so"

      - comment these 2 lines:
          <Directory />
            Options FollowSymLinks
            AllowOverride None
            # Order deny,allow
            # Deny from all

      - add
         "index.php" to "DirectoryIndex index.html" under <IfModule dir_module/>

      - below
         "AddType application/x-gzip .gz .tgz" add "AddType application/x-httpd-php .php"

      - uncomment
         "Include conf/extra/httpd-vhosts.conf"