View Full Version : Perl+CGI ourside of CGI-BIN
uniprosper
12-19-1998, 02:00 PM
Correct!
I used chmod 755 on those directories, and now everything is working perfectly!
Thanks very much. I didn't think it would be because of something as simple as that. Well, you learn something new everyday!
uniprosper
12-20-1998, 01:16 AM
Hi,
I'm wanting to use Perl files and CGI files outside of the CGI-BIN directory. The extension of the files are .cgi and .pl
I have added this line to the .htaccess file and uploaded it to all my directories:
AddHandler cgi-script cgi
However, when I run .pl files and some .cgi files, I still get 500 Internal Server. I have checked all my scripts to make sure that all the syntax is correct, and it looks like it is. Any ideas?
Thanks very much, and a Merry Christmas to you all!
Lee,
lee@uniprosper.com
Hi Lee,
I'm not sure which *exact* scripts you may be having a problem with but from a quick glance I notice you have some scripts, inside directories, these directories have their permissions set to 777.... they need to be set at 755 ....
I'm assuming that if you chmod the directories to 755 your problems may be solved http://www.aota.net/ubb/smile.gif
Let us know if this works
Deb
------------------
Unlocking the Power of the Internet!
www.FutureQuest.net (http://www.FutureQuest.net)
sheila
11-18-2000, 04:14 PM
Here is an interesting but fun twist to this type of problem:
I'm hosting a file upload site on a free server for AP Computer Science Teachers to share files. (A resource for my mailing list.) I just installed a file upload script last night. I'm going to password protect it later, but for now you can see it here:
http://balder.prohosting.com/~apcs/cgi-bin/genesis.cgi
Anyhow, it is a bit much for someone who simply wants to download files to deal with. And free.prohosting.com apparently has Directory Indexing turned off on their server. So I found this other really neat script here:
http://hammer.prohosting.com/~cgi-wiz/pub/
That mimics Directory Indexing. You put the index.cgi file in whichever directory that you would like to show the index for.
I thought I would run both scripts. Those who just want to see the file list could just use the index.cgi directory listing script and see the list of available files. Those who wanted to upload files could use the Genesis file uploading script.
Now, for the problem:
The file upload script (Genesis) requires that the folder be set to 777 so that anyone can write to it. (Duh. Else, how can other people upload files?)
The index.cgi directory listing script apparently requires the folder to be set to 755, as I have learned after reading this thread. And it is true. Changing the permissions to 755 did get the index.cgi script to work. Of course that broke the Genesis file uploading script.
Before anyone asks: Yes, I did try to put a .htaccess file that would allow Directory Indexing in the directory. I had the following file contents:
Options +Indexes
But apparently they've configured their server to not allow that, since I got an Internal Server error.
So, what I'd like to know is this:
Does anyone see a way that I might fix it so that I can offer this file library, and run both scripts (perhaps not in the same directory? but I'm not sure how to arrange them) so that those who don't want to upload just see a simplified file list, and those who want to upload would run the other file upload script?
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.