Home   -   Computerkurs   DemoMatrix   Editpointstatic   Folderwatcher   Gipsydrive   Licenses   Shrinkseries   V4   More...  

Apache   Chrome   Firefox   MySQL   NetBeans   Niwa   Opera   OXID   PHP   Ruby   SharpDevelop   Subversion   Tools  

Previous page Home chapter Next page


Trilo - Downtown - Gipsydrive

Niwa CMS

Project status:Infant


. . .

How to run it

. . .

Q & A

. . .


Setup log

This is a developers log file, created on the fly, not meant to enjoy a reader, but to catch knowhow, to be digged out in eventual later odd circumstances.

Make it start

The homepage of Niwa is www.niwa-cms.de, the download comes from http://sourceforge.net/projects/niwa/files (download 20100323°1441). A nice tutorial is found in www.niwa-cms.de/tutorials.

We just unpack Niwa 0.8.2 beta.zip into app.niwa/trunk.

We append a new alias to Apache's httpd.conf, as we routinely did for the other app.webstack installations:
add alias (20100323°1701)
Alias /niwa "../../../app.niwa/trunk/Niwa 0.8.2 beta"
<Directory "../../../app.niwa/trunk/Niwa 0.8.2 beta">
   Options Indexes FollowSymLinks
   AllowOverride None
   Deny from all
   Allow from

Note that we need quotes for the path, since the Niwa folder name contains blanks (as opposed to the tutorial's instructions ;)

When starting, Niwa welcomes us with a warning and an error, the both referring the same file.

Niwa's first start
Niwa's first start.

The two links in the error screen point to
http://localhost/niwa/function.require-once and
which both is in the nirwana.

Line 36 in core.inc.php reads:
A file parent.inc.php does exists indeed in "Niwa 0.8.2 beta\core\lib\module".
Might LOCAL2LIB be a variable, which must be set somehow?

In the files object.inc.php and config.conf.php in each we find the line
The file config.conf.php is mentioned in the tutorial, that it shall be edited by the user to create objects. Hm .. we are not creating objects, shall we try anyway?

In config.conf.php, at the beginning of a define cascade, we find the line
define('LOCAL', $_SERVER['DOCUMENT_ROOT'].'/');
This line triggers a suspicion. What PHP calls DOCUMENT_ROOT -- may that be identical with what Apache calls DocumentRoot? If so, the problem might be, that we are using an alias.

We evaluate the idea by modifying httpd.conf:
DocumentRoot "../../../app.niwa/trunk/Niwa 0.8.2 beta"


Niwa's first start
If Niwa is called directly via Apache's DocumentRoot, instead via Alias, then it starts.

We are happy, that we have seen Niwa's start screen. Only, we cannot leave httpd.conf with such dedicated setting. We need to address Niwa via Alias. Smells like programming work, or at least better understanding PHP, as we are totally bloody beginners in PHP. But before we can attempt this, we sorrily have to return to solve the nasty OXID eShop problem, because that shop must run first.

Looking forward to see Niwa come to live in The Fat Portable Webstack.


. . . it may last . . .



Datenschutz Imprint

http://downtown.trilo.de/appsniwa.html © 2008 - 2018 Trilo Software e.K.   (20100825°2144)