karmacriminal Posted April 2, 2003 Share Posted April 2, 2003 I installed a voting script but get failed results when I hit submit.My Webpage Can anyone tell me off hand what I did wrong? Quote Link to comment Share on other sites More sharing options...
SEO Posted April 2, 2003 Share Posted April 2, 2003 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. Quote Link to comment Share on other sites More sharing options...
karmacriminal Posted April 2, 2003 Author Share Posted April 2, 2003 I have attached the script. Please let me know if you need any other information. also, I am unsure how to change or even look at permissions or where to look for that matter. Thanks vote.cgi Quote Link to comment Share on other sites More sharing options...
SEO Posted April 2, 2003 Share Posted April 2, 2003 Mike's Voting CGIPlease 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 orderto 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. Quote Link to comment Share on other sites More sharing options...
TCH-Rick Posted April 2, 2003 Share Posted April 2, 2003 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. Quote Link to comment Share on other sites More sharing options...
curtis Posted April 3, 2003 Share Posted April 3, 2003 Your right Rickvs. I used this script chmoded to 755 and it worked great. I'm running 4 different polls using it. curtis Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.