Installing LnBlog

Copyright (C) 2005 Peter A. Geer <pageer@skepticats.com>
Last update: 2005-Jun-29

The installation for LnBlog is a fairly easy process. For those who are not technologically inclined, just follow these step-by-step instructions.

  1. Download and uncompress the LnBlog archive.

    The downloaded archive is a standard ZIP file format. On Windows you can decompress this with WinZip or pretty much any other compression program. On Linux and UNIX systems, you can use your desktop environment's decompression utility, such as Ark, or run unzip lnblog-version.zip from the command line.

  2. Upload the LnBlog folder to your web host.

    Use your favorite FTP program to upload the entire LnBlog installation folder to your web hosting account. The folder must go someplace under your web root. If you place it outside the web root, you will not be able to run the setup and configuration programs. Usually it is easiest to simply put the LnBlog folder in the root of your website.

  3. Configure file access.

    After uploading the LnBlog folder, you can open up your web browser and navigate to it. If, for example, you put the foler in your website root and named it just "lnblog", then you would navigate to http://www.yoursite.com/lnblog/ to find it. The first time you visit this page, LnBlog will ask you to set the web document root directory and configure file writing.

    The document root is directory on the web server where you put the files for your home page, and is used to determine the URLs for your pages. LnBlog will attempt to guess this based on where it is located. In most cases, the default should be correct, but if it isn't you will have to set it manually. If you are unsure of what to set, click the link to the test page to try out some different values and see the results.

    The second part of this page is the file writing configuration. LnBlog provides two ways to write files on the web server. The first way is to use the "native" filesystem functions. To configure this, all you need do is leave the "use native filesystem functions" option selected and hit the submit button. This is not recommended unless you have root (i.e. administrator) access on the web server, because you will need to manually change file permissions to make the directories you want to put blogs in writable by everyone. Furthermore, your user account most likely will not own any files or directories that LnBlog creates, which can cause problems if you want to manage your site outside of LnBlog, e.g. by uploading or moving files with FTP. Also note that you will have to change the file permissions on the LnBlog "userdata" directory to make it writable by everyone before completing this step. If you don't, the native file writing functions may not be able to save this setting.  Note: you must have PHP's safe_mode disabled in order to use native file writing.

    The second method for writing files, which is recommended for shared hosting setups, is to use the FTP interface. This requires that you be able to access you web space via FTP, which you almost certainly can. To configure this, you need to select the "use FTP" option, enter your username and password, and confirm the FTP host name and the path to your FTP root. The FTP host name (which you may have to change) is the server address that you use to upload files to your site, such as ftp.mysite.com. In the fairly common case where the FTP and web servers are both running the same machine, you can also use 'localhost'. The FTP root path is the path on the web werver where your FTP access starts. This will vary depending on the server configuration. For some servers, your FTP root will be the system root directory, while on others, it will be the "home" directory of your hosting account. If you do not know what directory to use, click the link to the test page, fill in your login information, and it will try to determine the correct path. The optional prefix value is a string to prepend to all FTP paths, such as the '~' character. The prefix is occasionally used for unusual configurations, but is normally not required.

  4. Create an administrator login.

    Once you enter your file writing information, LnBlog will prompt you to create an administrative login. This login will be used to add new blogs, upgrade old blogs, and add new users. The username should already by there, so just enter and confirm your password and fill in any other fields you like.

  5. Log in.

    After creating an administrative account, you will be directed to the login page. Enter the username and password you just created and you will see the administrative page.

  6. Create a new user (optional)

    You may want to create a new user account (aside from the administrator) for day to day use. To do this, click the "Add new user" link.  On the resulting page, you can enter the username, password, and so forth, just as you did when creating the administrator account.  Only the username, password, and password confirmation are required, though you will also have to fill in a valid e-mail address is you want the user to be able to receive e-mail notification of comments on his posts.  The real name and homepage are for purely cosmetic purposes.

  7. Create a new blog.

    Click on the "Add new blog" link to create a new weblog. On the new weblog page, you can enter the path to the blog, the owner, other users who can post to it,  the name, a description, the theme to use (LnBlog ships with three themes: "default", which I think is nice and fairly conservative, "tuxice" which is a fairly bright Linux theme, and "skepticats", which is a black and grey theme) and the maximum number of entries to display on the front page and in RSS feeds. When you are done, hit submit and you will be taken to the front page of your new blog.

    While most of the fields on this page should be self-explanatory, it is important to understand the first three. The blog path is a path on the web server. You can either give an absolute path on the server, but unless you need to do something fancy, it's best to use a relative path. Relative paths will be interpreted as relative to the document root you set earlier, so that if you give the path as simply "myblog", then LnBlog will create a "myblog" directory in the root of your website. 

    The blog owner is the username of the account that runs the blog. This person will be able to change blog settings, post new entries, and so forth. This is a required field and defaults to administrator, but should be set to the username of whoever will be the primary user of this blog. The allowed additional writers, on the other hand, is an optional comma-separated list of other usernames that are allowed to post new entries to this blog. They cannot change blog settings or edit other users' posts - just add and modify their own. This is useful if you want to have something like a news page that several people will be updating.

    Note that if you are using "native" file writing and the web server account does not have write permissions to the directory where you want the blog, then LnBlog will not be able to create it. You can either change the permissions on the folder that will contain your weblog folder, or you can manually create the folder and change the permissions to be writable by everyone.