2004-02-12 01:13:47 +00:00
|
|
|
<?php
|
|
|
|
require_once("docutil.php");
|
2005-09-29 23:18:33 +00:00
|
|
|
page_head("Upgrading server software");
|
2005-03-17 22:46:07 +00:00
|
|
|
echo "
|
|
|
|
<p>
|
2005-09-29 23:18:33 +00:00
|
|
|
The BOINC server software (scheduler, daemons, web pages)
|
|
|
|
is continually improved and debugged.
|
|
|
|
We recommend that projects upgrade to the latest version
|
|
|
|
every few weeks or so.
|
|
|
|
There may also be points
|
|
|
|
upgrades are mandatory to continue working with current client software.
|
2004-11-02 23:42:24 +00:00
|
|
|
|
|
|
|
<p>
|
2005-09-29 23:18:33 +00:00
|
|
|
The steps in upgrading are as follows:
|
|
|
|
|
|
|
|
<ol>
|
|
|
|
<li> (Optional) stop the project,
|
|
|
|
and make backups of the project database and the project tree.
|
2006-05-29 16:37:56 +00:00
|
|
|
<li> <a href=source_code.php>Download</a> (using CVS) the current source code.
|
2005-09-29 23:18:33 +00:00
|
|
|
Compile it in your BOINC source directory.
|
|
|
|
<li>
|
|
|
|
Run the <code>upgrade</code> script:
|
2005-03-17 22:46:07 +00:00
|
|
|
<pre>
|
|
|
|
cd source/tools
|
|
|
|
upgrade project_name
|
|
|
|
</pre>
|
2004-02-12 01:13:47 +00:00
|
|
|
|
2005-09-29 23:18:33 +00:00
|
|
|
The <code>upgrade</code> script copies files
|
|
|
|
from the source/html/, source/sched and source/tool
|
|
|
|
directories to the corresponding project directories
|
|
|
|
(the default project root directory is \$HOME/projects/project_name;
|
|
|
|
<code>upgrade</code> takes an optional environment variables INSTALL_DIR
|
|
|
|
specifying the project's root directory).
|
|
|
|
|
2005-03-17 22:46:07 +00:00
|
|
|
<li>
|
2005-09-29 23:18:33 +00:00
|
|
|
Update your project's database if needed:
|
|
|
|
<pre>
|
|
|
|
cd project/html/ops
|
|
|
|
</pre>
|
|
|
|
and look at the file db_update.php.
|
|
|
|
This has a number of functions with names like
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
update_8_05_2005()
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
Each function performs a particular database update.
|
|
|
|
You must perform all updates, in sequence,
|
|
|
|
since your last server software upgrade.
|
|
|
|
(If you're not sure when that was, you can use mysql
|
|
|
|
to see that current format of your database, e.g.,
|
|
|
|
to see the fields in the 'user' table, type
|
|
|
|
<pre>
|
|
|
|
mysql project_name
|
2005-10-14 04:41:53 +00:00
|
|
|
> explain user;
|
2005-09-29 23:18:33 +00:00
|
|
|
</pre>
|
|
|
|
To do a particular update,
|
|
|
|
edit db_update.php so that (at the bottom) it calls that function.
|
|
|
|
Then do
|
|
|
|
<pre>
|
|
|
|
php db_update.php
|
|
|
|
</pre>
|
|
|
|
Repeat this for the necessary updates, in increasing chronological order.
|
|
|
|
|
2005-03-17 22:46:07 +00:00
|
|
|
<li>
|
2005-09-29 23:18:33 +00:00
|
|
|
Start the project, and check log files to make sure everything is OK.
|
|
|
|
Run the BOINC client and test basic functions
|
|
|
|
(attaching to project, getting work).
|
2005-10-14 04:41:53 +00:00
|
|
|
</ol>
|
2004-11-02 23:42:24 +00:00
|
|
|
|
2005-03-17 22:46:07 +00:00
|
|
|
";
|
|
|
|
page_tail();
|
2004-02-12 01:13:47 +00:00
|
|
|
?>
|