To make a file executable, launch your Terminal. Switch to the folder that the file you want to make executable is in. Here's an example (edit the path to your correct path) Type in the terminal:
cd /Library/WebServer/CGI-Executables
to see the files in that directory, type: ls
Now say there's a cgi in there called hello.pl. To make this file executable over the web, often you would type:
chmod 755 hello.pl
The 755 in that command will vary depending on who you want to be able to execute the file. Here's a detailed explanation:
Readable = 4
Writeable = 2
Executable = 1
The first number is for owner, then group, than everybody. You add together the numbers to make the file permissions how you need them. So say I wanted the owner to be able to read, write and execute. That would be 4 + 2 + 1 = 7. For group to read and execute: 4 + 1 =5. For everyone to read and execute 4 + 1 =5. That's how I get 755 for that command.
Say I wanted User to read, write and execute, but everyone else could only read, it'd be 744.
Hope this isn't too confusing!
