Thank you, Drew.
I will go thought the installation instruction and give you update.
Thank you very much,
Peter
John-Andrew Minniti wrote:
> Hello Peter...
>
> Sorry i didn't get back earlier... i was away for the weekend. Anyway, I'll
> walk through the steps I took to get it all up and running. I'm going to
> assume that you started where I am, that is with very little knowledge of
> Midgard and the RaQ3. I appologize if some of it is way too basic, but
> hopefully this will make it as easy as possible.
>
> You should check out some of the documentation on the CVS distribution... I
> followed the installation instructions in the midgard/doc directory. Most
> of below is from the details about installing on a RaQ, but I will go
> through some differences I encountered on my RaQ3, which I believe you may
> come across. Anyway, you can access CVS via the web at
> http://www.midgard-project.com/cvsweb.pl/ . I also installed version
> 1.4beta4; however, my understanding is that the installation should be about
> the same. (http://www.midgard-project.com/article/8325.html)
>
> 1) Install MySQL
> (a) You can easily do this with the MySQL RPMs available at
> http://www.mysql.com or at Cobalt's ftp site
> (ftp://ftp.cobaltnet.com/pub/experimental/raq3).
> Do not install the MySQL Shared RPM (at least at this time).
>
> (b)I installed it via the tarball from the MySQL site.
> (i)To install via the tarball simply change to the directory in which
> mysql was unpacked.
>
> (ii)./configure --disable-shared --with-mysqld-ldflags="-all-static" --with-
> client-ldflags="-all-static"
> (iii) make
> (iv)make install
> (v)./scripts/mysql_install_db
> (vi)/usr/local/bin/safe_mysqld&
>
> (note that the install directions tell you to execute
> /usr/local/mysql/bin/safe_mysqld& however, safe_mysqld was not located in
> that directory when _I_ installed MySQL)
>
> 2) Install Midgard Library
> (a) I used 1.4beta4 from the tarball (even thouugh it is possible to use
> RPM source I believe, I failed to get that to work on the RaQ3)
> (i) LDFLAGS="-L/usr/local/lib/mysql" ./configure --with-sitegroups
>
> (note that the instructions state to use LDFLAGS="-L/usr/lib/mysql"
> unfortunately for me MySQL installed into /usr/local/lib/. Perhaps I did
> something wrong; but Midgard is working).
>
> (also note, that sitegroups I understand is not available with the 1.2.5
> release, but check that out with the list, that's just my recollection).
>
> (ii) make
> (iii) make install
>
> You may see an error during the make process saying that this library
> requires shared libraries, etc., etc. I just kept going despite it cause
> we'll use commands to point to the static mysql modules.
>
> 3) Install Data
> (a) This is easy and the instructions are in the tar'd release.
> (i) mysqladmin create midgard
> (ii) mysql midgard < tables.sql
> (iii) mysql midgard < midgard-en.sql # for the english content, or
> mysql midgard < midgard-ru.sql # if you prefer russian.
> (iv) mysql mysql
>
> Then at the MySQL prompts:
>
> mysql> INSERT INTO user (Host,User,Password)
> -> VALUES ('localhost','midgard',Password('midgard'));
> mysql> INSERT INTO db (Host,User,Db,Select_priv,Insert_priv,
> Update_priv,Delete_priv)
> -> VALUES ('localhost','midgard','midgard','Y','Y','Y','Y');
> mysql> FLUSH PRIVILEGES;
>
> 4) Install Midgard Module
> (a) This should be pretty straight forward
> (i?) PATH=$PATH:/usr/sbin
>
> (You may need to specify where to find Apache and apxs. I believe this is
> where I did it at. That way you shouldn't get an error saying it couldn't
> find apxs or something to that sort. Just specifying in the ./configure
> command (e.g., --with-apache=/usr/sbin) does not seem to work).
>
> (i)
> LDFLAGS="-L/usr/local/lib/mysql -L/usr/local/lib -lmidgard -lmysqlclient"
> ./configure
>
> (Like when installing Midgard-lib, I had to change -L/usr/lib/mysql
> to -L/usr/local/lib/mysql to reflect where mysql was located).
>
> (ii) make
> (iii) make install
> (iv) make conf
>
> 5) Install Midgard-PHP
>
> (I had made sure I uninstalled any version of PHP, but that was just a
> precaution [and the fact that I crashed my server and needed to reinstall
> everything] but I do believe it wont cause problems if you don't uninstall
> other versions of PHP).
>
> (i) CC=cc
> LDFLAGS="-L/usr/local/lib/mysql -L/usr/local/lib -lmidgard -lmysqlclient"
> ./configure --with-midgard --with-apache --with-mysql --with-pg
>
> (Three notes, once again I changed -L/usr/local/lib/mysql
> to -L/usr/local/lib/mysql. Also, Apache on my RaQ was compiled with cc as
> opposed to gcc. Therefore, PHP wants to be compiled with cc. Thus the
> added command at the beginning of CC=cc. Thirdly, I also included
> PostgreSQL support with PHP [the last --with]).
>
> (ii) make
> (iii) make install
>
> 6) Update httpd.conf
>
> (a)This is outlined in the INSTALL file I believe. Or check the
> documentation at http://www.midgard-project.com. The installation walk
> through for 1.1.1 is still pretty relevant)
>
> (i) I found I had to change the library directories for php3_module
> and midgard_module to
>
> LoadModule midgard_module /usr/lib/apache/mod_midgard.so
> LoadModule php3_module /usr/lib/apache/libphp3.so
>
> (ii)I also had to uncomment AddModule mod_php3.c
> (iii) You may want to change LogLevel to debug in case there is a
> problem restarting the apache server
> (iv) Follow the rest of the directions in the documentation for
> setting up the httpd.conf file
>
> 7) Update the mysql tables to reflect the virtual servers you identified in
> your httpd.conf file.
>
> I believe that's about it.... just restart your server. Any problems see
> what the error logs state. I can try to help you out. I did most of this
> from memory, but I believe it should be fairly accurate. Maybe someone
> wants to just go over them for accuracy.
>
> Hope this helps... Again, I'll try to answer any questions, but I too am new
> to this.
>
> Drew
> ----- Original Message -----
> From: "Peter Yi" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 28, 2000 12:51 PM
> Subject: Re: [midgard] RaQ Installation
>
> > John,
> > I understand you have complete midgard installation to RaQ server, is it
> > possible you can send me some installation guide lines.
> > I am newbie to RaQ3 and midgard, looking for over view installation
> instruction
> > if it's available.
> > I know there is a files require on RaQ server before install Mysql, PHP,
> and
> > midgard.
> > I have RaQ3 server that I would like to install midgard+mysql.
> > Thanks,
> > Peter
> >
> >
> > John-Andrew Minniti wrote:
> >
> > > Ok... Ok... I figured it was something to do with my browser's cache....
> but
> > > I felt compelled to post because I finally got the thing
> installed....(the
> > > admin problem I did not know, admitedly)....
> > >
> > > Actually, in the end it was quite simple to install.... of course
> everything
> > > is easier when you follow the directions.... but I have this problem
> called
> > > being a male.... we hate user manuals, maps, and gas station attendants
> > > (well when we have to ask for directions).
> > >
> > > Can't wait to dive into this and learn how it works.... I've been
> wanting
> > > Midgard for 5 months, finally rented myself a server so i can install
> what I
> > > feel like...
> > >
> > > This looks great.... thanks for all your help with getting it working
> for a
> > > complete newbie.... and sorry to say, this probably won't be the last
> time
> > > you hear from me... but hopefully in the future I'll be a little more
> > > knowledgeable and won't completely waste your time....
> > >
> > > Thanks again....
> > > Drew
> > > ----- Original Message -----
> > > From: "Emiliano" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, July 28, 2000 1:00 AM
> > > Subject: Re: [midgard] RaQ Installation
> > >
> > > > John-Andrew Minniti wrote:
> > > >
> > > > > Forget the last email.... looks like I've got it installed.... new
> > > problem
> > > > > though....
> > > > >
> > > > > 1) I cannot log into the admin site with admin password.
> > > >
> > > > You've probably activated sitegroups. Try username 'admin*', and read
> > > > the relevant parts of the manual. Do not use sitegroups if you haven't
> > > > read it. Sitegroups changes login and group membership semantics in a
> > > > way that takes some getting used to.
> > > >
> > > > > 2) The example site acts strange. I had it working fine until I
> deleted
> > > the
> > > > > admin from table person. Oops. So I resinstalled the entire
> midgard
> > > db.
> > > > > Now it is 404.... however, if I hit my browser back button and then
> my
> > > > > forward button (back to the example site) the page appears. If I
> > > refresh,
> > > > > buh-bye....
> > > >
> > > > Your browser cached the old pages. The host settings of the default
> > > database
> > > > probably do not match your current situation.
> > > >
> > > > Emile
> > > >
> > > >
> > > > --
> > > > This is The Midgard Project's mailing list. For more information,
> > > > please visit the project's web site at http://www.midgard-project.org
> > > >
> > > > To unsubscribe the list, send an empty email message to address
> > > > [EMAIL PROTECTED]
> > > >
> > >
> > > --
> > > This is The Midgard Project's mailing list. For more information,
> > > please visit the project's web site at http://www.midgard-project.org
> > >
> > > To unsubscribe the list, send an empty email message to address
> > > [EMAIL PROTECTED]
> >
> >
> > --
> > This is The Midgard Project's mailing list. For more information,
> > please visit the project's web site at http://www.midgard-project.org
> >
> > To unsubscribe the list, send an empty email message to address
> > [EMAIL PROTECTED]
> >
>
> --
> This is The Midgard Project's mailing list. For more information,
> please visit the project's web site at http://www.midgard-project.org
>
> To unsubscribe the list, send an empty email message to address
> [EMAIL PROTECTED]
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]