1 diff -Naur SF2.0/backend/include.pl SF2.0-p/backend/include.pl
2 --- SF2.0/backend/include.pl Thu Sep 7 23:37:53 2000
3 +++ SF2.0-p/backend/include.pl Tue Sep 19 20:56:39 2000
5 ########################
6 # global configuration #
7 ########################
8 -$config{'database_include'} = '/etc/local.inc'; # database include file
9 +$config{'database_include'} = '/etc/SourceForge/local.inc'; # database include file
10 $config{'lock_file'} = '/tmp/sf-backend'; # lockfile location
11 $config{'log_file'} = '/home/dummy/backend.log'; # logfile location
12 $config{'group_dir_prefix'} = '/home/groups'; # prefix for group directories
13 diff -Naur SF2.0/docs/Install_Guide.html SF2.0-p/docs/Install_Guide.html
14 --- SF2.0/docs/Install_Guide.html Thu Sep 7 23:37:52 2000
15 +++ SF2.0-p/docs/Install_Guide.html Tue Sep 19 20:55:26 2000
18 b) You see an error message like this:
20 - Fatal error: Failed opening required '/etc/local.inc' in database.php on line 11
21 + Fatal error: Failed opening required '/etc/SourceForge/local.inc' in database.php on line 11
23 In either cases it means that the pre.php file was found and that the include
26 -------------------------------------------------------------------------------
27 Configuring SourceForge
29 -1) Create the /etc/local.inc file with the following:
33 - $sys_dbhost="your_db_host_name";
34 - $sys_dbname = "sourceforge";
35 - $sys_dbuser="user_name";
36 - $sys_dbpasswd="your_password";
37 - $sys_server="mysql";
40 - // With a trailing /
42 - $sys_urlroot="/path/to/www/doc/root/";
45 +1) Create the /etc/SourceForge/local.inc depending on supplied
46 +example file. All variable names should be self-explanatory.
48 2) Look at the home page http://localhost/
49 It should display well.
50 diff -Naur SF2.0/utils/include.pl SF2.0-p/utils/include.pl
51 --- SF2.0/utils/include.pl Thu Sep 7 23:37:52 2000
52 +++ SF2.0-p/utils/include.pl Tue Sep 19 20:55:37 2000
54 ##############################
56 ##############################
57 -$db_include = "/etc/local.inc"; # Local Include file for database username and password
58 +$db_include = "/etc/SourceForge/local.inc"; # Local Include file for database username and password
59 $tar_dir = "/tmp"; # Place to put deleted user's accounts
60 $uid_add = "20000"; # How much to add to the database uid to get the unix uid
61 $gid_add = "1000"; # How much to add to the database gid to get the unix uid
62 diff -Naur SF2.0/www/include/pre.php SF2.0-p/www/include/pre.php
63 --- SF2.0/www/include/pre.php Thu Sep 7 23:37:53 2000
64 +++ SF2.0-p/www/include/pre.php Tue Sep 19 20:55:48 2000
67 // Defines all of the Source Forge hosts, databases, etc.
68 // This needs to be loaded first becuase the lines below depend upon it.
69 -require ('/etc/local.inc');
70 +require ('/etc/SourceForge/local.inc');
72 if (($HTTP_HOST != $GLOBALS['sys_default_domain']) && ($HTTP_HOST != 'localhost')) {
73 if ($SERVER_PORT == '443') {
74 diff -Naur SF2.0/www/include/squal_pre.php SF2.0-p/www/include/squal_pre.php
75 --- SF2.0/www/include/squal_pre.php Thu Sep 7 23:37:53 2000
76 +++ SF2.0-p/www/include/squal_pre.php Tue Sep 19 20:56:01 2000
81 -require ('/etc/local.inc');
82 +require ('/etc/SourceForge/local.inc');
83 require('database.php');
84 require('session.php');