Testing the installation

Due to the incredibly diverse number of web server configurations, I have included at test script you can run. This script will provide very useful information if it cannot run, which then helps me help you. This script is called CFTEST and is included in you cpmfetch folder.

You will need to determine what the partial URL is to your CPG installation. This is essentially the part of your URL without the domain name. Since no matter how I explain this it never seems to help, here are some examples. These examples show first an example URL pointing to the top page of a gallery itself, then what the partial URL would be for that example.

Now armed with with knowledge, open the CFTEST file in your favorite editor (kedit, notepad, emacs, etc) and look at the top of the file... It should look something like this:

Example 4.1. The cftest.php file


<?php
	// You need to change this variable to the directory that the Coppermine photo gallery is installed in.
	// If you installed CPG to the root of your website, just use a /
	// IMPORTANT:  Change the part below in quotes, NOT the $ChangeThis... part
	$ChangeThisToYourPartialUrlToCPG = "/changethishere";	

Can you guess where you need to change it? You should take what your partial URL is and put it where it says "/changethishere". After that aim your web browser at it and see what happens.

There are a few situations where it will not work right. These tend to be few and far between, but here is a short list of situations where it takes a bit more effort to work out.