.cgi Suffix

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
cenocre
-


Joined: 12 Mar 2007
Posts: 47

PostPosted: Fri Jul 06, 2007 9:04 am    Post subject: .cgi Suffix Reply with quote

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 View user's profile Send private message
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Fri Jul 06, 2007 12:03 pm    Post subject: Reply with quote

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 View user's profile Send private message AIM Address
cenocre
-


Joined: 12 Mar 2007
Posts: 47

PostPosted: Sat Jul 07, 2007 12:49 am    Post subject: .cgi suffix Reply with quote

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 View user's profile Send private message
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Sat Jul 07, 2007 12:56 am    Post subject: Reply with quote

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 View user's profile Send private message AIM Address
cenocre
-


Joined: 12 Mar 2007
Posts: 47

PostPosted: Sat Jul 07, 2007 2:51 am    Post subject: Reply with quote

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 View user's profile Send private message
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Sat Jul 07, 2007 3:04 am    Post subject: Reply with quote

No you do not, these things are not set right at all. Please read the following tutorials adding perl, python, php, ETC... support.


http://www.aprelium.com/abyssws/php.html (PHP)
http://www.aprelium.com/abyssws/perl.html (PERL)
http://www.aprelium.com/abyssws/aspnet/ (ASP.NET)
http://www.aprelium.com/abyssws/asp.html (ASP)
http://www.aprelium.com/abyssws/python.html (Python)
http://www.aprelium.com/abyssws/ror.html (ruby on the rails)
_________________
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 View user's profile Send private message AIM Address
cenocre
-


Joined: 12 Mar 2007
Posts: 47

PostPosted: Sat Jul 07, 2007 5:57 am    Post subject: Reply with quote

"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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Jul 07, 2007 2:56 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
cenocre
-


Joined: 12 Mar 2007
Posts: 47

PostPosted: Sat Jul 07, 2007 6:17 pm    Post subject: Documentation Links Reply with quote

Thanks - Here are the links.

For Dada Mail: http://mojo.skazat.com/installation/

For Panorama Enterprise Server: http://www.ipodorganizer.com/ee/Panorama%20Enterprise.pdf
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Jul 09, 2007 2:41 pm    Post subject: Re: Documentation Links Reply with quote

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 View user's profile Send private message Send e-mail
cenocre
-


Joined: 12 Mar 2007
Posts: 47

PostPosted: Mon Jul 09, 2007 3:47 pm    Post subject: Reply with quote

Thanks, I'll give that a try.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group