Jump to content

Voting Script Installed But Failing


karmacriminal

Recommended Posts

No one will be able to help you without more information. You could post the script so we could see it.

 

One very common mistake is not having the correct read/write permission settings for folders or files. Make sure that the permissions are set correctly for each.

Link to comment
Share on other sites

Mike's Voting CGI

Please see the included README for copying and use details.

The README file addresses the permission issue.

 

IMPORTANT: Your server must execute the script as you in order

to have permissions to write the data files.  Please ask your

server admin to use suexec or some other method to have cgi's

executed as you.  (doning a chmod 777 on the direcotory containing

the vote.cgi will do the trick but is HIGHLY insecure).

 

1. place the vote.cgi in a folder under your cgi-bin (or executalbe directory)

e.g. - cgi-bin/vote

 

2. switch to the folder where you put vote.cgi and

chmod 755 vote.cgi

 

3. edit the vote.cgi to fit your needs.  You will

need to set the variables at the top of vote.cgi unless you use the exact

same configurationas I use.

 

4. create an html file with a form to use the vote.cgi (a sample should

  be included in this archive).

 

5. now just point your browser at http://yourdomain/cgi-bin/vote/vote.cgi

or whereever you put it!

 

Make sure you did all of the above.

 

To chmod, go to your Cpanel.

Click on File Manager (top left).

Click on the cgi-bin folder (click the folder not the name).

Click on the file name vote.cgi

On the right you will see a menu, select Change Permissions

 

Good luck.

 

Please note: Please ask your server admin to use suexec or some other method to have cgi's

executed as you. (doning a chmod 777 on the direcotory containing the vote.cgi will do the trick but is HIGHLY insecure).

 

This is a serious issue, which means I would not recommend this script.

 

Maybe others will have more (better) recommendations.

Link to comment
Share on other sites

I believe that we have suexec on here which means the script could be set up using 755 and should work fine. In fact, seems that you will get an error if you try and run a cgi script with permissions set to 777. I posted something about that some time back regarding a script that said to set it up with 777 but had to be changed to 755 to run on here.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...