Hello, Matthias!
I will have to install the "Midgard" folder with the php code alongside the index.php file of each site for the code to be found (remember I cannot access the pear directory nor change the include path). There ought to be a way to set the include path in .htaccess but last time that did not work for me. Anybody doing this?The biggest problem might be that I cannot access any global config files e.g. to set the php include path. I should be able to install/link those where index.php resides (since "." is on the path as I checked), right?I don't quite understand. "those"? Can you rephrase?
Have a look at http://www.php.net/manual/en/function.ini-set.php
I implemented the first missing function (otherwise you cannot create a host):
Maybe I am now embarrassing myself, but here my first php code...
Add in midgard_functions.php:
function mgd_create_style ($up, $name, $owner)
{
$obj = new __midgard();
$obj->__table = "style";
// dth: what should sitegroup be set to? Is that automagic?
$obj->up = $up;
$obj->name = $name;
$obj->owner = $owner;
return $obj- create();
}
I read that other apps store their images in the blobs. What's the suggested way?* Is it normal that the example site in the lite distribution is missing the images? I got those from the regular distribution and put them into the examples directory where they work fine. Is that where they should be?It cannot be that wrong, if it works :-)
* The example site displays a lot of errors for "undefined functions". Is that because of the unfinished state of the lite version?
Yes but I try to encourage everybody to implement more of the functions. It's not that hard, just look at the existing ones in midgard_functions.php
If they are all as simple as my first one, I might be tempted... :-)
If yes, this should be notes somewhere in the docs so people do that think their installation is faulty.
Where is the todo list?There are hardly any docs. That's still on the TODO list but development seems frozen, because nobody has the time.
I have to play more with midgard to see if it really fits the needs for our two sites in a hosted environment. So it is much too early to make a commitment.
There seem to be problems with the access rights here. I haven't found a note on those so far:
I am getting this on changing things within "admin" (apache is running under www.www):
checkout_file executing /usr/bin/co -l '/Library/WebServer/midgard- lite/cvs/f6b665f1984503790ed91f39b11b5392,v' '/Library/WebServer/midgard-lite/cvs/f6b665f1984503790ed91f39b11b5392' 2>&1!
Warning: chmod failed: Inappropriate file type or format in /Library/WebServer/php/Midgard/RCSLib.class on line 92
(the first output if mine)
Permissions in the cvs directory are as follows:
theisen@trillian [/Library/WebServer/midgard-lite/cvs] > ll
drwxrwxr-x 8 www wheel 272 Dec 11 14:50 .
drwxr-xr-x 17 theisen unknown 578 Dec 10 21:46 ..
-r--r--r-- 1 www wheel 876 Dec 11 14:50 3df5eb879d060d5673ff6fbe9a35a5e2,v
-r--r--r-- 1 www wheel 540 Dec 11 01:35 5be8703da2a1b5c94b47a71abaf9163f,v
-r--r--r-- 1 www wheel 544 Dec 11 01:35 65737d1e0529aa4a6b8fe3306a542e07,v
...
What's the problem?
It seems odd that the files are read only. But maybe they are replaced each time...?
Greetings,
Dirk
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
