Permissions seem wrong though set as requested by the script

Status
Not open for further replies.
Messages
2
Reaction score
0
Points
0
This is my second request concerning the first. I seem to have a permissions problem within the cgi-bin. I have set the required files to the required setting to set up a script automatically on the site. Its a simple perl tarot script i purchased some time ago, but when I try to access the install cgi I am always getting the following:
Forbidden
You don't have permission to access /cgi-bin/Tarot Script/install.cgi on this server.
Additionally, a 404 Not Found error was encountered while trying to use an Error Document to handle the request
I uploaded the whole tarot script as requested and set the permissions to install.cgi to 0755 as it says, but getting nothing. It worked for me before but the host vanished so not I am hoping this will be a better hosting service.
I enclose the instructions to install the script below in the event you want to see for yourself
Many Thanks
Dave Pearce
-----------------------
Automated installer script
-----------------------

install.cgi script is designed to check your servers settings and assist you in quickly setting up the Tarot script.
Install.cgi is provided as an alternate means of installation if you are having problems with the permissions. The recommended method is farther down in these instructions.

Copy the entire contents of the folder Tarot_Script up to your web hosts cgi or cgi-bin directory using an ftp program
that can discern which files should be uploaded as ASCII or binary.
Then set the permission on install.cgi to 755 or equivalent for your web host.
Next run http://www.yoursite.com/cgi-bin/Tarot_Script/install.cgi from your web browser.
Fill in the missing data and install.
http://www.tarotofdestiny.x10.mx/cgi-bin/Tarot_Script/install.cgi
Use install.cgi cautiously. If unsure, use the install instructions below.

-----------------------
Introduction
-----------------------

There are six files required for the tarot script to operate.

1. tarot.cgi - the script itself which should not in most cases need to be modified.

2. deck.cgi - a text database of your cards in the deck for ALL the spreads. It will be modified
as you add new spreads. There should normally be only one deck.cgi file but depending on complexity,
you may want more. It's extension is ".cgi" only for security reasons. It is not a script itself.

3. spreadtemplate.html - a template of how your spread reading will look. You can modify this to
change the spread look and add spread cards (By using tokens. We will elaborate later.) You will
need a different spreadtemplate.html file for each type of spread you wish to display to your visitors.

4. index.html - The first page your visitors will see. This file asks for the visitors name and
a question, after which, it runs tarot.cgi and returns the spread results. You can modify it to
look the way you want. You will need a separate index.html file for each spread type.

5. tarot_vars.cgi - Variables used for by tarot.cgi

-----------------------
Script operation:
-----------------------

The visitor sees index.html first. They enter their name and question, and possibly email address.
After clicking on the submit button, the page sends the name, question, location of vars.cgi, and
the current time to the tarot.cgi script. The tarot.cgi script opens the deck and shuffles the card
database (deck.cgi) and chooses the cards. The script then opens the spread template (/tarot/spreads/)
and places the cards on the spread template then sends the result to your visitor.

The script uses cookies allowing only one reading per day for each Name/Question combination.
If you ask a different question, you will get a different reading. If you ask the same question,
the same reading will show up for that day.

-----------------------
Quick Script Installation:
-----------------------

1. Edit the tarot.cgi to make sure the path to perl is correct for your web host server, i.e.,
#!/usr/bin/perl
***Warning***: Ensure that your text editor you use does not modify line returns in any way and
that 'word wrap' is off!

2. modify the first part of tarot_vars.cgi to suit your server's settings.

3. Upload the contents of the 'cgi' directory to your server in ASCII format.
Note, your server may require 'cgi-bin'.

The directory structure and permissions should look similar to:

755 /cgi/tarot/
755 /cgi/tarot/tarot.cgi
755 /cgi/tarot/tarrot_vars.cgi
777 /cgi/tarot/data/
777 /cgi/tarot/data/
777 /cgi/tarot/data/email_archive
777 /cgi/tarot/data/email_delay
777 /cgi/tarot/data/question_archive
777 /cgi/tarot/data/txn_id

Note: Your server may require different permissions than those shown. Contact your server provider
if you are unsure.

4. Edit all index.html files in the
/tarot/spreads/
directory.

You should only need to edit:
<FORM NAME="TarotForm" ACTION="/cgi/tarot/tarot.cgi" TARGET="_blank">
to reflect your cgi directory.
If your cgi dirctory is cgi-bin use:
<FORM NAME="TarotForm" ACTION="/cgi-bin/tarot/tarot.cgi" TARGET="_blank">
default is set to cgi

5. Modify the deck.cgi files if desired (see below). The default should be just fine for now.

6. Modify /tarot/spreads/ files if desired (see below). The default should be just fine for now.

7. Modify vars.cgi files if desired (see below). The default should be just fine for now.

8. Upload the contents of the '/tarot/databases/' and '/tarot/spreads/' directories to your server
in ASCII format.
Upload the contents of the '/tarot/images/' directory to your server in BINARY format.

The directory structure and permissions should look similar to:

755 /tarot/databases/
755 /tarot/images/
755 /tarot/images/Rider_Waite/
755 /tarot/images/Rider_Waite/normal/
755 /tarot/images/Rider_Waite/reversed/
755 /tarot/spreads/
all files within these directories to 755

Note: Your server may require different permissions than those shown. Contact your server provider
if you are unsure.

9. Direct your visitors to the index.html file. http://www.yoursite.com/tarot/index.html

10. At this point the script is fully functional with default settings. If you wish to modify
it, see the instructions below.

11. IMPORTANT!!! The /cgi/tarot/data/ directory logs tarot readings for administrative purposes.
It is strongly suggested that you password protect this directory with an .htaccess file
 
Status
Not open for further replies.
Top