Av. Cristóvão Colombo 2716 - Porto Alegre - RS
Fone (51) 9841 7762

Mais de 4100 domínios hospedados desde 1998!
             
   
     


C G I

HTML Básico | Geral | FTP | E-mail | CGI

Formulário e contador aqui!

Índice


CGIwrap Error: System Error: execv() failed

Geralmente esse erro ocorre quando o arquivo é enviado no formato binário (BINARY) e não no formato ASCII.

Todos programas cgi PERL devem ser enviados no formato ASCII.

Solução: Envie novamente os arquivos cgi no formato ASCII.

Outro problema comum: Se o erro acima é seguido pela mensagem:

  • Error: Exec format error (8)

Existe a possibilidade da primeira linha de seu script não ser:
#!/usr/bin/perl


CGIwrap Error: User not found in passwd file.

A fonte mais comum desse problema é a referência incorreta ao script.

Solução: Edite onde o script é "chamado" e corrija a URL.


CGIwrap Error: Script is not executable.

The cgi script attempting to be executed does not have execute permissions.

In order for a cgi script to be executable (runnable) it must first be given execute permissions. This is done using the chmod command.

The recommended permissions for a cgi script are rwxr-xr-x (chmod 755).

For more information on changing file permissions see:
How do I change file permissions through FTP.


How do I change file permissions through FTP?

Changing file permissions depends on the FTP program that you are using. We'll describe methods with several programs, on several different operating systems. If you still require assistance after having tried the following, send email to he@he.com.br.

MS Windows, Windows-95, Windows-NT

  • For Windows we recommend the FTP client WS_FTP (WS Ftp for download).
    1. On the "Remote" window of WS_FTP, locate your cgi file and highlight it.
    2. Right click somewhere in the "Remote" window, and select chmod (UNIX) in the resulting menu.
    3. Select the appropriate permissions and click OK
      The following permissions are to make a cgi program executable:
      • Owner Group Other
        * Read * Read * Read
        * Write _ Write _ Write
        * Execute * Execute * Execute

    If the chmod was successful you'll see a message in your commands window that looks like the following:

    200 CHMOD command successful.

Macintosh

  1. Choose the file.cgi
  2. Choose the REMOTE|SET PERMISSIONS
  3. Choose the appropriate permissions

NOTE:
The recommended permissions for a cgi script are rwxr-xr-x (chmod 755).


What's the FULL/COMPLETE PATH for files in my account?

Many PERL programs found on the internet require that you give a fully qualified pathname to files in your account. For example, the configuration of a counter script may require knowing the exact path of its datafile on the server. It is a common mistake to just put /cgi-bin/ since that is the home of your account, however, the TRUE directory is very different.

Contact us if you have this problem.


Where is XXXXX located on the server?

The following are the locations of some commonly used programs in CGI scripts:

  • /usr/bin/perl
  • /bin/sendmail
  • /bin/date

What should the first line read in my PERL script?

Either of the following will work as the first line of your PERL script:

#!/bin/perl

or

#!/usr/bin/perl


Volta ao índice do suporte



Inscreva-se já!

Página principal | Planos | FAQ | Inscrição | Web designers | Usuários | Suporte