Tenon Intersystems Please see text links at bottom of page for navigation
Please see text links at bottom of page for navigation

Search tenon.com

Thanks to:

iTools

Re: setting up perl

To: itools@xxxxxxxxxxxxxxx
Subject: Re: setting up perl
From: eyang@xxxxxxxxx (Eric Yang)
Date: Wed, 3 Dec 2003 12:20:37 -0800

On Dec 3, 2003, at 8:11 AM, superdad@xxxxxxxxxxx wrote:


OK, did what you said. Ran into some problems.
1. when setting permissions I chose www as owner and permissions to be "read and write", I've seen directions in some perl scripts that use "read and execute", any problem here?

It should be Read and Execute. Read and write does not allow the server to run the script as executable. Sorry, the Finder Get Info does not set permission for Executable. Therefore you must change the script with Terminal chmod command. Sorry about the miss information earlier.


2. Went into admin(itools). to mime section handler. clicked on "new" added"perl-script" ext pl. Hit save. Checked status saw Apache down, clicked restart---it would not restart until I restarted the whole machine. Went back to mime to check what I had done. I now see in handler "type-map" (which was the original and only handler with a suffix of var) that now has a ext of "pl". Try as I may I cannot change that back to "var". When I mess with it apache shuts off and cannot restart from the admin. I must restart the machine. This is a production machine and some clients have already noticed the downtime. How can I get my changes to stick? I am using itools 7.1.

mod_perl will require you to use "sudo apachectl restart" or reboot the machine to restart the web server on 10.2 machines. This has been fixed on 10.3. Try to remove type-map, click Save, then add type-map and var back, as well as per-script and pl.


3. What, if any of this can be done remotely?

Yes. Simply add in Mime type like you did to custom extension.


4 In creating the form the post agruement must be used and pointed to the pl script.
Should that script be located in the cgi-executables folder in Itools or can it be in the home directory of the website, cgi folder? And then how should it be referred to in the web form page?

If a folder is defined in Access Control section with Option Execute CGI Scripts enabled, then you can use it as CGI-Executables folder. For example, the site folder is located in /Library/Tenon/WebServer/WebSites/www.example.com and you create a sub-folder scripts. Then enable Execute CGI Scripts for /Library/Tenon/WebServer/WebSites/www.example.com/scripts would allow you to execute CGI scripts. The url can be access as http://www.example.com/scripts/scriptname.pl, if you have scriptname.pl in scripts folder.


5 should I have a cgi-bin folder in each site with the script or an alias in it?

Independent cgi-bin folder is probably better. You need to setup ExecCGI option in Access Control for each folder. This is because if all the cgi-script are in one folder, then all virtual hosts would have access to the same set of cgi-scripts.


regards,
Eric

Things were so much easier in OS9, although page serving was so much slower.

On Dec 2, 2003, at 6:14 PM, Alex Solomotis wrote:


Questions;
1. What is the correct path to perl/ standard itools install?

/Library/Tenon/Perl/Executables/perl


2. Can I set permission in "get info" instead of terminal and
chimoding things?
I have turned on the perl module in admin...but I think I have to set
mime.

Yes, you can set permission using "Get Info" of the Finder.


3 What is the correct type for .pl. I also don't see .cgi in the
suffix section.

perl-script (If mod_perl is enabled) or cgi-script.


4. Should I turn my cgi perl script (pl) into ,cgi suffix and map to
perl?

If you just want to use them as CGI script then, then you can use .cgi extension. If you want really fast response, then use mod_perl and set .pl to perl-script handler. Note, mod_perl comes with other problems. i.e. Perl scripts can not be modified while it's already pre-cached. Apache needs to be restarted each time that you change the perl scripts.

regards,
Eric

The manual is only lightly helpful in this secttion.
Regards all,
Alex

---------
Tenon Intersystems' iTools Mailing List
To unsubscribe: send mail to
itools-request@xxxxxxxxxxxxxxx
with the body only containing:
unsubscribe
Find the searchable mailing list archives
at:
http://itools.blackpepper.co.nz/


--------- Tenon Intersystems' iTools Mailing List To unsubscribe: send mail to itools-request@xxxxxxxxxxxxxxx with the body only containing: unsubscribe Find the searchable mailing list archives at: http://itools.blackpepper.co.nz/

<Prev in Thread] Current Thread [Next in Thread>

| Tenon Home | Products | Order | Contact Us | About Tenon | Register | Tech Support | Resources | Press Room | Mailing Lists |

Powered By iTools

Copyright©2003 Tenon Intersystems, 232 Anacapa Street, Suite 2A, Santa Barbara, CA 93101. All rights reserved.
Questions about our website - Contact: webmaster@tenon.com.


Tenon Home  Tenon Home  Tenon Home  Tenon Home Product Info  Tenon Ordering Contact About Register Support Resources Press Mailing Lists