2004-06-09 19:09:16 +00:00
|
|
|
<?php
|
2003-10-13 19:23:40 +00:00
|
|
|
require_once("docutil.php");
|
2004-02-09 05:11:05 +00:00
|
|
|
page_head("The make_project script");
|
2003-10-13 19:23:40 +00:00
|
|
|
echo "
|
|
|
|
<p>
|
2005-02-18 16:52:46 +00:00
|
|
|
BOINC provides a script <code>make_project</code>
|
|
|
|
for creating the server components of a BOINC project.
|
|
|
|
It has been tested on Linux and Solaris.
|
2003-10-13 19:23:40 +00:00
|
|
|
|
|
|
|
<p>
|
2004-05-31 18:13:01 +00:00
|
|
|
First, install all components listed in the
|
2004-12-15 07:08:54 +00:00
|
|
|
<a href=build.php>Software Prerequisites</a> page.
|
2005-02-18 16:52:46 +00:00
|
|
|
Then run the <code>make_project</code> script.
|
2004-02-15 19:22:01 +00:00
|
|
|
For example:
|
2003-10-13 19:23:40 +00:00
|
|
|
<pre>
|
|
|
|
cd tools/
|
2004-02-15 19:22:01 +00:00
|
|
|
./make_project cplan
|
2003-10-13 19:23:40 +00:00
|
|
|
</pre>
|
2004-02-15 19:22:01 +00:00
|
|
|
creates a project with master URL
|
|
|
|
http://<hostname>/cplan/
|
|
|
|
whose directory structure is rooted at
|
2004-03-15 20:40:59 +00:00
|
|
|
\$HOME/projects/cplan.
|
2003-10-13 19:23:40 +00:00
|
|
|
|
|
|
|
<p>
|
2005-02-18 16:52:46 +00:00
|
|
|
More specifically, <code>make_project</code> does the following:
|
2003-10-13 19:23:40 +00:00
|
|
|
<ul>
|
|
|
|
<li> Create the project directory and its subdirectories.
|
|
|
|
<li> Create the project's encryption keys if necessary.
|
2005-02-18 16:52:46 +00:00
|
|
|
NOTE: before making the project visible to the public,
|
2003-10-13 19:23:40 +00:00
|
|
|
you must move the code-signing private key
|
|
|
|
to a highly secure (preferably non-networked) host,
|
|
|
|
and delete it from the server host.
|
2004-02-15 19:22:01 +00:00
|
|
|
<li> Create and initialize the MySQL database
|
|
|
|
<li> Copy source and executable files
|
|
|
|
<li> Generate the project's configuration file.
|
2003-10-13 19:23:40 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
The script gives further instructions, namely
|
|
|
|
<ul>
|
2004-02-15 19:22:01 +00:00
|
|
|
<li>It generates a template Apache config file that you can insert
|
|
|
|
into /etc/apache/httpd.conf (path varies), or Include directly.
|
2003-10-13 19:23:40 +00:00
|
|
|
<li>It generates a crontab line to paste.
|
|
|
|
</ul>
|
|
|
|
|
2005-02-18 16:52:46 +00:00
|
|
|
The command-line syntax is as follows:
|
2003-10-13 19:23:40 +00:00
|
|
|
<pre>
|
2005-02-18 16:52:46 +00:00
|
|
|
make_project [options] project_name [ 'Project Long Name ' ]
|
2003-10-13 19:23:40 +00:00
|
|
|
</pre>
|
|
|
|
|
2005-02-18 16:52:46 +00:00
|
|
|
Options are:
|
2003-10-13 19:23:40 +00:00
|
|
|
";
|
2005-02-18 16:52:46 +00:00
|
|
|
list_start();
|
|
|
|
list_bar("directory options");
|
|
|
|
list_item("--project_root",
|
|
|
|
"Project root directory path. Default: \$HOME/projects/PROJECT_NAME"
|
|
|
|
);
|
|
|
|
list_item("--key_dir", "Where keys are stored. Default: PROJECT_ROOT/keys");
|
|
|
|
list_item("--url_base", "Determines master URL Default: http://\$NODENAME/");
|
|
|
|
list_item("--no_query", "Accept all directories without querying");
|
|
|
|
list_item("--delete_prev_inst", "Delete project-root first (from prev installation)");
|
|
|
|
|
|
|
|
list_bar("URL options");
|
|
|
|
list_item("--html_user_url", "User URL. Default: URL_BASE/PROJECT/");
|
|
|
|
list_item("--html_ops_url", "Admin URL. Default: URL_BASE/PROJECT_ops/");
|
|
|
|
list_item("--cgi_url", "CGI URL. Default: URL_BASE/PROJECT_cgi/");
|
|
|
|
|
|
|
|
list_bar("database options");
|
|
|
|
list_item("--db_host", "Database host. Default: none (this host)");
|
|
|
|
list_item("--db_name", "Database name. Default: PROJECT");
|
|
|
|
list_item("--db_user", "Database user. Default: this user");
|
|
|
|
list_item("--db_passwd", "Database password. Default: None");
|
|
|
|
list_item("--drop_db_first", "Drop database first (from prev installation)");
|
|
|
|
|
|
|
|
list_bar("debugging options");
|
|
|
|
list_item("--verbose={0,1,2}", "default: 1");
|
|
|
|
list_item("-v", "alias for --verbose=2");
|
|
|
|
list_item("-h or --help", "Show options");
|
|
|
|
|
|
|
|
list_end();
|
2003-10-13 19:23:40 +00:00
|
|
|
page_tail();
|
|
|
|
?>
|