View previous topic :: View next topic |
Author |
Message |
cenocre -
Joined: 12 Mar 2007 Posts: 47
|
Posted: Fri Jul 06, 2007 9:04 am Post subject: .cgi Suffix |
|
|
I have 2 different programs whose interpreters have the .cgi suffix. Only the first one listed is recognized as every string with .cgi in it goes to the first interpreter. How do I get around this so that both work? Is there a way to distinguish the two?
Is .cgi appropriate? Should they each have specific suffixes such as PHP and Perl do? |
|
Back to top |
|
|
hc2995 -
Joined: 07 Aug 2006 Posts: 644 Location: Maryland, USA
|
Posted: Fri Jul 06, 2007 12:03 pm Post subject: |
|
|
huh, really? What programs do you have that use .cgi interpretor? PERL is the only program to my knowledge that really works .cgi extension. IDK, maybe other programs use .cgi lol _________________ Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P |
|
Back to top |
|
|
cenocre -
Joined: 12 Mar 2007 Posts: 47
|
Posted: Sat Jul 07, 2007 12:49 am Post subject: .cgi suffix |
|
|
DadaMail, which is written in Perl, and the database Panorama, both have the .cgi suffix.
They work individually, but not when set up on the same domain. |
|
Back to top |
|
|
hc2995 -
Joined: 07 Aug 2006 Posts: 644 Location: Maryland, USA
|
Posted: Sat Jul 07, 2007 12:56 am Post subject: |
|
|
lol, i miss read the first post. I get it now.
Anyway, what version of AWS are you running? X1 (the free one) or X2 (the one you pay for)
TIP: Make sure for the list of extensions for PERL, you have CGI and PL not just CGI :P
_________________ Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P |
|
Back to top |
|
|
cenocre -
Joined: 12 Mar 2007 Posts: 47
|
Posted: Sat Jul 07, 2007 2:51 am Post subject: |
|
|
Running X2
I do have the pl and cgi listed for Perl
Fully aware that I may not have things set right (that's why I'm asking the question), here are my settings. The Panorama and Dada interpreters both already had the .cgi extensions.
|
|
Back to top |
|
|
hc2995 -
Joined: 07 Aug 2006 Posts: 644 Location: Maryland, USA
|
|
Back to top |
|
|
cenocre -
Joined: 12 Mar 2007 Posts: 47
|
Posted: Sat Jul 07, 2007 5:57 am Post subject: |
|
|
"No you do not, these things are not set right at all."
Excuse me? For PHP, Perl, and Python I had already followed all the tutorials and these are set just the way the tutorials state (for Macintosh) with just the change of not using FastCGI for PHP as it wouldn't work. All three work fine. Where do you see that these are not set properly???
The ONLY problem has been with Panorama and DadaMail conflicting. They both work fine on their own. They may be set wrong, and perhaps there is no need to have a DadaMail interpreter, as Perl should handle it. Presently, I have had to create a cgi-bin folder at the root level of each site folder for them to work, thus their paths. I'll try reconfiguring DadaMail and remove its line in the table.
For Panorama, it doesn't appear to be a Perl script when I look inside the interpreter, but I'll check with the developer. If it is not Perl, can it also have the .cgi extension? And, is there a single place for me to put this so it will work for all sites rather than having a cgi-bin folder for each site?
Last edited by cenocre on Sat Jul 07, 2007 5:33 pm; edited 1 time in total |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Jul 07, 2007 2:56 pm Post subject: |
|
|
cenocre,
Panorama and Dadamail does not look as interpreters (they are not programming languages like Perl). So putting them in the interpreter table is not going to help (+ it confuses regular Perl scripts execution).
Could you please post here URL of the documentation of these tools? This will help us suggest the proper way to set them up (which should not very different from other scripts or other web applications). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
cenocre -
Joined: 12 Mar 2007 Posts: 47
|
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Jul 09, 2007 2:41 pm Post subject: Re: Documentation Links |
|
|
cenocre,
There are many solutions: The one we suggest is to not declare .cgi as handled by Perl (you won't even need Perl declarations if you have no Perl scripts other than Dadamail). Remove also the two (wrong)declaration of the scripts that are in the Interpreters table. Next, add the virtual paths of both scripts in the Script Paths table ( /cgi-bin/dada/mail.cgi and /cgi-bin/panorama.cgi ).
Ensure that these files /cgi-bin/dada/mail.cgi and /cgi-bin/panorama.cgi have the x bit (executable bit) set in their permissions (you can use Get Info in Finder or use chmod +x for that purpose).
When Abyss Web Server will be requested to serve these files, it will check the Scripts Table. Since their virtual paths are there and since their executable bit is set, they are directly launched as normal executables. Dada mail script will be correctly run as a Perl script because its first line contains the special shebang symbol followed by /usr/bin/perl . If Panorama is a binary executable, it will also be run correctly (and if it is a Perl script, it will also be run correctly using the same shebang line).
If you have other cgi scripts on your system, we can suggest an alternative solution which will make all of them work fine together. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
cenocre -
Joined: 12 Mar 2007 Posts: 47
|
Posted: Mon Jul 09, 2007 3:47 pm Post subject: |
|
|
Thanks, I'll give that a try. |
|
Back to top |
|
|
|