Step #1 - Deals with Getting Started with Midgard http://www.privaterra.org/blog-rg/getting_started_with_midgard.html
Getting started with Midgard
01/08/05 -- I have recently installed Midgard on Privaterra server. I've documented the steps I followed which resulted in things working - oh, so well...
My Setup:
Debian - Sarge Apache - apache 2.x
# Install Midgard using Debian packages
http://www.midgard-project.org/documentation/installation/distros/debian.html
add the following to /etc/apt/sources.list
deb http://www.midgard-project.org/debian/dists/testing/main/binary-i386 ./ # deb-src http://www.midgard-project.org/debian/dists/testing/source ./
apt-get install libapache2-mod-midgard libapache2-mod-php4-midgard libmidgard midgard-data repligard
Setting up libmidgard (1.6.1) ...
Setting up libapache2-mod-midgard (1.6.1) ... Setting up libapache2-mod-php4-midgard (1.6.1) ... You are installing midgard support for php4, but it's not enabled in your /etc/php4/apache2/php.ini.
To enable it you need to add this line:
extension=midgard.so
Do you want me to add it now [Y/n] ?Y You are installing midgard support for php4, but it's not enabled in your /etc/php4/cgi/php.ini.
To enable it you need to add this line:
extension=midgard.so
Do you want me to add it now [Y/n] ?Y
Setting up repligard (1.6.1) ... Setting up midgard-data (1.6.1) ...
# Things to check
- Check /etc/php4/apache2/php.ini to make sure the following has been added at the end of the file
extension=midgard.so
# Now that we have midgard installed - let's go through the initial datagard install
datagard
What is MySQL admin name?
root
What is MySQL admin password?
(password)
What would You like to do today?
Install Install new Database? Update Upgrade existing one? Import Import selected application? Vhost Create new Virtual host?
# Create the initial Midgard database
What is the name for database?
midgard
Username for Midgard' database?
midgard
Password for Midgard' database?
(password)
Datagard will then call on repligard to import data. this will take a while.
# Create first Virtual Host
Create Virtual Host for Midgard ? YES
Do you want to select database for this host? No
Virtual Host name? www.privaterra.org:8001
Congratulations! � Midgard Framework and CMS have now been installed successfully.
Point your favorite browser to the Midgard welcome page to get started: http://www.privaterra.org:8001/midgard
(Your httpd server should be stopped and started again)
# Now Visit the website to perform the initial Administration tasks - to change the default password.
- http://www.privaterra.org:8001/midgard/ - http://www.privaterra.org:8001/aegir/
Company: System Administrator Username: admin password: password
select Groups & People
- select "All People" - select "Administrator, Midgard - select "details" - change password (so that it's not the default - password -)
Select Company
-> As the password has been changed, one is asked to log back into the aegir system.
- Username: admin - Password: (new one from above)
Select "Company"
- New
- (new Company window appears)
New Company name: Privaterra
Administrator:
- Name: rguerra - Password: (new password entered)
Submit (new company created)
# let's add a new virtual host - www.privaterra.ca
- datagard - Vhost - Create a new virtual host - do you wish to select database - NO - Virtual Host name - www.privaterra.ca
# revise /etc/midgard/apache/httpd.conf
change the entry Listen 80 to Listen 8001
/etc/init.d/apache2 restart
# Log back in as Admin to create the First website
- http://www.privaterra.org:8001/aegir/
Company: System Administrator Username: admin password: (password)
- Select Websites - Select New Website
New Website:
Name: www.privaterra.ca Type: Live only Template: Midcom Company: Privaterra
- Click on Submit
You'll see - Website www.privaterra.ca has been created -
- Click on Details - Edit the new website, set style to
# Visit the new site
in browser, visit http://www.privaterra.ca
- Proceed to system initialization - Click on Initialize
# Upgrade to MidCom 2
This was done as keep on getting errors while trying to create a sub-topic.
bunzip2 MidCOM-2.0.0.tar.bz2 tar xvf MidCOM-2.0.0.tar mkdir /usr/share/pear/midcom cp -R midcom-2.0.0/* /usr/share/pear/midcom/
* Ignore this following step for now: ln -s /usr/share/pear/midcom/static /srv/www/midcom-static
* instead of symlinking, we'll copy the files for now cp -R /usr/share/pear/midcom/static /srv/www/midcom-static
next you need to install the /usr/share/pear/midcom/midcom-template/midcom-template.xml package using datagard
copy the .xml file to datagard
cp MidCOM-2.0.0/midcom-template/midcom-template.xml /usr/share/midgard/data
ln -s /usr/share/pear/midcom/static /var/lib/midgard/vhosts/www.privaterra.ca/80/midcom-static
datagard
Import selected Application
- select database : Midgard - username: midgard - password: (password)
Select "midcom-template"
Select OK
Sitegroup Admin name: admin Sitegroup's Admin password: (password)
- Repligard update is done
- log into Aegir as System admin
- Select Websites - Select created site - www.privaterra.ca - select details - Change style to MidCom Site Template
- Click on Submit
(you'll get a message that Host information has been updated)
# Adding Blog section
Log in to newly created Midgard Site
- log in - create page
# Adding Subtopic
- Log into site
- click on Create Subtopic
* Fill in the Topic Fields as follows:
- URL Name: blog - Title: blog - Type: News Listing (de.linkm.newstracker)
Click on Create
*** Unclassified Notes ***
# Removing Midgard
dpkg --purge midgard-data dpkg --purge repligard
apt-get remove midgard*
rm -rf /usr/share/midgard rm -rf /etc/midgard rm -rf /var/lib/midgard rm -rf /var/cache/midgard
# Fixing the permissions issue
chown www-data:www-data /var/lib/midgard/vhosts
# Need to increase the Memory Limit in PHP
edit /etc/php4/apache2/php.ini
change "memory_limit = 8M" to "memory_limit = 32M"
Save file, reload apache
/etc/init.d/apache2 restart
# Fetch TownPortal
http://www.midgard-project.org/projects/townportal/download/
bunzip2 TownPortal-0.5.tar.bz2 tar xvf TownPortal-0.5.tar cd TownPortal-0.5
cp *.xml.gz /usr/share/midgard/data/.
* Install TownPortal
- datagard
What would You like to do today?
- Import select application
- Select database : Select Midgard
Username for Midgard' database? Midgard
Password for Midgard' database? (password)
- select the following applications:
TownPortal-Dependencies TownPortal
OK
Sitegroup's admin username? admin Sitegroup's admin password? password
- Repligard now will read and process the Town Portal information
- restart apache - /etc/init.d/apache2 restart
# debugging strange errors
In the /etc/midgard/apache/vhosts directory
- comment out MidgardPageCacheDir /var/cache/midgard - activate MidgardRootfile /usr/lib/apache2/modules/midgard-root-nommp.php - deactivate the other MidGardRootFile -- ### Robert Guerra <[EMAIL PROTECTED]> Privaterra - <http://www.privaterra.org>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
