• Publicidad

Ver resultados Linux

¿Apenas comienzas con Perl? En este foro podrás encontrar y hacer preguntas básicas de Perl con respuestas aptas a tu nivel.

Notapor zinwandago » 2007-04-25 08:15 @386

Bien en X:\apache\logs encuentro esto:
ARCHIVO ERROR contiene:
[Wed Apr 25 11:44:17 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations
[Wed Apr 25 11:44:17 2007] [notice] Server built: Jan 9 2007 23:17:20
[Wed Apr 25 11:44:17 2007] [notice] Parent: Created child process 2944
[Wed Apr 25 11:44:17 2007] [notice] Child 2944: Child process is running
[Wed Apr 25 11:44:17 2007] [notice] Child 2944: Acquired the start mutex.
[Wed Apr 25 11:44:17 2007] [notice] Child 2944: Starting 250 worker threads.
[Wed Apr 25 11:44:17 2007] [notice] Child 2944: Starting thread to listen on port 80.
[Wed Apr 25 11:45:15 2007] [error] [client 127.0.0.1] File does not exist: X:/Apache/htdocs/favicon.ico
[Wed Apr 25 11:45:15 2007] [error] [client 127.0.0.1] File does not exist: X:/Apache/htdocs/favicon.ico
[Wed Apr 25 11:45:44 2007] [error] [client 127.0.0.1] File does not exist: X:/Apache/htdocs/favicon.ico
[Wed Apr 25 11:47:22 2007] [error] [client 127.0.0.1] File does not exist: X:/Apache/htdocs/favicon.ico
[Wed Apr 25 11:47:27 2007] [error] [client 127.0.0.1] File does not exist: X:/Apache/htdocs/favicon.ico
[Wed Apr 25 11:51:54 2007] [error] [client 127.0.0.1] X:/Apache/cgi-bin/probar.cgi is not executable; ensure interpreted scripts have "#!" first line
[Wed Apr 25 11:51:54 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: X:/Apache/cgi-bin/probar.cgi
[Wed Apr 25 11:58:30 2007] [error] [client 127.0.0.1] X:/Apache/cgi-bin/probar.cgi is not executable; ensure interpreted scripts have "#!" first line
[Wed Apr 25 11:58:30 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: X:/Apache/cgi-bin/probar.cgi
[Wed Apr 25 11:58:32 2007] [error] [client 127.0.0.1] X:/Apache/cgi-bin/probar.cgi is not executable; ensure interpreted scripts have "#!" first line
[Wed Apr 25 11:58:32 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: X:/Apache/cgi-bin/probar.cgi
[Wed Apr 25 11:58:33 2007] [error] [client 127.0.0.1] X:/Apache/cgi-bin/probar.cgi is not executable; ensure interpreted scripts have "#!" first line
[Wed Apr 25 11:58:33 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: X:/Apache/cgi-bin/probar.cgi
[Wed Apr 25 11:58:34 2007] [error] [client 127.0.0.1] X:/Apache/cgi-bin/probar.cgi is not executable; ensure interpreted scripts have "#!" first line
[Wed Apr 25 11:58:34 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: X:/Apache/cgi-bin/probar.cgi
[Wed Apr 25 11:58:34 2007] [error] [client 127.0.0.1] X:/Apache/cgi-bin/probar.cgi is not executable; ensure interpreted scripts have "#!" first line
[Wed Apr 25 11:58:34 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: X:/Apache/cgi-bin/probar.cgi
[Wed Apr 25 11:58:35 2007] [error] [client 127.0.0.1] X:/Apache/cgi-bin/probar.cgi is not executable; ensure interpreted scripts have "#!" first line
[Wed Apr 25 11:58:35 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: X:/Apache/cgi-bin/probar.cgi
[Wed Apr 25 12:00:01 2007] [error] [client 127.0.0.1] X:/Apache/cgi-bin/probar.cgi is not executable; ensure interpreted scripts have "#!" first line
[Wed Apr 25 12:00:01 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: X:/Apache/cgi-bin/probar.cgi
[Wed Apr 25 12:00:03 2007] [error] [client 127.0.0.1] X:/Apache/cgi-bin/probar.cgi is not executable; ensure interpreted scripts have "#!" first line
[Wed Apr 25 12:00:03 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: X:/Apache/cgi-bin/probar.cgi
[Wed Apr 25 12:00:03 2007] [error] [client 127.0.0.1] X:/Apache/cgi-bin/probar.cgi is not executable; ensure interpreted scripts have "#!" first line
[Wed Apr 25 12:00:03 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: X:/Apache/cgi-bin/probar.cgi
[Wed Apr 25 12:00:03 2007] [error] [client 127.0.0.1] X:/Apache/cgi-bin/probar.cgi is not executable; ensure interpreted scripts have "#!" first line
[Wed Apr 25 12:00:03 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: X:/Apache/cgi-bin/probar.cgi
[Wed Apr 25 12:24:45 2007] [error] [client 127.0.0.1] X:/Apache/cgi-bin/probar.cgi is not executable; ensure interpreted scripts have "#!" first line
[Wed Apr 25 12:24:45 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: X:/Apache/cgi-bin/probar.cgi
[Wed Apr 25 12:25:08 2007] [error] [client 127.0.0.1] (OS 2)El sistema no puede hallar el archivo especificado. : couldn't create child process: 720002: usuarios.cgi
[Wed Apr 25 12:25:08 2007] [error] [client 127.0.0.1] (OS 2)El sistema no puede hallar el archivo especificado. : couldn't spawn child process: X:/Apache/cgi-bin/usuarios.cgi


ARCHIVO ACCESS contiene:

127.0.0.1 - - [25/Apr/2007:11:45:15 +0200] "GET / HTTP/1.1" 200 44
127.0.0.1 - - [25/Apr/2007:11:45:15 +0200] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [25/Apr/2007:11:45:15 +0200] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [25/Apr/2007:11:45:44 +0200] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [25/Apr/2007:11:47:22 +0200] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [25/Apr/2007:11:47:27 +0200] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [25/Apr/2007:11:51:54 +0200] "GET /cgi-bin/probar.cgi HTTP/1.1" 500 541
127.0.0.1 - - [25/Apr/2007:11:58:30 +0200] "GET /cgi-bin/probar.cgi HTTP/1.1" 500 541
127.0.0.1 - - [25/Apr/2007:11:58:32 +0200] "GET /cgi-bin/probar.cgi HTTP/1.1" 500 541
127.0.0.1 - - [25/Apr/2007:11:58:33 +0200] "GET /cgi-bin/probar.cgi HTTP/1.1" 500 541
127.0.0.1 - - [25/Apr/2007:11:58:34 +0200] "GET /cgi-bin/probar.cgi HTTP/1.1" 500 541
127.0.0.1 - - [25/Apr/2007:11:58:34 +0200] "GET /cgi-bin/probar.cgi HTTP/1.1" 500 541
127.0.0.1 - - [25/Apr/2007:11:58:35 +0200] "GET /cgi-bin/probar.cgi HTTP/1.1" 500 541
127.0.0.1 - - [25/Apr/2007:12:00:01 +0200] "GET /cgi-bin/probar.cgi HTTP/1.1" 500 541
127.0.0.1 - - [25/Apr/2007:12:00:03 +0200] "GET /cgi-bin/probar.cgi HTTP/1.1" 500 541
127.0.0.1 - - [25/Apr/2007:12:00:03 +0200] "GET /cgi-bin/probar.cgi HTTP/1.1" 500 541
127.0.0.1 - - [25/Apr/2007:12:00:03 +0200] "GET /cgi-bin/probar.cgi HTTP/1.1" 500 541
127.0.0.1 - - [25/Apr/2007:12:24:45 +0200] "GET /cgi-bin/probar.cgi HTTP/1.1" 500 541
127.0.0.1 - - [25/Apr/2007:12:25:08 +0200] "GET /cgi-bin/usuarios.cgi HTTP/1.1" 500 541

ARCHIVO INSTALL:

Installing Apache HTTP 2.0 server with
DomainName = localhost
ServerName = localhost
ServerAdmin = [email protected]
ServerPort = 80
ServerSslPort = 80
ServerRoot = X:/Apache
Rewrote X:/Apache/conf/default/httpd-autoindex.conf.in
to X:/Apache/conf/default/httpd-autoindex.conf
Successfully removed X:\Apache\conf\default\httpd-autoindex.conf.in
Rewrote X:/Apache/conf/default/httpd-vhosts.conf.in
to X:/Apache/conf/default/httpd-vhosts.conf
Successfully removed X:\Apache\conf\default\httpd-vhosts.conf.in
Rewrote X:/Apache/conf/default/httpd-default.conf.in
to X:/Apache/conf/default/httpd-default.conf
Successfully removed X:\Apache\conf\default\httpd-default.conf.in
Rewrote X:/Apache/conf/default/httpd-manual.conf.in
to X:/Apache/conf/default/httpd-manual.conf
Successfully removed X:\Apache\conf\default\httpd-manual.conf.in
Rewrote X:/Apache/conf/default/httpd-mpm.conf.in
to X:/Apache/conf/default/httpd-mpm.conf
Successfully removed X:\Apache\conf\default\httpd-mpm.conf.in
Rewrote X:/Apache/conf/default/httpd-info.conf.in
to X:/Apache/conf/default/httpd-info.conf
Successfully removed X:\Apache\conf\default\httpd-info.conf.in
Rewrote X:/Apache/conf/default/httpd-dav.conf.in
to X:/Apache/conf/default/httpd-dav.conf
Successfully removed X:\Apache\conf\default\httpd-dav.conf.in
Rewrote X:/Apache/conf/default/httpd-languages.conf.in
to X:/Apache/conf/default/httpd-languages.conf
Successfully removed X:\Apache\conf\default\httpd-languages.conf.in
Rewrote X:/Apache/conf/default/httpd-win.conf
to X:/Apache/conf/default/httpd.conf
Successfully removed X:\Apache\conf\default\httpd-win.conf
Rewrote X:/Apache/conf/default/httpd-userdir.conf.in
to X:/Apache/conf/default/httpd-userdir.conf
Successfully removed X:\Apache\conf\default\httpd-userdir.conf.in
Rewrote X:/Apache/conf/default/httpd-ssl.conf.in
to X:/Apache/conf/default/httpd-ssl.conf
Successfully removed X:\Apache\conf\default\httpd-ssl.conf.in
Rewrote X:/Apache/conf/default/httpd-multilang-errordoc.conf.in
to X:/Apache/conf/default/httpd-multilang-errordoc.conf
Successfully removed X:\Apache\conf\default\httpd-multilang-errordoc.conf.in
Duplicated X:/Apache/conf/default/magic
to X:/Apache/conf/magic
Duplicated X:/Apache/conf/default/httpd-autoindex.conf
to X:/Apache/conf/extra/httpd-autoindex.conf
Duplicated X:/Apache/conf/default/httpd-vhosts.conf
to X:/Apache/conf/extra/httpd-vhosts.conf
Duplicated X:/Apache/conf/default/httpd-default.conf
to X:/Apache/conf/extra/httpd-default.conf
Duplicated X:/Apache/conf/default/mime.types
to X:/Apache/conf/mime.types
Duplicated X:/Apache/conf/default/charset.conv
to X:/Apache/conf/charset.conv
Duplicated X:/Apache/conf/default/httpd-manual.conf
to X:/Apache/conf/extra/httpd-manual.conf
Duplicated X:/Apache/conf/default/httpd-mpm.conf
to X:/Apache/conf/extra/httpd-mpm.conf
Duplicated X:/Apache/conf/default/httpd-info.conf
to X:/Apache/conf/extra/httpd-info.conf
Duplicated X:/Apache/conf/default/httpd-dav.conf
to X:/Apache/conf/extra/httpd-dav.conf
Duplicated X:/Apache/conf/default/httpd-languages.conf
to X:/Apache/conf/extra/httpd-languages.conf
Duplicated X:/Apache/conf/default/httpd.conf
to X:/Apache/conf/httpd.conf
Duplicated X:/Apache/conf/default/httpd-userdir.conf
to X:/Apache/conf/extra/httpd-userdir.conf
Duplicated X:/Apache/conf/default/httpd-ssl.conf
to X:/Apache/conf/extra/httpd-ssl.conf
Duplicated X:/Apache/conf/default/httpd-multilang-errordoc.conf
to X:/Apache/conf/extra/httpd-multilang-errordoc.conf
Successfully removed X:\Apache\conf\default\InstallConf22.awk
zinwandago
Perlero nuevo
Perlero nuevo
 
Mensajes: 35
Registrado: 2007-04-24 12:06 @545

Publicidad

Notapor explorer » 2007-04-25 08:32 @397

El error es claro:
Código: Seleccionar todo
X:/Apache/cgi-bin/probar.cgi is not executable; ensure interpreted scripts have "#!" first line

Te falta por poner el 'shebang' en la primera línea del cgi.

Mira en la carpeta de cgi del Apache, que seguro que viene alguno de ejemplo. Verás que en la primera línea aparece el shebang.

Sin ella, Apache no sabe con qué intérprete o ejecutable arrancar el cgi.

En Windows te vale con poner '#!Perl', mientras que en Linux te sirve con '#!/usr/bin/perl'.
JF^D Perl programming & Raku programming. Grupo en Telegram: https://t.me/Perl_ES
Avatar de Usuario
explorer
Administrador
Administrador
 
Mensajes: 14486
Registrado: 2005-07-24 18:12 @800
Ubicación: Valladolid, España

Notapor zinwandago » 2007-04-25 08:45 @406

JOder,estoy apoyargado!!!!!!!!
Lo he probado y funciona.

Muchas gracias explorer!!!!!! Mi Dios!!!!!!!.
Puedo dar el tema por concluido.Ahora a seguir haciendo cosillas con esa base.
zinwandago
Perlero nuevo
Perlero nuevo
 
Mensajes: 35
Registrado: 2007-04-24 12:06 @545

Transpaso a fedora

Notapor zinwandago » 2007-04-27 11:37 @526

HOla de nuevo; bueno despues de conseguir que funcionase en windows lo de poder crear usuarios con sus password, lo he intentado probar en linux.
Instale apache y los mod per y librerias graficas de perl.
El caso es que me funcionaba,cambié el shebang y algunas cosas mas como
$listado = '/tmp/usuarios' #Creo e inserto todos los usuarios.

Pero el problemas es éste,me la crea bien e inserta correctamente,pero cuando pincho en borrar algun usuario me aparece en el navegador:

NOT FOUND
The requested URL /tmp/usuarios
was not found on this server

Despues mire los errores en el log (tail -f /var/log/httpd/*log),apareciendome lo siguiente:

File does not exist:/var/www/html/tmp/,referencer:http://localhost/~conan/perl/usuarios.cgi


¿Que debo de modificar?
zinwandago
Perlero nuevo
Perlero nuevo
 
Mensajes: 35
Registrado: 2007-04-24 12:06 @545

Notapor explorer » 2007-04-27 11:52 @536

Pues ha ocurrido que el script usuarios.cgi ha solicitado una URL que no existe.

Poco más se puede saber con la información que nos das...
JF^D Perl programming & Raku programming. Grupo en Telegram: https://t.me/Perl_ES
Avatar de Usuario
explorer
Administrador
Administrador
 
Mensajes: 14486
Registrado: 2005-07-24 18:12 @800
Ubicación: Valladolid, España

Anterior

Volver a Básico

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados

cron