Changeset 264
- Timestamp:
- 11/01/03 22:20:19 (5 years ago)
- Location:
- trunk
- Files:
-
- 5 modified
-
Build.PL (modified) (5 diffs)
-
Changes (modified) (1 diff)
-
INSTALL (modified) (3 diffs)
-
PREREQUISITES (modified) (2 diffs)
-
TROUBLESHOOTING (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Build.PL
r263 r264 10 10 11 11 # See if we already have some config variables set. 12 use lib "lib"; 13 my %existing_config; 14 eval "use OpenGuides::Config"; 15 %existing_config = %OpenGuides::Config::config unless $@; 12 my $read_config = Config::Tiny->read('wiki.conf'); 13 my %existing_config = $read_config ? %{ $read_config->{_} } : (); 16 14 17 15 my @questions = ( … … 83 81 ); 84 82 83 print <<EOF; 84 85 Beginning install process... if you already have an OpenGuides 86 configuration file and you don't want to have to type in all your config 87 parameters over again, abort this process now, copy that file to this 88 directory, and start again. 89 90 EOF 91 92 my $continue = Module::Build->y_n("Continue with install?", "y"); 93 exit 0 unless $continue; 94 85 95 my $skip_config = Module::Build->y_n("Skip OpenGuides configuration?", "n"); 86 96 if ( $skip_config ) { … … 89 99 Skipping OpenGuides configuration - any configuration options previously 90 100 saved will be used instead. You may tweak your configuration now by 91 editing the 'wiki.conf' file produced by this script, but changes made to 92 that file will *not* stick around for the next time you install OpenGuides. 101 editing the 'wiki.conf' file produced by this script. 93 102 =========================================================================== 94 103 EOF … … 182 191 } 183 192 close FILE or die "Can't close wiki.conf: $!"; 184 185 # Now use Config::Tiny to read it all back in - bit convoluted I know.186 my $read_config = Config::Tiny->read('wiki.conf');187 %existing_config = %{ $read_config->{_} };188 189 # And pop it in OpenGuides::Config190 %OpenGuides::Config::config = %existing_config;191 open OUT, ">lib/OpenGuides/Config.pm"192 or die "Can't open lib/OpenGuides/Config.pm for writing: $!";193 194 # Sigh, I am still cargo culting this line; one day I will figure out195 # how it works (Kake).196 print OUT Data::Dumper->new([ \%OpenGuides::Config::config ],197 [ '*OpenGuides::Config::config' ]198 )->Dump,199 "\n1;\n";200 193 201 194 ##### … … 240 233 241 234 $build->add_to_cleanup( "wiki.conf" ); 235 $build->add_to_cleanup( "configlib" ); 242 236 243 237 # Tell OpenGuides::Build which additional scripts and templates to install. -
trunk/Changes
r263 r264 1 0.28 1 0.28 1 November 2003 2 2 Allow running sites on SQLite databases. 3 3 Fixed bug with navbar prompt in Build.PL (CPAN RT #3894). 4 Junked OpenGuides::Config completely to avoid database password 5 leakage, and easier install (CPAN RT 3916). 4 6 5 7 0.27 1 November 2003 -
trunk/INSTALL
r191 r264 10 10 11 11 Unpack the distribution (using for example 'tar' or 'WinZip'), and set 12 your working directory to be the top level of the distribution, then 13 execute the following commands: 12 your working directory to be the top level of the distribution. 13 14 If you have an existing "wiki.conf" configuration file and you wish 15 to keep using the values in that, copy it to this directory. 16 17 Now execute the following commands: 14 18 15 19 perl Build.PL … … 28 32 29 33 30 "what type of database do you want the site to run on? postgres/mysql"34 "what type of database do you want the site to run on?" 31 35 32 Answer either "postgres" or "mysql".36 Answer "postgres", "mysql", or "sqlite". 33 37 34 38 … … 37 41 "And the password that they use to access the database?" 38 42 39 You should create (or ask your ISP/sysadmin to create) a Postgres or 40 MySQL database specifically for the use of OpenGuides. If you have 41 more than one OpenGuides installation, for example if you run guides 42 for more than one city, each installation will need its own database. 43 (TODO - support SQLite as well (requires faffing with install scripts, 44 bit messy but CGI::Wiki already supports this so won't be hard)) 43 You should create (or ask your ISP/sysadmin to create) a database 44 specifically for the use of OpenGuides. If you have more than one 45 OpenGuides installation, for example if you run guides for more than 46 one city, each installation will need its own database. 45 47 46 48 -
trunk/PREREQUISITES
r252 r264 1 Modules required by OpenGuides 0.2 71 Modules required by OpenGuides 0.28 2 2 =================================== 3 3 … … 18 18 -- or -- 19 19 DBD::mysql 20 -- or -- 21 DBD::SQLite 20 22 ) 21 23 File::Spec::Functions -
trunk/TROUBLESHOOTING
r246 r264 45 45 46 46 ---------------------------------------------------------------------- 47 48 Again relating to permissions - if you are using SQLite then note that 49 the user your CGI is running as must have write access to not only the 50 database file itself, but the directory that the file is in (in order 51 that it can write a lockfile). 52 53 ----------------------------------------------------------------------
