| CGI Scripting | ||||
|
If you can't find your question, please let us know and we'll answer it in email.
Questions Answered Elsewhere
Yes. You get your own personal CGI bin. What is a good source of CGI scripts such as Shopping Carts? Two good places to download CGI scripts are: What version of Perl are you running? We currently run Perl 5.004 and 5.6.1. We update it frequently, but anything that works under Perl 5.004 or 5.6.1 should work under any other version of Perl 5. What is a wrapper CGI script? Does it create any limitations on scripts possibilities? It lets us give you the ability to run your own CGI scripts, without compromising our security. There are few, if any limitations imposed by such wrappers (i.e. most of your scripts will work). For working examples look at:
Will I have access to my own CGI bin directory to run Perl scripts? Yes. What are CGI scripts and how do I use them? They are a way of using programs to both generate web pages dynamically and process user input. You need to learn a little about how to program in a Unix environment either in C or a script language like Perl. Could you let me have a sample of (insert programming task here) for me to look at? We recommend you search for a publicly available example. I would like to call a program written in C from a CGI script. What is the procedure for compiling the code on your machine? Log onto the server using ssh and use the compiler GCC (GNU project C and C++ Compiler v2.4). A minor note, just so that you understand the conditions under which we support development: We provide the environment so that you can develop script and programs, you are completely responsible for your development efforts. I'm having problems with my CGI script. What should I do? In general, when you are working on modifying an example program, which is now failing but worked when you started, go back to the example exactly, copy it, and then modify it slowly until it stops working, then you will know what you did that caused the bug. Here are a few things to check:
I get the following error message, even trying your demo CGI: "suid attempt aborted! Reason: execve failed - Permission denied" You need to make your script executable. Telnet to your account, cd to he cgi-bin directory, and type:
This will correctly set the permissions for your script. Do I need to have you activate something so that I can run cgi-bin scripts on my account? No. You already have the complete ability to install and execute your own scripts. Do I need to ask for permission to run a CGI script? No need to ask for permission, we provide you with your own personal cgi-bin into which you can install and modify scripts at your leisure. All we ask is that you follow the guidelines on the user scripting page that can be reached from:
The key one being respect for server resources. Do you offer any kind of search engine so that our customers can perform search amongst a database? You are welcome to install a CGI script to do this. There are several general database packages for Unix which could be invoked via a CGI script. Can we install our own development tools? Yes, in your user directory. What type of forms do you currently have available? You can create any kind of form you want. We support user CGI scripting and you can install your own form processing CGI script. Do you have support for mail forms? You can check our tutorials section for NMS FormMail. Other form scripts work as well, though we recommend NMS. Is there a reason the format of my subject line is not working as an HREF? It brings up the web clients mail client, and allows entry of the message. But when 'Send' is clicked, it comes back with an error locating the server 'mail'. Yes. You need to configure your Web clients SMTP server preference. We will assume you are using Netscape. Select the item Preferences from the Options menu. That should bring up the Preferences window. Select Mail and News from the pop up menu item at the top of the window. Enter your pertinent information where it says mail. Be sure to enter a valid SMTP server, if you don't know what the name of the mail server your current provider has running you can enter mailout.he.net. Click Ok. Now you can send mail using Netscape. The second cause for your problem, if you have already done the above, is that your providers mail server went down. I was trying to set up an imagemap last night and noticed you have no imagemap.conf in /httpd/conf/. We use a version of imagemap that eliminates the need for users to change a central configuration file. Every user can add their own imagemaps at their discretion without intervention from us. For more information on how to do imagemaps on our server see: http://www.he.net/faq/tutorials My previous ISP required me to email the imagemap co-ords for him to place on his server somewhere. What happens at your site? What do I do with the hot-spot co-ords? You have complete and total control over your imagemap files. Read the information at: http://www.he.net/faq/tutorials with regards to imagemaps. Can you run a WAIS gateway script on your server? Yes you could, provided you obtained the script and installed it yourself. We would like to be able to seach a database via a form. Do you offer such a capability? We have mySQL, an SQL type database installed. There are many different publically available CGI frontends available for it. A mySQL database is included with all accounts. Your database name is the same as your account name. Your mySQL database should be initialized when your account is created, so that you may immediately begin using it. See our mySQL FAQ or mySQL Mirror Site for more information on using mySQL. Can I use Active Server Pages on Hurricane Electric? Due to economic and performance considerations, we do not offer support for ASP. You are welcome to install your own set of additional modules. When you build modules, use the PREFIX option when generating Makefiles:
then either set the PERL5LIB environment variable before you run scripts that use the modules/libraries (see the perlrun manpage) or say:
Is it possible to invoke a script without using suid? Yes, the suEXEC feature is on by default for newer accounts. You can see if suEXEC is enabled for your account by logging into the billing database at: Then click on Edit Virtual Host Options. Then choose the check box next to suEXEC and click on Change. Once suEXEC is enabled in your account, and let's say the domain name for your account was squishypenguin.com, you would invoke your script with the URL:
|
||||
|
Hurricane Electric 760 Mission Court Fremont, CA 94539 |
FAQ Index Copyright © 1994 - 2004 Hurricane Electric. All Rights Reserved. |
Voice 510.580.4100 Fax 510.580.4151 Comments? info@he.net |