Skip Navigation

Sign up

If you sign up for an account on this web site you can customise elements of this site and subscribe to an email newsletter.

If you have an account on this web site you may login.

If you have an account on this site but have forgotten your user name and / or your password then you can request an account reminder email.

Server Error 2

This is an attempt to duplicate the problem documented on http://www.mkdoc.org.archived.website/bugs/stable/normal/internal-link/server-error-1/ on a FC4 machine that is connected to the internet and doesn't use Xen.

It has the default FC4 apache listening on port 80 which forwards requests to a compiled apache and mod_perl on port 8080.

MKDoc Code

To start with the MKDoc code was updated:

[chris@devil ~]$ cd /var/mkdoc-1-6/
[chris@devil mkdoc-1-6]$ cvs -q up -dP
? Apache
? auto
? debug.diff
? dynamic_sitemap.diff
? init
? mail.part2.diff
? mkd_events_2.patch
? mkd_image_description.diff
? mkd_link_differentiation.diff
? perllocal.pod
? t
? usercsv-fix.patch
? MKDoc/Import
? MKDoc/Import.pm
? cgi/mkdoc.cgi.meminfo
cvs update: use `cvs add' to create an entry for conf/httpd.conf
? tools/mksetenv.sh

Env

The env is set on login so mkdetenv.sh didn't need to be sourced:

[chris@devil mkdoc-1-6]$ printenv | grep MKD
MKDOC_DIR=/var/mkdoc-1-6

MySQL

Then two databases were created:

mysql> INSERT INTO user (Host, User, Password) VALUES ('localhost', 'test_1', password ('test_1'));
Query OK, 1 row affected (0.00 sec)

mysql> CREATE database test1_dev_webarchitects_co_uk;
Query OK, 1 row affected (0.00 sec)

mysql> INSERT INTO db (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv,Drop_priv, Grant_priv, References_priv, Index_priv, Alter_priv) VALUES ('localhost', 'test1_dev_webarchitects_co_uk', 'test_1', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y');
Query OK, 1 row affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> INSERT INTO user (Host, User, Password) VALUES ('localhost', 'test_2', password ('test_2'));
Query OK, 1 row affected (0.01 sec)

mysql> CREATE database test2_dev_webarchitects_co_uk;
Query OK, 1 row affected (0.00 sec)

mysql> INSERT INTO db (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv,Drop_priv, Grant_priv, References_priv, Index_priv, Alter_priv) VALUES ('localhost', 'test2_dev_webarchitects_co_uk', 'test_2', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y');
Query OK, 1 row affected (0.02 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

Site Installs

Two sites were installed:

[chris@devil mkdoc-1-6]$ tools/install-site.pl /var/mkdoc-sites/test1.dev.webarchitects.co.uk

Everything was left as the default apart fromt the database settings, this is the install for http://test1.dev.webarchitects.co.uk/ :

1 - Database name      : test1_dev_webarchitects_co_uk
2 - Database host      : (undefined)
3 - Database port      : (undefined)
4 - Database user      : test_1
5 - Database pass      : test_1

B - Go back to main menu
D - Delete an option

Input Choice:

1 - Basic MKDoc configuration
2 - Database connection
3 - Organization details
4 - First user details

S - Save Makefile.PL and exit
X - eXit without without saving

Input Choice: s
Checking config...  OK

Creating /var/mkdoc-sites/test1.dev.webarchitects.co.uk
Creating /var/mkdoc-sites/test1.dev.webarchitects.co.uk/su
Creating /var/mkdoc-sites/test1.dev.webarchitects.co.uk/httpd
Creating /var/mkdoc-sites/test1.dev.webarchitects.co.uk/resources
Creating /var/mkdoc-sites/test1.dev.webarchitects.co.uk/resources/templates
Creating /var/mkdoc-sites/test1.dev.webarchitects.co.uk/resources/skin
Creating /var/mkdoc-sites/test1.dev.webarchitects.co.uk/data
Creating /var/mkdoc-sites/test1.dev.webarchitects.co.uk/static
Creating /var/mkdoc-sites/test1.dev.webarchitects.co.uk/static/files
Creating /var/mkdoc-sites/test1.dev.webarchitects.co.uk/static/images
Creating /var/mkdoc-sites/test1.dev.webarchitects.co.uk/log
Creating /var/mkdoc-sites/test1.dev.webarchitects.co.uk/cache

Writing apache config files

Your mkdoc site has been installed. You should now restart
your http server. Once this is done, go to the following
address:

  http://users.test1.dev.webarchitects.co.uk/

Your default connection parameters will be:

  user: admin
  password: ticsanch

And this is the install for http://test2.dev.webarchitects.co.uk/ :

[chris@devil mkdoc-1-6]$ tools/install-site.pl /var/mkdoc-sites/test2.dev.webarchitects.co.uk
1 - Database name      : test2_dev_webarchitects_co_uk
2 - Database host      : (undefined)
3 - Database port      : (undefined)
4 - Database user      : test_2
5 - Database pass      : test_2

B - Go back to main menu
D - Delete an option

Input Choice:

1 - Basic MKDoc configuration
2 - Database connection
3 - Organization details
4 - First user details

S - Save Makefile.PL and exit
X - eXit without without saving

Input Choice: s
Checking config...  OK

Creating /var/mkdoc-sites/test2.dev.webarchitects.co.uk
Creating /var/mkdoc-sites/test2.dev.webarchitects.co.uk/su
Creating /var/mkdoc-sites/test2.dev.webarchitects.co.uk/httpd
Creating /var/mkdoc-sites/test2.dev.webarchitects.co.uk/resources
Creating /var/mkdoc-sites/test2.dev.webarchitects.co.uk/resources/templates
Creating /var/mkdoc-sites/test2.dev.webarchitects.co.uk/resources/skin
Creating /var/mkdoc-sites/test2.dev.webarchitects.co.uk/data
Creating /var/mkdoc-sites/test2.dev.webarchitects.co.uk/static
Creating /var/mkdoc-sites/test2.dev.webarchitects.co.uk/static/files
Creating /var/mkdoc-sites/test2.dev.webarchitects.co.uk/static/images
Creating /var/mkdoc-sites/test2.dev.webarchitects.co.uk/log
Creating /var/mkdoc-sites/test2.dev.webarchitects.co.uk/cache

Writing apache config files

Your mkdoc site has been installed. You should now restart
your http server. Once this is done, go to the following
address:

  http://users.test2.dev.webarchitects.co.uk/

Your default connection parameters will be:

  user: admin
  password: shiomens

Up

This document was last modified by Chris Croome on 2006-06-08 04:22:12
MKDoc Ltd., 31 Psalter Lane, Sheffield, S11 8YL, UK.
Copyright © 2001-2006 MKDoc Ltd.