]>
Commit | Line | Data |
---|---|---|
a6ce62a7 SZ |
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 | |
4 | @@ -10,7 +10,7 @@ | |
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/db/SourceForge.sql SF2.0-p/db/SourceForge.sql | |
14 | --- SF2.0/db/SourceForge.sql Thu Sep 7 23:39:37 2000 | |
15 | +++ SF2.0-p/db/SourceForge.sql Tue Sep 19 20:49:25 2000 | |
16 | @@ -526,7 +526,7 @@ | |
17 | ||
18 | CREATE TABLE frs_file ( | |
19 | file_id int(11) NOT NULL auto_increment, | |
20 | - filename text, | |
21 | + filename char(255) NOT NULL, | |
22 | release_id int(11) DEFAULT '0' NOT NULL, | |
23 | type_id int(11) DEFAULT '0' NOT NULL, | |
24 | processor_id int(11) DEFAULT '0' NOT NULL, | |
25 | diff -Naur SF2.0/docs/Install_Guide.html SF2.0-p/docs/Install_Guide.html | |
26 | --- SF2.0/docs/Install_Guide.html Thu Sep 7 23:37:52 2000 | |
27 | +++ SF2.0-p/docs/Install_Guide.html Tue Sep 19 20:55:26 2000 | |
28 | @@ -166,7 +166,7 @@ | |
29 | ||
30 | b) You see an error message like this: | |
31 | ||
32 | - Fatal error: Failed opening required '/etc/local.inc' in database.php on line 11 | |
33 | + Fatal error: Failed opening required '/etc/SourceForge/local.inc' in database.php on line 11 | |
34 | ||
35 | In either cases it means that the pre.php file was found and that the include | |
36 | path is correct. | |
37 | @@ -174,22 +174,8 @@ | |
38 | ------------------------------------------------------------------------------- | |
39 | Configuring SourceForge | |
40 | ||
41 | -1) Create the /etc/local.inc file with the following: | |
42 | - | |
43 | - <?php | |
44 | - | |
45 | - $sys_dbhost="your_db_host_name"; | |
46 | - $sys_dbname = "sourceforge"; | |
47 | - $sys_dbuser="user_name"; | |
48 | - $sys_dbpasswd="your_password"; | |
49 | - $sys_server="mysql"; | |
50 | - | |
51 | - // | |
52 | - // With a trailing / | |
53 | - // | |
54 | - $sys_urlroot="/path/to/www/doc/root/"; | |
55 | - $sys_name="web1"; | |
56 | - ?> | |
57 | +1) Create the /etc/SourceForge/local.inc depending on supplied | |
58 | +example file. All variable names should be self-explanatory. | |
59 | ||
60 | 2) Look at the home page http://localhost/ | |
61 | It should display well. | |
62 | diff -Naur SF2.0/utils/include.pl SF2.0-p/utils/include.pl | |
63 | --- SF2.0/utils/include.pl Thu Sep 7 23:37:52 2000 | |
64 | +++ SF2.0-p/utils/include.pl Tue Sep 19 20:55:37 2000 | |
65 | @@ -8,7 +8,7 @@ | |
66 | ############################## | |
67 | # Global Variables | |
68 | ############################## | |
69 | -$db_include = "/etc/local.inc"; # Local Include file for database username and password | |
70 | +$db_include = "/etc/SourceForge/local.inc"; # Local Include file for database username and password | |
71 | $tar_dir = "/tmp"; # Place to put deleted user's accounts | |
72 | $uid_add = "20000"; # How much to add to the database uid to get the unix uid | |
73 | $gid_add = "1000"; # How much to add to the database gid to get the unix uid | |
74 | diff -Naur SF2.0/www/include/pre.php SF2.0-p/www/include/pre.php | |
75 | --- SF2.0/www/include/pre.php Thu Sep 7 23:37:53 2000 | |
76 | +++ SF2.0-p/www/include/pre.php Tue Sep 19 20:55:48 2000 | |
77 | @@ -12,7 +12,7 @@ | |
78 | ||
79 | // Defines all of the Source Forge hosts, databases, etc. | |
80 | // This needs to be loaded first becuase the lines below depend upon it. | |
81 | -require ('/etc/local.inc'); | |
82 | +require ('/etc/SourceForge/local.inc'); | |
83 | ||
84 | if (($HTTP_HOST != $GLOBALS['sys_default_domain']) && ($HTTP_HOST != 'localhost')) { | |
85 | if ($SERVER_PORT == '443') { | |
86 | diff -Naur SF2.0/www/include/squal_pre.php SF2.0-p/www/include/squal_pre.php | |
87 | --- SF2.0/www/include/squal_pre.php Thu Sep 7 23:37:53 2000 | |
88 | +++ SF2.0-p/www/include/squal_pre.php Tue Sep 19 20:56:01 2000 | |
89 | @@ -6,7 +6,7 @@ | |
90 | // | |
91 | // $Id$ | |
92 | ||
93 | -require ('/etc/local.inc'); | |
94 | +require ('/etc/SourceForge/local.inc'); | |
95 | require('database.php'); | |
96 | require('session.php'); | |
97 | require('user.php'); |