[Skip to content]  [Text only]  [Accessibility]  [Sitemap]

SF Logo (home page link) phpSiteFramework

You are:  Home :: Documentation :: Installation

Creative Commons License



phpSiteFramework Installation


phpSiteFramework's core is procedural PHP so any server running better than PHP 4.x should be OK.
The tested environment, however, is current Apache (2.0.5) and PHP (5.0.3-5.0.5) on Win32 (Server 2000).
You will optionally need Cache_Lite if you wish to use caching.

Pre Installation

A standard install of:

  • Apache 2.0.5
  • PHP 5.0.5 using php.ini-recommended
  • optionally a standard install of Cache_Lite

OK, lets do a basic installation of SF onto a Win32, Apache2, PHP5 machine without cache functionality.

Installing phpSiteFramework

Installing SF consists of the following steps:

  • choose/configure SF root and _SF_modules directories (using Apache httpd.conf)
  • install the SF files
  • configure SF

Configure the SF root and _SF_modules directories

Make a new directory in the web server document root (or choose the root); this is where SF's modules and your content structure will reside. For our example lets use '/testsite/'

Configure Apache's httpd.conf for this directory by inserting:

<Directory [DocumentRoot]/testsite/>
    # No options are required for SF
    Options None
    # No overrides are required for SF
    AllowOverride None
    # .html files will be treated like .php files
    AddType application/x-httpd-php .php .html
    # this ensures all the SF modules are available in include path (fix the pear path for your installation)
    php_value include_path .;c:\php5\pear;[DocumentRoot]\testsite\_SF_modules
    # these are the auto append pre-pend directives
    php_value auto_prepend_file "SF_autoprepend.php"
    # these are optional and recommended during development
      # php_flag display_errors  On
      # php_value error_reporting 2047

Make a directory in your new 'sf root' (e.g /testsite/) to contains SF's modules. For our example lets use '/testsite/_SF_modules'

Configure Apache's httpd.conf for the '/testsite/_SF_modules' directory by inserting:

<Directory [DocumentRoot]/testsite/_SF_modules/>
    # inherits everthing else from previous dir
    php_value auto_prepend_file none
    # A directory restriction is optional but recommended
# Order Deny,Allow
# Allow from locahost </Directory>

Install the SF files

Place the distribution ZIP into your new directory (/testsite/) and unzip.

Configure SF

Open file SF_mainconfig.php from _SF_modules directory for editing.

Edit the following values from the Site Framework (SF) Main Configuration Settings found near the top of the file.
Change the values to what you wish, for our installation example something like:

$SF_sitetitle='SF Test Installation';

onto Installation - Optional

The Fitzwilliam Museum, University of Cambridge.

phpSiteFramework powered