📄 install.rc
字号:
## This is a Template-File for WWWdb#### --- Description of the data to access -----------------------------------------[Data]Table =Order =UpdFields =QryFields =# Buttons for all states# please note that "-" deactivates a Button[State All]BtnCancel = -BtnHelp = -BtnExit = -# This is the state when the form is called the first time, or the Back-button# is pressed[State Init]BtnNew = -BtnQry = -Header = WWWdb Help - Installation# --- Here are the examples for the single fields -------------------------------[Layout Label header]Pos = +1.+0+4.0Text = <<EOFHow to install <B>WWWdb</B><BR><BR>EOFFont = color=blueBig = yesAlign = center[Layout Label install0]Pos = +1.+0+4.0Text = <<EOF<BR><BR>General information<BR><BR>EOFFont = color=blueBold = yesAlign = center[Layout Label install0_0]Pos = +1.+0+4.0Align = leftText = <<EOF<B>WWWdb</B> is in a beta state. This means, that tons of ideasare waiting to be implemented, not that the software isn't stable. Ofcourse, there are some bugs in, but you should run it stable on yoursystem, as we do.<BR><BR>Because of the beta state, bigger changes in theconfig-file could be expected. So I plan for the future, to store allinformations in the database. Of course, there will be tools whichdo the conversion!Also no automated installation-process is available yet, but in the futureit will come. :-)<BR><BR>This examples are working on a SuSE 6.2 Distribution with apacheinstalled in the /usr/local/httpd-hierarchy.EOF[Layout Label install0_1]Pos = +1.+0+4.0Align = leftText = <<EOFNOTE:<BR>Every Line prefixed with a '$' shows you, what to type for doing thisinstallation-step.The installation works as follows:EOF[Layout Label install1]Pos = +1.+0+4.0Text = <<EOF<BR><BR>Unpack WWWdb<BR><BR>EOFFont = color=blueBold = yesAlign = center[Layout Label install1_0]Pos = +1.+0+4.0Text = <<EOFUntar the tar-ball in the directory you want it, (by example<TT>/usr/local/lib</TT>) with:EOF[Layout Label install1_1]Pos = +1.+0+4.0BgColor = #f0f0f0Font = face=fixedText = "$ tar xvfz WWWdb-<Version>.tar.gz"[Layout Label install2_0]Pos = +1.+0+4.0Text = "Switch to the new created directory:"[Layout Label install2_1]Pos = +1.+0+4.0BgColor = #f0f0f0Font = face=fixedText = "$ cd WWWdb-<Version>"[Layout Label install3]Pos = +1.+0+4.0Text = <<EOF<BR><BR>Set up the web-server to work with WWWdb<BR><BR>EOFFont = color=blueBold = yesAlign = center[Layout Label install3_0]Pos = +1.+0+4.0Text = <<EOFConfigure the Apache-Server (if you haven't done this with a previous versionof <B>WWWdb</B>):<UL><LI>must be compiled and installed with perl_mod</LI><LI>make apache recognize URIs of the form:<BR> http://localhost/WWWdb/<Session-Id>/<Database>/<Config-file></LI></UL> This steps must be done as root (and do not forget to use >> for redirection, else your httpd-config-file gets killed):EOF[Layout Label install3_1]Pos = +1.+0+4.0BgColor = #f0f0f0Font = face=fixedText = "$ cat ApacheConfig.addon >>/etc/httpd/httpd.conf"[Layout Label install4_0]Pos = +1.+0+4.0Text = <<EOF Now the pointer to your Address-translation-handler is installed. Of course the handler itself must be installed. On my System it's done with:EOF[Layout Label install4_1]Pos = +1.+0+4.0BgColor = #f0f0f0Font = face=fixedText = "$ cp WWWdb_TransUri.pm /usr/lib/perl5/site_perl/5.005/i586-linux/Apache"[Layout Label install5_0]Pos = +1.+0+4.0Text = <<EOFNow the apache-sever must be restarted:EOF[Layout Label install5_1]Pos = +1.+0+4.0BgColor = #f0f0f0Font = face=fixedText = "$ /sbin/init.d/apache restart"[Layout Label install6_0]Pos = +1.+0+4.0Text = <<EOFIf no error-messages appear, apache should be working correct now.EOF[Layout Label install7]Pos = +1.+0+4.0Text = <<EOF<BR><BR>Now we install <B>WWWdb</B> ...<BR><BR>EOFFont = color=blueBold = yesAlign = center[Layout Label install7_0]Pos = +1.+0+4.0Text = "Install the script WWWdb.cgi:"[Layout Label install7_1]Pos = +1.+0+4.0BgColor = #f0f0f0Font = face=fixedText = "$ cp WWWdb.cgi /usr/local/httpd/cgi-bin"[Layout Label install8_0]Pos = +1.+0+4.0Text = "Install the WWWdb-data-directory (here with a symbolic link)"[Layout Label install8_1]Pos = +1.+0+4.0BgColor = #f0f0f0Font = face=fixedText = "$ ln -sf `pwd` /usr/local/httpd/htdocs/WWWdb"[Layout Label install8_1_0]Pos = +1.+0+4.0Text = "Create and set the right permissions for the tmp-directory"[Layout Label install8_1_1]Pos = +1.+0+4.0BgColor = #f0f0f0Font = face=fixedText = <<EOF$ mkdir tmp<BR>$ chmod 777 tmp<BR>EOF[Layout Label install8_2_0]Pos = +1.+0+4.0Text = "Set your hostname in lib/WWWdb/Pre.rc"[Layout Label install8_2_2]Pos = +1.+0+4.0BgColor = #f0f0f0Font = face=fixedText = <<EOF$ vi lib/WWWdb/Pre.rcEOF[Layout Label install9_0_0]Pos = +1.+0+4.0Text = <<EOF<BR><BR>Prepare your Database<BR><BR>EOFFont = color=blueBold = yesAlign = center[Layout Label install9_1_0]Pos = +1.+0+4.0Text = "Set your db-name etc in lib/WWWdb/Db/<Db>.rc"[Layout Label install9_1_2]Pos = +1.+0+4.0BgColor = #f0f0f0Font = face=fixedText = <<EOF$ vi lib/WWWdb/Db/<Db>.rcEOF[Layout Label install9_2_1]Pos = +1.+0+4.0Text = "<BR>Create links for the db-dummys '' and Default."[Layout Label install9_2_2]Pos = +1.+0+4.0BgColor = #f0f0f0Font = face=fixedText = <<EOF$ ln -sf lib/WWWdb/Db/<Db>.rc lib/WWWdb/Db/.rc<BR>$ ln -sf lib/WWWdb/Db/<Db>.rc lib/WWWdb/Db/Default.rc<BR>$ ln -sf lib/WWWdb/Db/<Db>.pl lib/WWWdb/Db/.pl<BR>$ ln -sf lib/WWWdb/Db/<Db>.pl lib/WWWdb/Db/Default.pl<BR>EOF[Layout Label install9_3_1]Pos = +1.+0+4.0Text = <<EOF<BR>Now, you need to setup the database. Currently a script for PostgreSQLis in the distribution. It sets up a complete new database from thescratch.<BR>EOF[Layout Label install9_3_2]Pos = +1.+0+4.0BgColor = #f0f0f0Font = face=fixedText = <<EOF$ psql <your_database_name><BR>Welcome to the POSTGRESQL interactive sql monitor:<BR>Please read the file COPYRIGHT for copyright terms of POSTGRESQL<BR><BR> type \? for help on slash commands<BR> type \q to quit<BR> type \g or terminate with semicolon to execute query<BR> You are currently connected to the database: wwwdb<BR>wwwdb=> \i lib/WWWdb/Db/wwwdb.dump<BR>EOF[Layout Label install9_4]Pos = +1.+0+4.0Text = <<EOF<BR><BR>Prepare your Perl-Distribution<BR><BR>EOFFont = color=blueBold = yesAlign = center[Layout Label install9_4_0]Pos = +1.+0+4.0Text = <<EOFHere on my 'clean' SuSE 6.2 Distribution, the following perl-modulesmust be added (in this sequence):<OL><LI><B>DBD-Oracle</B> - DBI-Driver for Oracle and/or</LI><LI><B>DBD-Pg</B> - BI-Driver for Postgres</LI><LI><B>DBI</B> - The Database-Interface</LI><LI><B>DBIx::Recordset</B> - The basic mechanism for db-access</LI><LI><B>IniConf</B> - Parsing of config-files</LI><LI><B>HTML-Parser</B> - HTML en-/decryption</LI><LI><B>LogCarp</B> - Redirect perl-error-messages</LI><LI><B>Carp-Assert</B> - Security-assertions for development</LI><LI><B>Digest-MD5</B> - creating of unique Hashes</LI></OL>To make it easier to install this modules, they are packed in the<TT>./contrib</TT>-subtree.<BR><BR>The installation-process is easy:EOF[Layout Label install9_4_1]Pos = +1.+0+4.0BgColor = #f0f0f0Font = face=fixedText = <<EOF$ tar xvfz <Module>.tar.gz<BR>$ cd <Module><BR>$ perl Makefile.PL<BR>$ make<BR>$ make test # if you want<BR>$ make install # as root<BR>EOF[Layout Label install9_5_0]Pos = +1.+0+4.0Text = <<EOFIf you use some datatypes like <i>date</i> etc., you have also toreplace some perl-modules, until my patched versions get included intothe distributions.<BR><BR>On my sytem the following commands are neccesary (as root):EOF[Layout Label install9_5_1]Pos = +1.+0+4.0BgColor = #f0f0f0Font = face=fixedText = <<EOF$ cp contrib/Oracle.pm /usr/lib/perl5/site_perl/5.005/i586-linux/DBD<BR>$ cp contrib/Compat.pm /usr/lib/perl5/site_perl/5.005/DBIx<BR>$ cp contrib/Recordset.pm /usr/lib/perl5/site_perl/5.005/DBIx<BR>EOF[Layout Label install9_6_0]Pos = +1.+0+4.0Text = <<EOF<BR>Enter the url http://<hostname>/wwwdb and enjoy !!!!<BR><BR>If you have any troubles, please feel free to contact me at <ahref="mailto:Klaus@twc.de">Klaus@twc.de</a> or visit our bugtracker at<a href="http://www.twc.de/jitterbug">http://www.twc.de/jitterbug</a>EOF[Layout Label install10]Pos = +1.+0+4.0Text = <<EOF<BR><BR>... now it's done!!<BR><BR>EOFFont = color=blueBold = yesAlign = center
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -