ASP-Nuke Installation

Downloaded version: v2.0.4
Date of last modification: November the 19th, 2004

Introduction :

ASP-Nuke is a free webportal project, running with ASP (VBScript). It's an opensource and anyone can use and modify it to add new features. For this reason, let us know what you've done if you want it to be included in the next version. This version is the first release with all last patches.
 
In this version you can choose between two kind of databases: "Microsoft Access" or "mySql".
 
You can find more information on the website: ASP-Nuke.

1. Requirement

You must have a webserver which executes ASP pages in order to use ASP-NUKE, for example: IIS5.0 and II4.0, PWS.

If you want to use the mySql database, it must be installed on your webserver and your provider has to activate it for your domain.

2. Installation

After unzipping aspnuke204.zip, you've got : Copy all files from the "aspnuke" directory" into your website (with a FTP client for instance). Simply copy folder's content, not the aspnuke folder itself.
You can publish your site in the "root" or in a sub-folder.
Do not copy the directory "docs" that you just need for the documentation.
If you choosed to use mySql you should first define the database tables. To execute this initial definitions, you are provided with the file "docs\mySql\crea_tabelle_mySql.sql" which contains instructions to generate all tables and preload initial data. For instructions on how to use this file, with mySql, please refer to your provider's instructions and help files (usually you are given a "phpMyAdmin" account which lets you access to the mySql console and you have menu options to run and execute this file). If you need to translate tables data, you can do it simply editing this file before running it against mySql database.
 
