public
Description: Midgard Components Framework 3rd generation
Homepage: http://www.midgard-project.org
Clone URL: git://github.com/bergie/midcom.git
Initial quick docs for running MidCOM 3 with Midgard 2 under lighttpd
bergie (author)
Thu Apr 24 14:32:13 -0700 2008
commit  420d5799d47ed553e78ac07b45f038f1d548245c
tree    5d5bf6d4052f19831a22ec7fa77da730de95a05e
parent  24229a5f07300c0a5992cc51a85071991cbd0fdf
...
4
5
6
7
 
8
9
10
11
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
14
15
...
4
5
6
 
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
0
@@ -4,12 +4,38 @@ Quick MidCOM 3 setup HOWTO
0
 1. Install Midgard 1.9 (Midgard 1.8 may work too)
0
 2. Create a new Midgard host with no MidCOM and a minimal style
0
 3. Ensure the MidCOM 3 checkout is in php.ini `include_path`
0
-4. Point the `MidgardRootFile` of the Midgard Apache VirtualHost setup to MidCOM's `httpd/midcom-root.php`
0
+4. Point the `MidgardRootFile` of the Midgard Apache VirtualHost setup to MidCOM's `httpd/midcom-root-midgard.php`
0
 5. Patch your MgdObjects.xml (in `/usr/share/midgard`) to include a `component` property for `midgard_page` objects
0
 6. Use `phing linkstatics` to link all CSS, JS and image files of MidCOM 3 distribution under `/usr/local/lib/midcom/static`
0
 7. Then symlink that as `midcom-static` under your DocumentRoot
0
 8. Start playing around
0
 
0
+Usage with Midgard 2
0
+--------------------
0
+
0
+* Install lighttpd
0
+* Install your PHP with cgi enabled
0
+* Enable fastcgi in lighttpd
0
+* Symlink `httpd/midcom-root-midgard2.php` under your documentroot
0
+* Set up a virtualhost:
0
+
0
+ $HTTP["host"] == "example.net" {
0
+ server.port = 81
0
+ server.document-root = "/opt/local/var/lib/midgard/vhosts/example.net/81/"
0
+ url.rewrite-once = (
0
+ "^/midcom-static/.*" => "$0",
0
+ "^(.*)\.*" => "midcom-root-midgard2.php"
0
+ )
0
+
0
+* Configure PHP accordingly:
0
+
0
+ extension=midgard2.so
0
+ midgard.configuration="myconfigfile"
0
+ midgard.http="on"
0
+
0
+* Play around
0
+* More info in <http://blogs.nemein.com/people/piotras/view/1208851555.html>
0
+
0
 Troubleshooting
0
 ---------------
0
 

Comments

    No one has commented yet.