Login | Register
My pages Projects Community openCollabNet

midgardlite
Project home

If you were registered and logged in, you could join this project.

Summary Pure-PHP implementation of Midgard Content Management Framework
Category techcomm
License GNU General Public License
Owner(s) alan_k, bergius, englert

Message from the owner(s)

We're in process of moving developer services of Midgard Lite to Tigris.

To try out the current version in development:

  • call "pear uninstall MidgardLite" to uninstall your current MidgardLite version
  • get the sources from CVS
  • make sure the PEAR_PackageFileManager package from PEAR is installed
  • go into the source directory and call "php build_package_file.php make" to generate the package.xml file
  • call "pear package" to build the MidgardLite PEAR package
  • now install the generated PEAR package with "pear install MidgardLite-0.1.tgz" (you might have to adjust the actual filename)
Now you can create a PHP file (e.g. index.php) with the following content:
<?php
$options = &PEAR::getStaticProperty('MidgardEnginge','options');

// change this to fit your setup
$options = array('database' => 'mysql://user:password@localhost/database_name',
                 'blobdir' => '/var/www/data/',
                 'cachedir' => '/var/www/cache/'
                 );

include_once('HTML/MidgardLite/MidgardEngine.php');

$midgard = new MidgardEngine();
$midgard->init($_SERVER['SERVER_NAME'], $_SERVER['SERVER_PORT'], $_SERVER['REQUEST_URI']);
eval('?>'.$midgard->page().'<?');
?>
Finally use mod_rewrite to silently redirect all requests to this file. Create a .htaccess file like:
RewriteEngine On
RewriteBase /

RewriteCond  %{REQUEST_FILENAME}    !-f
RewriteRule  ^(.*)  /index.php

Description

Midgard Lite is the pure-PHP implementation of the Midgard Content Management Framework.

Midgard Lite is suitable for shared hosting environments, as long as PHP, MySQL and Apache mod_rewrite are available.

The long-term plan for Midgard Lite is PEAR compatibility, and implementation of the full Midgard API. Testing and development help is greatly appreciated.