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>
|
2004-02-09 05:11:05 +00:00
|
|
|
BOINC provides a script for setting up a BOINC project.
|
2003-10-13 19:23:40 +00:00
|
|
|
This has been tested only on Linux and Solaris hosts;
|
|
|
|
it may work with small modifications on Windows also.
|
|
|
|
|
2004-05-31 18:13:01 +00:00
|
|
|
<h3>Creating the server</h3>
|
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.
|
2003-10-13 19:23:40 +00:00
|
|
|
|
|
|
|
<p>
|
2004-02-15 19:22:01 +00:00
|
|
|
Run the <code>make_project</code> script.
|
|
|
|
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
|
|
|
<pre>
|
|
|
|
cd tools/
|
2004-02-15 19:22:01 +00:00
|
|
|
./make_project --base \$HOME/boinc --url_base http://boink/ cplan 'Cunning Plan'
|
2003-10-13 19:23:40 +00:00
|
|
|
</pre>
|
2004-02-15 19:22:01 +00:00
|
|
|
creates a project with master URL
|
|
|
|
http://boink/cplan/ and long name <b>Cunning Plan</b>,
|
|
|
|
rooted at \$HOME/boinc/projects/cplan.
|
2003-10-13 19:23:40 +00:00
|
|
|
|
|
|
|
<p>
|
|
|
|
See 'make_project --help' for more command-line options available (such as
|
|
|
|
finer control of directory structure or clobbering an existing installation).
|
|
|
|
|
|
|
|
<p>
|
|
|
|
The script does the following:
|
|
|
|
<ul>
|
|
|
|
<li> Create the project directory and its subdirectories.
|
|
|
|
<li> Create the project's encryption keys if necessary.
|
|
|
|
NOTE: before making the project publicly visible,
|
|
|
|
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>
|
|
|
|
|
2004-02-15 19:22:01 +00:00
|
|
|
The PHP scripts need access to the database,
|
2003-10-13 19:23:40 +00:00
|
|
|
so the user that Apache runs under needs SELECT,INSERT,UPDATE,DELETE
|
|
|
|
to the database just created.
|
|
|
|
|
2004-02-09 05:11:05 +00:00
|
|
|
<p>
|
2004-02-15 19:22:01 +00:00
|
|
|
You should also make sure httpd.conf sets the default MIME type as follows:
|
2003-10-13 19:23:40 +00:00
|
|
|
<pre>
|
|
|
|
DefaultType application/octet-stream
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
";
|
|
|
|
page_tail();
|
|
|
|
?>
|