FM SiteSearch Pro Documentation
Installation
1.1 Requirements to run Fm SiteSearch Pro
1.2 Lunix/Unix Installation instructions
1.3 Windows Installation instructions
1.4 Final Installation Notes
1.5 Mysql Notes
1.6 Upgrade Instructions to upgrade From Version 4.x to a newer Version 4.x
1.7 Upgrade Instructions to upgrade From Version 3.x to Version 4.x
1.1 Requirements
The requirements are those that most CGI scripts in general will require. What is required to run FM SiteSearch Pro?
-
Your own standard cgi-bin directory.
This is the directory where the cgi scripts are executed from. An example of a standard cgi-bin directory:
http://www.yourdomain.com/cgi-bin
-
Perl Ver 5+
-
FTP access to transfer files and to set permissions of files and directories.
-
Linux/Unix, or Windows based host/server
-
Mysql (Optional but recommended for web sites with thousands of pages - You can switch to Mysql at any time)
1.2 Installation Instructions
The installation of FM SiteSearch Pro should be painless. Every measure has been taken to ensure that you get it right the first time. You don't have to edit any files, and only need to supply information with the setup interface.
Follow the steps below exactly as described and you should have FM SiteSearch Pro serving you in a couple of minutes. Do the steps as you read through them.
Step 1. (Extract the .zip archive)
Extract the files with their directories that came in the .zip archive.
Step 2. (Create a 'data' directory on your host/server)
Create a directory on your server/host called 'data' or whatever you would like to name it. This directory will be used to store all data files. This directory will contain files with various search settings, templates, etc.
A good location for this directory is somewhere where the web server cannot access it. Another way of saying this, is to say that you need to create the 'data' directory somewhere where a visitor to your web site cannot load the contents of this directory inside the his/her browser.
A good place to place this directory would be for example:
/home/yourdomain.com/data
where your cgi-bin directory will reside in something like
/home/yourdomain.com/www/cgi-bin
and your public HTML directory in something like
/home/yourdomain.com/www
Step 3. (Copy files to the 'data' directory)
The .zip archive will contain directories inside it. These directories are 'cgi', 'data' and 'html'
Now copy the files inside the 'data' directory of the .zip archive to the 'data' directory you have just created.
Step 4. (Set permissions of the 'data' directory and files within it)
Assign the permissions of 777 to the data directory and all the files residing in it.
How to set file permissions:
Most FTP clients have the ability to set file permissions. Go to the 'data' directory where the 'data' files resides, and select the files. In your FTP client there should be a menu item (by right clicking the files) or button where you change the file attributes or file permissions. Set the permissions/attributes of the files to 777. Also set the data directory you have created to the permission setting of 777.
Step 5. (Copy files to your cgi-bin directory)
The .zip archive will contain directories inside it. These directories are 'cgi', 'data' and 'html'
Copy the files in the 'cgi' directory to your 'cgi-bin' directory. You could place the files in for example: http://www.yourdomain.com/cgi-bin/fmsearch
Step 6. (Set permissions of the .cgi and .pm script files)
Set the permissions of the .cgi and .pm files to the permission setting of 755.
How to set file permissions:
Most FTP clients have this ability. Go to the cgi-bin directory where the main .cgi and .pm script files resides. Select the files that you just copied. In your FTP client there should be a menu item (by right clicking the files) or button where you change the file attributes or file permissions. Set the permissions/attributes to 755.
Step 7. (Set config.cgi to the permission setting of 777)
Assign the permission setting of 777 to config.cgi - config.cgi is one of the files that you copied into your cgi-bin directory as explained in the above step.
Step 8. (Create an 'images' directory)
With the files/directories you extracted from the .zip archive there should have been a directory called 'images'.
On your hosting account/server create a directory called 'image' or whatever you would like to call it. This directory has to be in your public html document tree. Your public html document tree is where you store the web pages of your web site.
Now you should have created the 'images' directory. Copy the contents of the 'images' directory you have extracted from the installation .zip archive to the 'images' directory you just created.
Step 9. (The setup interface)
Load setup.cgi in your browser and follow the instructions from there. setup.cgi is in your 'cgi-bin' directory where you have copied the .cgi and .pm files.
It should be located at, for example:
http://www.yourdomain.com/cgi-bin/fmsitesearch/setup.cgi
1.3 Windows Installation Instructions
The installation of FM SiteSearch Pro should be painless. Every measure has been taken to ensure that you get it right the first time.
Follow the steps below exactly as described and you should have FM SiteSearch Pro serving you in a couple of minutes. Do the steps as you read through them.
Step 1. (Extract the .zip archive)
Extract the files with their directories that came in the .zip archive.
Step 2. (Edit CGI files)
When you extracted the contents of the .zip archive there should have been a 'cgi' directory extracted. Open each .cgi file and the one .pm file with a unix compatible text editor. (even if the file is in unix file format it will run on windows) - Open the files with something like TextPad (http://www.textpad.com)
In each file near the top there is text reading like this:
### WINDOWS USERS EDIT BELOW ##############################################
$cfile = "config.cgi";
#$cfile = "e:/Inetpub/webpub/cgi-bin/fms/config.cgi";
###################################################################
Edit the lines above so that it looks like this:
### WINDOWS USERS EDIT BELOW ##############################################
#$cfile = "config.cgi";
$cfile = "e:/your/full/server/path/to/config.cgi";
####################################################################
Replace e:/your/full/server/path/to/config.cfg above with your full server path to config.cgi
Do this with all the .cgi files and the one .pm file.
Step 3. (Create a 'data' directory on your host/server)
Create a directory on your server/host called 'data' or whatever you would like to name it. This directory will be used to store all data files. This directory will contain files with various search settings, templates, etc.
A good location for this directory is somewhere where the web server cannot access it. Another way of saying this, is to say that you need to create the 'data' directory somewhere where a visitor to your web site cannot access the contents of this directory.
A good place to place this directory would be for example:
e:/home/yourdomain/data
where your cgi-bin directory will reside in something like
e:/home/yourdomainwww/cgi-bin
and your public HTML directory in something like
e:/home/yourdomain/www
Note that the 'data' directory will need to be writable. What this means is that the web server or hosting setup will need to allow scripts to be able to write to this directory.
Step 4. (Copy files to the 'data' directory)
The .zip archive will contain directories inside it. These directories are 'cgi', 'data' and 'html'
Now copy the files inside the 'data' directory of the .zip archive to the 'data' directory you have just created.
Step 5. (Copy files to your cgi-bin directory)
Copy the .cgi and .pm files you edited in step 2 to your 'cgi-bin' directory. You could place the files in for example: http://www.yourdomain.com/cgi-bin/fmsearch
Step 6. (Create an 'images' directory)
With the files/directories you extracted from the .zip archive there should have been a directory called 'images'.
On your hosting account/server create a directory called 'image' or whatever you would like to call it. This directory has to be in your public html document tree. Your public html document tree is where you store the web pages of your web site.
Now you should have created the 'images' directory. Copy the contents of the 'images' directory you have extracted from the installation .zip archive to the 'images' directory you have created.
Step 9. (The setup interface)
Load setup.cgi in your browser and follow the instructions from there. setup.cgi is in your 'cgi-bin' directory where you have copied the .cgi and .pm files.
It should be located at, for example:
http://www.yourdomain.com/cgi-bin/fmsitesearch/setup.cgi
1.4 Final Installation Notes
When you have completed the installation, log into the control panel and change the search settings so that it suites your needs. It would be a good idea to look at all settings in the control panel and to set them according to your preferences. There are many functions and options available which is thoroughly explained in the rest of the documentation.
If you are going to use a search index, you will need to build a search index before your web site can be searched. If any of the contents of your web site changes, you will need to rebuild the search index to reflect the changes.
1.5 Mysql Notes
If you are going to use Mysql you just need to choose that you are going to use mysql from setup.cgi - You will also need to supply a database name, database user name and password.
If you decide to switch to Mysql at a later stage you may do so at any time. Please note that the search box HTML code will change and fmsearch2.cgi will be used for searches instead of fmsearch.cgi
1.6 Upgrade Instructions to upgrade From Version 4.x to a newer Version 4.x
Note that if you have version 3 and are going to upgrade to version 4 then follow the upgrade instructions here. Only follow these instructions if you are upgrading from ver 4.0 to 4.1 for example.
Upgrading your copy of FM SiteSearch Pro should be painless. Follow the instructions as you read through them below. Upgrading basically involves replacing all old .cgi and .pm files with the new .cgi and .pm files that comes with the new version.
If your copy of FM SiteSearch is registered, it will stay registered even if you upgraded it with the shareware version.
Step 1. (Extract the .zip archive)
Download the shareware version of FM SiteSearch Pro and extract the files with their directories that came in the .zip installation archive archive.
Step 2. (Replace all .cgi and .pm files)
The .zip installation archive will contain directories inside it. These directories are 'cgi', 'data' and 'html'
Copy the files in the 'cgi' directory to your 'cgi-bin' directory replacing the old .cgi and .pm files of FM SiteSearch Pro.
CAUTION: Do not replace the config.cfg of your FM SiteSearch Pro installation. This file will be located amongst the .cgi and .pm files inside your cgi-bin directory where the .cgi and .pm files of FM SiteSearch Pro resides.
Step 3. (Set permissions of the .cgi and .pm script files)
Skip this step if your host is Windows based.
Set the permissions of the .cgi and .pm files that you replaced to the permission setting of 755.
Step 4. (Run setup.cgi)
Load up setup.cgi in your browser and go through the setup steps to verify your installation.
Step 5. (Re-register)
If you are a registered user of FM SiteSearch Pro re-register your copy. To do this follow the registration instructions you received when you registered FM SiteSearch Pro.
1.7 Upgrade Instructions to upgrade From Version 3.x to Version 4.x
Version 3 and Version 4 are not backwards compatible. To use version 4, do a clean installation of Version 4. You can find installation instructions here.
|