1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
4 <!-- $Id: index.html 1457 2010-10-26 15:47:41Z ftruscot $ -->
5 <title>Nucleus CMS - Manual</title>
6 <link rel="stylesheet" type="text/css" href="styles/manual.css" />
18 <li>This manual only contains information that is not already contained in the popup-help (<a href="help.html">help.html</a>) available from the administration area. This document also contains instruction for the <a href="#installation">installation</a> of Nucleus.</li>
19 <li>If you're a developer, <a href="devdocs/index.html">extra developer documentation</a> is available.</li>
23 <h1><a name="toc"></a>Table Of Contents</h1>
26 <li><a href="#about">About Nucleus CMS</a></li>
27 <li><a href="#license">License: GPL</a></li>
28 <li><a href="#installation">Installation</a></li>
29 <li><a href="skins.html">Modifying skins and templates</a> (separate file)</li>
30 <li><a href="#security">Security Aspects</a></li>
31 <li><a href="#performance">Performance Aspects</a></li>
32 <!-- <li><a href="#import">Importing from other tools</a></li> -->
33 <li><a href="#comments">What's allowed/disallowed in comments?</a></li>
34 <li><a href="#xmlrpc">XML-RPC Interface</a></li>
35 <li><a href="#trouble">Troubleshooting (FAQ)</a></li>
36 <li><a href="tips.html">Tips & Suggestions</a> (separate file)</li>
37 <li><a href="#known">Known Problems</a></li>
38 <li><a href="history.html">Version History</a> (separate file)</li>
39 <li><a href="#credits">Credits & Thanks</a></li>
42 <h1>About Nucleus <a name="about" href="#top" class="toplink"><img src="icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>
45 Nucleus is a Content Management System (CMS): a powerful set of PHP scripts that allow you to maintain one or more weblogs or online journals. A short summary of the most important features is given below:
49 <li>Runs on your own server</li>
50 <li>One or more weblogs, even on the same page</li>
51 <li>Plugin-interface to add extra functionality</li>
56 <li>Multiple authors</li>
59 <li>Extensive administration area</li>
60 <li>Media library and file upload</li>
61 <li>Fully customizable skins and templates</li>
62 <li>Skin import/export</li>
63 <li>Banlist against commenting system abuse</li>
64 <li>RSS syndication</li>
65 <li>Easy installation</li>
67 <li>XML-RPC interface (implementing the <a href="http://plant.blogger.com/api/">Blogger API</a> and <a href="http://www.xmlrpc.com/metaWeblogApi">metaWeblog API</a>)</li>
69 <li>Tools to import Blogger and GreyMatter blogs</li>
74 Requirements in order to run Nucleus: <small>(If you don't know if you fit the requirements, ask your system administrator)</small>
78 <li><a href="http://www.php.net/">PHP</a> (version 5.0.0 or higher, may still work on version 4.0.6 or higher)</li>
79 <li>Access to a <a href="http://www.mysql.com/">MySQL</a> database (version 4 or higher)</li>
80 <li>Some <acronym title="Hypertext Markup Language">HTML</acronym> and <acronym title="Cascading Style Sheets">CSS</acronym> knowledge, to edit skins and templates</li>
86 Nucleus is intended for the people that want full control and 'tweakability' over their sites. If you're just looking for a very simple way to put up a site, or don't know any HTML, you might want to use a 'simpler' service such as <a href="http://www.blogger.com/">Blogger</a>.
92 <a name="license"></a>
93 <h1>License <a name="copyright" href="#top" class="toplink"><img src="icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>
96 Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
98 Copyright (C) 2002-2007 The Nucleus Group
101 <p>This program is free software; you can redistribute it and/or
102 modify it under the terms of the GNU General Public License
103 as published by the Free Software Foundation; either version 2
104 of the License, or (at your option) any later version.</p>
106 <p>This program is distributed in the hope that it will be useful,
107 but WITHOUT ANY WARRANTY; without even the implied warranty of
108 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
109 GNU General Public License for more details.</p>
111 <p>You should have received a <a href="../../license.txt">copy of the GNU General Public License</a>
112 along with this program; if not, write to the Free Software
113 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</p>
116 Your possession of this software signifies that you agree to these terms. Please delete your copy of this software if you don't agree to these terms.
120 <h1>Installation <a name="installation" href="#top" class="toplink"><img src="icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>
123 <b>Note:</b> If you are upgrading, you should see the <a href="http://www.nucleuscms.org/upgrade.php">upgrade instructions</a> on the Nucleus website.
127 Installing Nucleus is done through some steps:
133 Unzip all files to a directory of your computer. Make sure the path names are used when unzipping. You should end up with the following directory structure (* stands for a number of files):
137 /* (main files for site)
138 /nucleus/* (main files for admin-area)
139 /nucleus/javascript/* (javascript helper scripts)
140 /nucleus/libs/* (Nucleus core libs)
141 /nucleus/locales/* (definitions of locales)
142 /nucleus/plugins/* (plugin-dir)
143 /nucleus/xmlrpc/* (XML-RPC interface)
144 /nucleus/documentation/* (Documentation + admin-area help)
145 /nucleus/styles/* (stylesheets for docs & admin-area)
146 /nucleus/forms/* (skeletons for commentforms etc)
147 /extra/* (extra goodies, e.g. needed files to enable fancy URLs)
148 /skins/* (skins directory [imported skins will go here])
149 /media/* (media library directory [emtpy])
153 <h2>2. Upload files</h2>
156 Upload all files to your server, using your favorite FTP program. Make sure to upload .php files in ASCII mode! It might not work otherwise.
163 To make your install process even easier, you can change the file permissions on <em>config.php</em> to <strong>666</strong>. This way, the install script will be able to update it automatically instead of you having it to do manually. (<a href="tips.html#filepermissions">Quick guide on how to change file permissions</a>)
166 If you want to use file upload, you'll need to add write permissions to the /media/ directory. This is needed in order to allow PHP to write uploaded files into that directory. The directory should be <i>chmod</i>ded to <strong>777</strong> (<a href="tips.html#filepermissions">Quick guide on how to change file permissions</a>). (If you have root access, you can instead <tt>chgrp</tt> the directory to the user that is running the <tt>httpd</tt> process (usually <tt>httpd</tt> or <tt>nobody</tt>, then <tt>chmod 775</tt> the directory).
169 If you want to use the SkinFiles plugin to edit files, you'll need to change the permissions on all files and directories under the /skins/ directory. To be able to edit files, they should be <i>chmod</i>ded to <strong>666</strong> (<a href="tips.html#filepermissions">Quick guide on how to change file permissions</a>). To be able to create new files or directories, the parent directory should be <i>chmod</i>ded to <strong>777</strong>.
174 <h2>3. Run install.php</h2>
177 Open your web browser open the URL below, where you adapt the <i>yoursite</i> and <i>yourpath</i> parts.
181 http://www.yoursite.com/yourpath/install.php
185 This install-script will prompt you for some information, and perform most of the installation for you. When everything has succeeded, <i>install.php</i> will provide you with further instructions. (you'll still need to delete some files manually)
189 <b>Note:</b> When you open <i>install.php</i> in your browser and you see the text "If you see this text in your browser...", or you are prompted to download 'install.php', then your web server does not support PHP, and you won't be able to run Nucleus there.
195 You should now be able to visit your site at http://yoursite.com/weblog/ (or whatever URL maps to the location where you uploaded the Nucleus site main files)
204 <h1>Security Aspects <a name="security" href="#top" class="toplink"><img src="icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>
206 <h2>mySQL passwords</h2>
209 Since Nucleus needs to connect to a mySQL database from a PHP-script, the password for that database must be stored inside a PHP-file. On multi-user systems, this might cause an unevitable security risk: On some systems, other users will be able to read your login information. You might want to contact your system operator to find out how secure it is to store sensible information inside PHP-scripts.
213 The problem above is common to all PHP scripts that need to connect to a database. As a user, there's usually nothing you can do about it in order to make things 100% secure. We just want you to be aware of this potential danger.
219 Nucleus uses cookies to store user login information. This could cause a security risk when your cookies are stolen. Although your password is not derivable from the cookie <small>(the values stored in the cookie are the username and a randomly generated string)</small>, there could be ways to 'fake' the cookie on another computer and thus to get logged in.
225 When you want to enable file upload, you'll need to set the permissions of the media dir to 777, which means that <b>everyone</b> on that server will be able to delete/add/... files. The reason why this is needed, is that PHP mostly runs as the httpd user, and that user needs to be able to access this dir and write to it. Here also, there's no way around this.
232 <h1>Performance Aspects <a name="performance" href="#top" class="toplink"><img src="icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>
235 Contradictory to some other weblog/online journal scripts, Nucleus does not generate a static version of all items. This means that every time a page is requested, the PHP parser is called and the database is accessed to dynamically create the requested page.
239 For small web sites, this should not cause any problem. For web sites that get dozens of hits per second, the effect on the systems performance isn't really known. So far, no problems have been reported by Nucleus users (some are running pretty big sites on it, with 30 or more weblogs on a single installation).
246 <h1>Importing From Other Tools <a name="import" href="#top" class="toplink"><img src="icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>
249 Nucleus contains some conversion scripts that allow you to import the data from your 'old' weblog tool into your Nucleus weblog. No data is destroyed during this process.
253 More information is available on the <a href="http://www.nucleuscms.org/convert.php">Nucleus website</a>. At the time of release, the only available conversion tools are those for Blogger and GreyMatter blogs.
258 <h1>What's allowed/disallowed in comments? <a name="comments" href="#top" class="toplink"><img src="icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>
261 Nucleus has some built-in rules concerning comments:
265 <li>words longer than 90 characters are not allowed (why: layout might get messed up when people do that) </li>
266 <li>the actual comment should be at least 3 characters long</li>
267 <li>comments cannot be longer than 5000 characters </li>
268 <li>guests need to enter a username of at least 2 characters </li>
269 <li>guests cannot use quotes or newlines in username/email </li>
270 <li>each sequence of 3 newlines in the body gets replaced by a single newline (why: layout)</li>
271 <li>HTML tags are replaced by entities</li>
272 <li>the comment is trimmed (leading and trailing whitespace is left of)</li>
273 <li>URLs are 'hreffed'. To avoid layout mess-ups, the URLs are shortened.</li>
277 As for now, all of these rules and parameters are hardwired into the code.
285 <h1>XML-RPC Interface <a name="xmlrpc" href="#top" class="toplink"><img src="icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>
288 The URL for the Nucleus XML-RPC interface is:
290 <b>http://www.yourserver.com/yourpath/nucleus/xmlrpc/server.php</b>
294 <a href="http://www.xmlrpc.com/">XML-RPC</a> is a format for remote calls using XML messages. Sounds complex, but implementing an XML-RPC interface into an application allows other services to communicate with it.
298 Currently, there are three APIs supported: the <a href="http://plant.blogger.com/api/">Blogger API</a>, the <a href="http://www.xmlrpc.com/metaWeblogApi">metaWeblog API</a>, and the <a href="http://www.movabletype.org/docs/mtmanual_programmatic.html#xmlrpc%20api">Movable Type API</a>. If you want an examples of a client that uses these interfaces, try <a href="http://www.wbloggar.com/">w.Bloggar</a> (Windows) or <a href="http://www.kung-foo.tv/ecto/">Ecto</a> (MacOS).
302 The available calls to the interface are described in the development documentation, which can be <a href="http://nucleuscms.org/download.php">separately downloaded</a>, or <a href="http://nucleuscms.org/documentation/devdocs/xmlrpc.html">viewed online</a>.
307 <h1>Troubleshooting (FAQ) <a name="trouble" href="#top" class="toplink"><img src="icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>
309 <p>Below, some of the most common problems with and questions about Nucleus are answered. Please read these first before you ask for help. In many cases, the solution can be found here.
313 <div class="question">I get an error: <q>Cannot send headers. Headers already sent...</q></div>
315 This problem is usually caused by whitespace at the beginning or end of <code>config.php</code>. Check if it has spaces or newlines before the starting <tt><?</tt> or after the ending <tt>?></tt>. If there are, remove them. The problem can also have to do with spaces in the translation file or one of the installed plugins.
320 <div class="question">When I try to run install.php, I'm prompted if I want to download install.php</div>
321 <div class="answer">Your web server is not set up to support PHP scripts. You won't be able to install Nucleus on such a system.</div>
325 <div class="question">When I try to visit my website, I get a 'Connection Error'. Why?</div>
327 The reason why this error is shown is that Nucleus cannot connect to your database server for one reason or another, or it cannot select the database. One possible reason is that your login information in <i>config.php</i> is incorrect. Another is that the mySQL server is down.
332 <div class="question">I can't get my update file to work!</div>
334 File permissions need to be set correctly in order for the update file to work. The update file also needs to exist prior to changing the blogsettings. (e.g. you can create an empty file and upload it). About the file permissions, make sure the update file is <i>chmod</i>ded to 666 and the directories are <i>chmod</i>ded to 755. (<a href="tips.html#filepermissions">Quick guide on changing file permissions</a>)
339 <div class="question">I don't want the XML-RPC interface to be available</div>
340 <div class="answer">You can simply delete the xmlrpc/ directory without causing trouble.</div>
344 <div class="question">I don't want RSS syndication (headlines) to be available</div>
345 <div class="answer">You can safely delete the xml-rss.php (headlines.php) file and the 'xmlrss' (headlines) skin/template</div>
349 <h1>Known Problems <a name="known" href="#top" class="toplink"><img src="icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>
351 <p>Some known issues/bugs:
355 <li>At the time of release, there are officially supported blog conversion tools available for Nucleus v3.3. We do have a set of code with which you can start, and are providing <a href="http://nucleuscms.org/convert.php">pointers to the import tools created by others</a>. A good starting point is also the Nucleus Forum section <a href="http://forum.nucleuscms.org/viewforum.php?f=17">Import Questions</a>. Because all blog system have a different structure it isn't possible to convert each system in another without a possible loss of information. The script authors try to minimize troubles and loss of information.</li>
356 <li>Ctrl + Shift + A shortcut might conflict with ICQ/Trillian</li>
357 <li>When PHP is running in SAFE mode, it's very likely that there will be problems when using the media directory (Nucleus will not be able to automatically detect image sizes, or disallow uploading)</li>
358 <li>Entities can get messed up in the RSS channel (e.g. &amp; becomes &amp;amp;)</li>
359 <li>The notify-address option in blogsettings has a preset limit of 255 chars, which means you can't put too many e-mail addresses in there.</li>
360 <li>Live preview doesn't work correctly in Mozilla</li>
361 <li>Internet Explorer 6 seems to be occasionally closing itsself after adding an item. The item is added, though. (it's been a while since the last complaint about that, so it <em>might</em> have disappeared)</li>
366 <h1>Credits & Thanks <a name="credits" href="#top" class="toplink"><img src="icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>
368 <p>No matter how hard we try, some people will be unintentionally overlooked in this section.</p>
373 <li>Wouter Demuynck</li>
376 <h2>Code submissions</h2>
379 <li>Andy Matsubara</li>
380 <li>Armon Toubman</li>
382 <li>gRegor alias gregorlove</li>
383 <li>Kai Greve alias kg</li>
384 <li>Joel Pan alias ketsugi</li>
387 <li>Niels Leenheer alias rakaz</li>
388 <li>Rodrigo Moraes</li>
389 <li>Jeroen Budts</li>
390 <li>Appie Verschoor alias xiffy (Fulltext search)</li>
391 <li>Many others... (check the <a href="history.html">history</a>)</li>
394 <h2>Libraries etc</h2>
397 <li>Jeff MacMichael (NP_SkinFiles plugin)</li>
398 <li>Ivan Fong, Roel, Moraes, Hcgtv (Nucleus 3.2 default skin)</li>
399 <li>Plugins are written by their respective authors.</li>
400 <li>Thanks should go out to the people that wrote translation-files for Nucleus. You can <a href="http://nucleuscms.org/languages.php">download extra translation files on the Nucleus website</a>.</li>
401 <li>The logo (the one with the yellow rays) was created by Rodrigo Moraes</li>
402 <li>The RSS 2.0 skin was created by <a href="http://www.xiffy.nl">Xiffy</a></li>
403 <li>The XML-RPC interface uses the <a href="http://phpxmlrpc.sourceforge.net/">'XML-RPC for PHP'</a> implementation from <a href="http://www.usefulinc.com/">Useful Inc.</a>.</li>
404 <li>The backup/restore code is largely inspired on the code used in <a href="http://phpbb.sourceforge.net/">phpBB</a>. </li>
405 <li>The JavaScript code used for the instant preview was originally inspired on the code used by <a href="http://www.mijnkopthee.nl/">Mijn Kop Thee</a> <small>(dutch)</small> and <a href="http://www.milov.nl/">milov.nl</a>.</li>
406 <li>The globe bullet next to links in the admin screen, comes from <a href="http://www.matterform.com/qbullets/legend.html">QBullets</a></li>
412 Many thanks should also go to all people who have helped Nucleus to become what it is today.</p>
415 <li>A list of <a href="http://nucleuscms.org/donators.php">donators</a> is available on the Nucleus website.</li>
416 <li>Special thanks to the <a href="http://forum.nucleuscms.org/groupcp.php?g=3">forum moderators</a> and <a href="http://forum.nucleuscms.org/memberlist.php?mode=posts&order=DESC">frequent forum visitors</a>.</li>