Now, you must run the setup_en.asp on your webserver (ex: http://www.my-website.com/setup_en.asp if your website is located at http://www.my-website.com) and fill the form to configure the site.
Fill the following fields as follows:
Now press the "default" button to automatically fill all other fields, then you can modify them as follows: If you use mySql, you usually only have one database; in this case fill all three above fields with this same unique name
All following fieds, except "Login" and "Password" must always begin with the path specified in Website's main path field (automatically filled in by "default" button).

The xml files and the databases must be located in folders that must have the reading and writing permission, you have to specify their name during the setup, on every server usually there is folder used for databases, you can put the files there. If you changed the path of this kind of files, at the end of the setup, you can delete the folders db and lang (they only contain the original uncofigured files).
Also the upload folders must be created and they must have the reading and writing permission (you can use the public folder).
Don't forget to delete any setup_xx.asp file from your website to prevent people to use it! Setup procedure creates an admin account which have administrator's rights on the website. There can only be one main admin, but you can add administrators and moderators for each section. You can also change the rights to let some users enter in the administrator's section (with limited privileges).

After this your site will be ready to start!

3. Site map

There are 8 folders (and other subfolders) in the root of your website :

4 . Addendum

If you do not use the Calendar you can delete it totally making these steps:
  1. Delete the link from the admin menu: click on "Graphical Blocks" and disable the flag "Events" from "Visible blocks"
  2. Delete any reference to the routines "DisplayCalendar" and "DisplayTopHomeEvents" from all the pages (generally present in the default.asp page)
  3. Delete from the "root" all the files called "calendar_xxx.asp"
  4. Delete the Access database "calendar.mdb" or the tables "calendar_xxx" from the mySql database
  5. Delete the files "calendar_xxx-inc.asp" from the "includes" directory
  6. Delete the line"<!-- #include file="calendar-inc.asp"-->" from the files "admin_includes-inc.asp", "includes-inc.asp" and"noblocks_includes-inc.asp" in the "includes" directory

If you do not use the Forum you can delete it totally making these steps:

  1. Set the configuration variabile GLOBAL_FORUM_TOP to 0 to hide the forum links from the menu
  2. Delete from the "root" all the files called"forum_xxx.asp"
  3. Delete the Access database "forum.mdb" or the tables "forum_xxx" from the mySql database
  4. Delete the files "forum_xxx-inc.asp" from the "includes" directory

5 . Migration from a previous version

migration from 1.2 version to 2.0 with Access database:

  1. Install ASP-NUKE 2.0 in a new subfolder (NOT in the same folder where is your Aspnuke 1.2)
     
  2. Replace the ASP-NUKE 2.0 databases with the databases of your Aspnuke 1.2
     
  3. Replace the ASP-NUKE 2.0 theme with the theme of your Aspnuke 1.2
     
  4. Login as administrator
     
  5. Run the "admin_updatemain.asp" file, it will modify the main DB without modifying your data
     
  6. Run the "admin_updateforum.asp" file, it will modify the forum DB dei forum without modifying your data
     
  7. If you previously used the "Calendar Events", install the new Access database "calendar.mdb" and copy also the old "eventi.mdb" database. Eventually, modify line 23 of "calendar_migratedb-inc.asp" file in "includes" directory (the one with the insgtruction Const OLD_DB_EVENTI = "eventi.mdb"), specifying the name of the Access database if you've modified it (if the name is still the original "eventi.mdb", you can bypass this step). Run the "calendar_migratedb.asp" page that will copy all the data from the old to the new database, adding the new fields. When the migration has successfully finished (control it!!!), you can delete the old calendar database.
     
  8. Now you will have an ASP-NUKE 2.0 website totally working with all the data of you old website, except for the cutomized blocks that you will need to manually adapt. The most diffused ones will be published on the official site.

migration from 1.2 version to 2.0 with mySql database:

The best solution to upgrade your AspNuke 1.2 to AspNuke 2.0 with mySql is to migrate before from 1.2 to 2.0 with the Access database as explained in the previous paragraph.
After the migration has ended and after having verified that everything works correctly without deleting the "setup_en.asp" file, do the following steps:
  1. Login with the user and the password of the mySql database that your provider has assigned to your site
  2. Run (from the panel indicated in the help documentation of your provider) the "crea_tabelle_mySql.sql" file that resides in the "docs\mySql" folder: this script will create all the tables in your mySql db, filling it with default values (you can translate captions, descriptions, names, categories modifing this file before running it)
  3. For each Access table (on each Access database), whose data must be migrated into the mySql tables, do the following steps: alternatively, if the previous procedure does not work, you can follow these steps:
  4. Login in to mySql console and import all data files into their corresponding mySql tables. Depending on what procedure you have used, follow one of these steps:
If you keep for some days the Access databases you can verify if the data are correct, it's easy to do this just renaming the two configuration files generated for the two databases. When you are sure that everything is ok you can delete the old Access database, it's configuration file and any setup_xx.asp file.

6 . Tips (by Eduardo Besembel - besembel@cantv.net)

  1. To send emails or newsletters you have to change the configuration.xml file in xml folder, modifing the following values
    <translation name="GLOBAL_SITE_EMAIL">junk@junk.com</translation>
    <translation name="GLOBAL_ACCOUNTS_EMAIL">junk@junk.com</translation>
    changing junk with the email address you want to use.
    In the original file you will find aspnuke italia email address...
  2. If you want to activate or deactivate something, like the web editor htmlarea, the control panel, etc. you can do this in configuration.xml file in xml folder
    For example to use htmlarea editor
    <translation name="GLOBAL_SITE_WYSIWYG_PATH">/htmlarea/</translation>
    <translation name="bWYSIWYGeditor">3</translation>>
    you have to insert the path where you have installed htmlarea, in this case it is in a root's subfolder /htmlarea/; if you have installed it in another subfolder, for example "editor", you should write the path /editor/htmlarea/, and then activate it inserting a "3" without double quotes.
  3. The images may only have the following extensions: <translation name="imgExtensions">*.gif, *.bmp, *.jpg, *.jpeg, *.png</translation>
    If you want to add other types of images, you have to add the new extensions among the generic types:
    <translation name="allowedExtensions">*.txt, *.ace, *.pdf</translation>
    and upload them through the Upload page.
  4. The descriptions of the categories types cannot be changed using aspnuke, the only way to do this is modifing directly the database in typescategories table.
  5. If you are installing Aspnuke in a server that you can manage, you have to verifiy through windows mmc console (from which you control IIS) that the folders (DB,XML,PUBLIC,PUBLIC/DYNABLOCK,/PUBLIC/UPLOAD,/PUBLIC/UPLOAD/USERS) have read and write permissions, and with Windos Explorer you can enter in the folders xml,db,public/dynablock, and select all the files in the folder, click with mouse right button, select the security tab in the properties and verify that the user used by IIS ("Internet guest user" or similar) has read ad write permissions on them.
  6. Calendar categories cannot be easily changed too, and in this case you must change calendar_eventscat table in calendar.mdb database.


Any question, idea or information? Go to the ASP-Nuke forum or visit the F.A.Q.
 
Project starter: Gaëtan Bouveret alias Gat, Webmaster of ASP-Nuke (webmaster@asp-nuke.com).
Translation made by Aspnuke.it staff (webmaster@aspnuke.it), for further information visit www.aspnuke.it
 
LICENCE : This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.