I don't think so, I think that's the developer's package for creating pear-based install scripts for mgl.
The reference I'm thinking of may be in the full blown Midgard install document, but here's a note that comes with the linux distro of mgl, it has some notes that may be helpful. ----- Original Message ----- From: "Matthias Fischer" <> To: <[EMAIL PROTECTED]> Sent: Friday, June 20, 2003 2:40 PM Subject: RE: [midgard-user] MidgardLite installation on Win-32 I found this on the Midgard site (CVS). Has it something to do with my problem? Revision 1.1 / (download) - [select for diffs], Wed Jan 15 12:36:14 2003 UTC (5 months ago) by bergie Branch: MAIN PEAR-compatible package definition file for Midgard-Lite. Can be used to generate releases with command "pear package package.xml" Release files can then be installed with "pear install MidgardLite-0.8.tgz" MF --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Midgard Lite :: Installation guide (Windows) http://www.midgard-project.org/ ____________________________________________________________________ THIS INSTALLATION INSTRUCTIONS ARE WRITTEN FOR A DIFFERENT PACKAGE, however you might take this as guideline for your installation Maintainer :: Alan Knowles <[EMAIL PROTECTED]> Matthias Englert <[EMAIL PROTECTED]> Midgard Lite :: Description Midgard lite is an experimental version of midgard using only php (no compiling required). It currently feature about 80% of the key functions of Midgard. It can be used in reasonably secure enviroments to display the Midgard sites, where using CGI or unmodified PHP Apache servers is the only option. Midgard Lite :: Requirements To use Midgard Lite, you will need a running installation of Apache, PHP and MySQL. For easier installation I recommend the use of the OpenSA web server, which already includes Apache with SSL and PHP enabled and has PEAR integrated, too. Of course you could download Apache and PHP seperatly from the usual download locations and do all the configuration by hand :-) Midgard Lite :: Prerequisites I will assume, that Apache and MySQL will be installed in default locations on drive C. In the installation example OpenSA will be installed in C:\OpenSA\Apache and MySQL in C:\MySQL. Our Midgard Lite site will live in C:\www\midgard-lite.test Midgard Lite :: Installation Installing OpenSA and MySQl is easy and fast, download the installers from [2] and [3] and make friends with the 'Next' button. To install MySQL as service you can open a DOS command console and type C:\MySQL\bin\mysqld-nt.exe --install Now you'll have it installed and can run it from the service manager. Off course this only applies to Windows NT, 2000 and XP. Users of Win9x/Me will have to run it manually :-( To install Apache as service, simply walk into the start menu into the 'OpenSA web server' folder, go to 'Services' and click 'Install Service'. Now the service is installed and can be started. As with MySQL, users of Win9x/Me have to start Apache manually, no service here, too :-( Midgard Lite package can be downloaded from [4]. Then extract it, e.g. to c:\temp. Midgard Lite :: Prepare a hostname As we will be installing Midgard Lite on your development system, we will need a hostname. This can easily be achieved by adding the following line to your 'hosts' file 127.0.0.2 www.midgard-lite.test If you already use this IP, just choose a higher IP and keep it in mind. We'll use it later. Midgard Lite :: Database installation Open a DOS command console and switch to your MySQL installation directory by typing cd C:\MySQL\bin Create the Midgard database by typing mysqladmin create midgard Import the Midgard SQL dump by typing mysql midgard < C:\temp\data\asgard+oldadmin+nadmin.sql (assuming you extracted migard lite package to c:\temp, midgard will be our database name for testing) Now you have a clean and blank Midgard database. Next step is to update the 'hosts' table in the Midgard database. Open MySQL by typing mysql midgard Now you should see the mysql command prompt which looks like mysql> Here you have to type update host set name="www.midgard-lite.test" where name="your.server.net"; Typing select * from host; should show you all Midgard hosts, now with the domain name set. A simple 'exit' command will bring you back to the command prompt. Midgard Lite :: Apache configuration Now the longer part... try getting a cup of coffee and then we'll start :-) Locate your Apache configuration file, usually httpd.conf can be found in the 'Apache\conf' directory after installation. Now we will add a new virtual host to serve our new Midgard Lite domain. I've included a sample VirtualHost setup for Apache, which can be found in the 'data' directory of the Midgard Lite package. You can simply copy it into your 'Apache\conf' directory and add the following line Include midgard-lite.test.conf at the end of your httpd.conf file. You will have to edit this file in order to set up your specific directory structure. Important points are: o The IP address in the VirtualHost directive It has to match the one, you have entered in the 'hosts' file. o The hostname in the ServerName directive It has to match the hostname you used when updating the MySQL database. o The PHP4 'IfModule' directive Here you'll find the include path for PEAR, which is required for Midgard Lite. Please check, that it fits to your installation. o IMPORTANT: The directory options for the document root have Options FollowSymLinks set. This is needed, as mod_rewrite won't work without them. Now we'll do the global Apache configuration. It's quite easy. At the beginning of 'httpd.conf' you'll find #LoadModule rewrite_module modules/mod_rewrite.so Change it to LoadModule rewrite_module modules/mod_rewrite.so As OpenSA contains PHP 4.2.x, we also have to modify the PHP configuration file. You will find the php.ini in your Windows installation directory. There is a line like the following one register_globals = Off Change it to register_globals = On This is required to run Midgard Lite. And then everything is installed as Midgard Lite needs it. ... the other configuration settings are just for the sake of completeness. Midgard Lite :: Virtual host directory structure Let's create a home for our virtual host. First of all, create the c:\temp\midgard-lite.test directory. Then we need the follwoing directories: o cache o cgi-bin o htdocs o include o logs Now copy the blobs directory from the Midgard Lite package into it. Can be found in the 'data' directory after extraction. Now we need directories for Asgard, OldAdmin, the VMUC example and nAdmin. These can be found in the 'htdocs' directory of the Midgard Lite package. That's it. Our virtual host is ready for take off. Midgard Lite :: The beast itself :-) Now we'll finally come to the Midgard Lite configuration and installation. If you already got to this point, be happy :-) The target is near. After extracting Midgard Lite, you should find a 'pear' directory inside. It contains one directory named 'Midgard'. All you have to do, is to copy it into your PEAR installation. If you used OpenSA and it's default installation path, your PEAR directory will be at 'c:\OpenSA\Apache\php\pear'. This is where you have to put the 'Midgard' directory inside. Now open 'PEAR\Midgard\midgard_config.class' and modify the paths according to your local system. That's it. Restarting your Apache service is the last task. Then you can open your browser and type http://www.midgard-lite.test/example and will see the VMUC example site. Midgard Lite :: Last words... This is a preliminary guide. It was written some hours after getting Midgard Lite up and running. There can still be problems with Midgard Lite itself or settings I forgot. I hope I didn't :-) If you get in trouble, feel free to contact me. Midgard Lite :: Known issues Midgard Lite makes use of some functions like posix_uname() and crypt() which are not available under Windows. I'm working on patches to solve these issues in the next days after writing this guide. A fix for the posix_uname() issue has been integrated in this package. Right now we check if the system is Windows and then simulate the data, posix_uname would return. As I have no patch ready for missing crypt() command, I would suggest NOT to use encrypted passwords. Then they'll be saved as '**password' in the MySQL database and Midgard Lite will work, Midgard Lite :: Security issues Enabling register_globals in php.ini can become a serious problem, if code is not written well, e.g. if you don't check if variables come from POST, SESSION, etc. Another issue is with midgard_config.class. If somebody calls print_r($__midgard) your sensitive password data can be viewed. I would suggest to take the config file out of midgard.class and create it for each virtual host. Midgard Lite :: Author This guide was written by Daniel S. Reichenbach <[EMAIL PROTECTED]>. If you have problems, please contact the Midgard user list at <[EMAIL PROTECTED]> or the author. Updates can be viewed online at [1]. If you have comments, additions or errate mail them to the author. Midgard Lite :: Disclaimer THIS SOFTWARE IS PROVIDED BY THE MIDGARD PROJECT TEAM ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE MIDGARD PROJECT TEAM OR HIS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Midgard Lite :: Links [1] The Midgard Lite Windows installation guide http://www.best-off.org/dsr/install-win32.txt [2] The OpenSA web server http://www.opensa.org/ At the date of writing, version 1.0.2 is the current version and is recommended. Direct download from: http://www.opensa.org/files/beta/opensa_1.0.2b2bin_beta.exe [3] MySQL database server http://www.mysql.com/ At the date of writing, version 3.23.51 is the current version and is recommended. Direct download from: http://www.mysql.com/Downloads/MySQL-3.23/mysql-3.23.51-win.zip [4] Complete Midgard Lite package with Windows linefeed and required sql and blob data http://www.best-off.org/dsr/midgard-lite.zip $Revision: 1.1 $ ($Date: 2003/01/15 13:25:59 $)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
