Weblog/Journal Software · Version 1.1 · Installation Instructions
Copyright ©2000 Noah Grey · All Rights Reserved


Greymatter requires the ability to run Perl software on your web account, and an FTP client (such as CuteFTP) to upload the files to your account and CHMOD them there. Also, you should be modestly comfortable with editing HTML to customise the templates, and thus make your weblog/journal truly your own.

Upgrading From Version 1.0

If you've already got Greymatter successfully installed and you want to upgrade to the new version, you'll need to re-upload the files "gm.cgi", "gm-library.cgi", "gm-karma.cgi", and "gm-comments.cgi" replacing the older versions of those four files on your account with the newer ones. (Do NOT reupload anything else, or you'll mess up your setup.) Then, login to gm.cgi right away, as Greymatter will need to update some files to work properly with the new version. Also, be sure to change your Perl pointer again (in gm.cgi, gm-karma.cgi, and gm-comments.cgi) if it's something other than "/usr/bin/perl".

If you have an index page in your archives directory, Greymatter will overwrite it with its new archive index (unless you disable that in configuration), so you may want to make a backup of that file first; you'll also need to make sure that file is CHMODed to 666, or simply delete it.

Installing For The First Time

  1. Make sure you meet all the requirements, as specified above.

  2. Check the files "gm.cgi", "gm-karma.cgi", and "gm-comments.cgi", and look at the very first line, which should say "#!/usr/bin/perl". This is the pointer to Perl; you may need to change this if you know Perl is at a different location on your server (such as /usr/local/bin/perl or /usr/bin/perl5; on NT accounts, it may be C:/perl/bin/perl.exe), otherwise it should be fine to leave it alone. This is the only time you'll ever need to touch the Greymatter program code.

  3. If you want your main index file to be named something other than "index.htm", then rename the included index.htm file accordingly. For clarity's sake, we'll assume "index.htm" with the rest of the instructions.

  4. Open your FTP program. Important note: All files except "gm-icon.gif" must be uploaded in ASCII mode; check your FTP program to find out how to make sure that all CGI files are uploaded as ASCII and not binary files.

  5. Upload all the Greymatter CGI files (they all begin with "gm" and end with ".cgi") to the directory that you want to run Greymatter from. (Your server may require you to run CGI files from a specific cgi-bin directory.) All these files must be in the same directory on your account.

  6. CHMOD the files "gm.cgi", "gm-karma.cgi", and "gm-comments.cgi" to 755, and CHMOD all the other .cgi files to 666.

  7. Upload index.htm (or whatever you've renamed it to) and gm-icon.gif to the place where you want your log to be—usually the same directory you run Greymatter from (and this is what Greymatter will assume by default), but you'll probably want to put them elsewhere if your server requires you to run CGI programs from a cgi-bin directory. Wherever you put this file will be considered your main log directory.

  8. CHMOD the index.htm file (or whatever you've renamed it to) to 666.

  9. Create the directory where all your log entries and archives will be stored (usually a subdirectory of the main log directory, but you can create this directory wherever you like). By default, Greymatter will assume you name this directory "archives", but you can name it whatever you wish.

  10. CHMOD your entries/archives directory to 777.

  11. Open your web browser and run gm.cgi on your site (for example, if you run and you uploaded the Greymatter files to the /log subdirectory, then you'd type in your browser). If all of the above went okay, then you should now see the Greymatter logon prompt. (If you're getting a 500 Server Error or having other problems attempting to run gm.cgi, go back and make sure that everything is uploaded and chmoded correctly; read the "Troubleshooting" section in the manual for more information.)

  12. Log on with the author name "Alice", and the password "wonderland".

  13. Welcome to Greymatter! You'll be seeing a lot of this screen, but the very first thing you'll need to do is click on "Configuration". You must make sure that the first six fields—those grouped under "Path Configuration"—are filled out correctly; Greymatter will attempt to automatically detect what these paths are, but you may need to modify them accordingly (again, note that Greymatter automatically assumes that the log path and the CGI path are the same by default, and that the entries/archives directory is called "archives"). Also, if your index filename is something other than "index.htm", you'll need to modify that accordingly as well. Go through all the other configuration options, set them however you want, and click "Save Configuration".

  14. Return to Configuration and click "Diagnostics & Repair"; this is to insure that all your files and paths are working correctly. Once you've run it successfully, you'll be able to post your first entry.

  15. Click "Edit Authors", create a new account for yourself with the name and password you'd like to use, and delete Alice. (You could keep Alice around, but for obvious security reasons, it's not recommended.) Since you're still logged on as Alice, you'll need to re-enter under the new name and password.

All done! You should now be able to post entries and get your weblog/journal going. (It's a good idea to set up a private test weblog first, and try creating and editing a few test entries, simply so you can get the hang of Greymatter before doing it "for real".)

Greymatter uses an extensive template system to allow you total control over every aspect of your weblog and all the pages & elements it'll comprise. The default templates included with Greymatter are quite plain-jane, but they should be enough to provide a starting point and, hopefully, to give you a basic idea of Greymatter's template & variable usage. Change the templates as much as you like (and just reupload the gm-templates.cgi file if you mess things up too much and want to start over) to suit your own design and style; refer to the Greymatter manual for full information about all the template variables.

And that's that! Hopefully by now you're up and running in some form—after you add your first entry, open another window in your browser and load up your weblog's intended location. You can alter your templates anytime to change any aspect of your weblog's design and layout (be sure to "Rebuild Files" after changing the templates for Greymatter to automatically update your site accordingly). Enjoy doing your weblog/journal, and thanks for using Greymatter. =)