Perl en Español

  1. Home
  2. Tutoriales
  3. Foro
  4. Artículos
  5. Donativos
  6. Publicidad
 
Índice general » Mundo Perl » Web » Cómo configurar Apache Responder al tema
Nuevo tema


Página 2 de 2  [ 24 mensajes ]  Ir a página Anterior  1, 2
 
Nota 2008-08-10 01:50 @118
Avatar de Usuario
Perlero Nuevo
Registrado: 2008-08-09 11:02 @501
Ubicación: Guatemala, Guatemala
Mensajes: 36
Pues no sé cómo cambiar esos valores, me imagino que si los realizo con chmod 755 sí funciona porque ese sí da permisos de lectura, escritura y ejecución...

Le dejo una copia de mi error.log para ver si usted descubre el problema con ello porque yo no logro identificarlo...

Código:
[Sat Aug 09 09:05:38 2008] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured -- resuming normal operations
[Sat Aug 09 10:36:55 2008] [notice] caught SIGTERM, shutting down
[Sat Aug 09 11:19:42 2008] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured -- resuming normal operations
[Sat Aug 09 11:36:33 2008] [error] [client 127.0.0.1] File does not exist: /var/www/prueba.cgi
[Sat Aug 09 11:45:55 2008] [notice] caught SIGWINCH, shutting down gracefully
[Sat Aug 09 11:47:15 2008] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured -- resuming normal operations
[Sat Aug 09 12:24:46 2008] [error] [client 127.0.0.1] File does not exist: /var/www/cgi-bin
[Sat Aug 09 12:24:53 2008] [error] [client 127.0.0.1] (13)Permission denied: exec of '/usr/lib/cgi-bin/prueba.cgi' failed
[Sat Aug 09 12:24:53 2008] [error] [client 127.0.0.1] Premature end of script headers: prueba.cgi
[Sat Aug 09 12:28:04 2008] [error] [client 127.0.0.1] (13)Permission denied: exec of '/usr/lib/cgi-bin/prueba.cgi' failed, referer: http://perlenespanol.baboonsoftware.com/foro/about742.html
[Sat Aug 09 12:28:04 2008] [error] [client 127.0.0.1] Premature end of script headers: prueba.cgi, referer: http://perlenespanol.baboonsoftware.com/foro/about742.html
[Sat Aug 09 12:33:16 2008] [error] [client 127.0.0.1] (13)Permission denied: exec of '/usr/lib/cgi-bin/prueba.cgi' failed
[Sat Aug 09 12:33:16 2008] [error] [client 127.0.0.1] Premature end of script headers: prueba.cgi
[Sat Aug 09 12:37:39 2008] [notice] caught SIGWINCH, shutting down gracefully
[Sat Aug 09 13:39:01 2008] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured -- resuming normal operations
[Sat Aug 09 19:21:07 2008] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Sat Aug 09 20:11:40 2008] [error] [client 127.0.0.1] File does not exist: /var/www/cgi-bin
[Sat Aug 09 20:11:51 2008] [error] [client 127.0.0.1] attempt to invoke directory as script: /usr/lib/cgi-bin/
[Sat Aug 09 20:12:41 2008] [error] [client 127.0.0.1] script '/var/www/Prueba1.php' not found or unable to stat
[Sat Aug 09 21:38:16 2008] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /var/www/Prueba1.pl
[Sat Aug 09 21:47:13 2008] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Sat Aug 09 22:01:55 2008] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /var/www/Cgi-Bin/Prueba1.pl, referer: http://localhost/Cgi-Bin/
[Sat Aug 09 22:02:13 2008] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /var/www/Cgi-Bin/Prueba1.pl, referer: http://localhost/Cgi-Bin/
[Sat Aug 09 22:05:31 2008] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /var/www/Cgi-Bin/Prueba1.pl, referer: http://localhost/Cgi-Bin/
[Sat Aug 09 22:47:23 2008] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Sat Aug 09 23:04:24 2008] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Sat Aug 09 23:13:46 2008] [error] [client 127.0.0.1] script not found or unable to stat: /usr/lib/cgi-bin/Prueba1.pl
[Sat Aug 09 23:13:55 2008] [error] [client 127.0.0.1] attempt to invoke directory as script: /usr/lib/cgi-bin/
[Sat Aug 09 23:15:14 2008] [error] [client 127.0.0.1] File does not exist: /var/www/\xc3\xa7
[Sat Aug 09 23:15:23 2008] [error] [client 127.0.0.1] File does not exist: /var/www/Cgi-Bin
[Sat Aug 09 23:15:46 2008] [notice] Graceful restart requested, doing restart
[Sat Aug 09 23:15:47 2008] [warn] The ScriptAlias directive in /etc/apache2/apache2.conf at line 301 will probably never match because it overlaps an earlier ScriptAlias.
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sat Aug 09 23:15:48 2008] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured -- resuming normal operations
[Sat Aug 09 23:15:57 2008] [notice] Graceful restart requested, doing restart
[Sat Aug 09 23:15:57 2008] [warn] The ScriptAlias directive in /etc/apache2/apache2.conf at line 301 will probably never match because it overlaps an earlier ScriptAlias.
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sat Aug 09 23:15:57 2008] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured -- resuming normal operations
[Sat Aug 09 23:18:24 2008] [error] [client 127.0.0.1] attempt to invoke directory as script: /var/www/cgi-bin/
[Sat Aug 09 23:23:50 2008] [error] [client 127.0.0.1] attempt to invoke directory as script: /var/www/cgi-bin/
[Sat Aug 09 23:34:05 2008] [error] [client 127.0.0.1] attempt to invoke directory as script: /var/www/cgi-bin/
[Sat Aug 09 23:49:08 2008] [notice] Graceful restart requested, doing restart
[Sat Aug 09 23:49:09 2008] [warn] The ScriptAlias directive in /etc/apache2/apache2.conf at line 301 will probably never match because it overlaps an earlier ScriptAlias.
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sat Aug 09 23:49:09 2008] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured -- resuming normal operations
[Sat Aug 09 23:50:00 2008] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sat Aug 09 23:50:00 2008] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured -- resuming normal operations
[Sat Aug 09 23:52:12 2008] [error] [client 127.0.0.1] attempt to invoke directory as script: /usr/lib/cgi-bin/
[Sat Aug 09 23:56:11 2008] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sat Aug 09 23:56:12 2008] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured -- resuming normal operations
[Sat Aug 09 23:58:44 2008] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sat Aug 09 23:58:44 2008] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured -- resuming normal operations
[Sun Aug 10 00:00:48 2008] [error] [client 127.0.0.1] attempt to invoke directory as script: /var/www/cgi-bin/
[Sun Aug 10 00:06:10 2008] [error] [client 127.0.0.1] attempt to invoke directory as script: /var/www/cgi-bin/
[Sun Aug 10 00:17:49 2008] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Sun Aug 10 00:17:54 2008] [error] [client 127.0.0.1] attempt to invoke directory as script: /var/www/cgi-bin/
[Sun Aug 10 00:39:20 2008] [error] [client 127.0.0.1] attempt to invoke directory as script: /var/www/cgi-bin/


Todo eso fue los errores desde la configuración hasta ahora. Tal vez de esta forma usted identifique qué causa el problema que tengo. Ante todo, gracias por su ayuda, y yo por el momento me voy a dormir mañana a seguir batallando para arreglar esto gracias...


Nota 2008-08-10 01:52 @119
Avatar de Usuario
Perlero Nuevo
Registrado: 2008-08-09 11:02 @501
Ubicación: Guatemala, Guatemala
Mensajes: 36
Ahhh, se me olvidaba. Al realizar el ls -al /var/www/cgi-bin me aparece lo siguiente. Creo que sí es un problema con permisos...

Código:
drwxr-xr-x 2 l0rd5had0w root 4096 2008-08-09 21:25 .
drwxr-xr-x 7 l0rd5had0w root 4096 2008-08-09 23:01 ..
-rwxr-xr-x 1 l0rd5had0w root   76 2008-08-09 21:25 Prueba1.pl
-rw-r--r-- 1 l0rd5had0w root    0 2008-08-09 21:24 Prueba1.pl~


Salu2 y hasta la próxima, o sea, mañana, jeje XD Gracias por su ayuda, fue de mucha utilidad...


Nota 2008-08-10 02:10 @132
Avatar de Usuario
Administrador
Registrado: 2005-07-24 18:12 @800
Ubicación: Valladolid, España
Mensajes: 10249
Pues no... los permisos están bien...

Lo ideal es que la carpeta, y los programas de su interior, sean propiedad del usuario que ejecuta el servidor web. Ahí sí que es necesario el uso del chown.

_________________
JF^D Perl programming


Nota 2008-08-10 13:34 @607
Avatar de Usuario
Perlero Nuevo
Registrado: 2008-08-09 11:02 @501
Ubicación: Guatemala, Guatemala
Mensajes: 36
Hola Salu2, pues chown() ya se los agregué a la carpeta y al fichero pero aun así no hay forma. Lo que no entiendo es que cuando lo tengo como cgi-bin me aparece ese error de permiso; cuando lo cambio a Cgi-Bin no me aparece el error de permisos en la carpeta pero si en el fichero... será que el problema se puede deber a que en el sistema existe la carpeta /usr/lib/cgi-bin y yo creé la /var/www/cgi-bin, bueno, qué otro posible problema se podría estar presentando? Ya leí el how-to de Apache y lo seguí paso a paso. No sé qué otra cosa podría ser... Espero ayuda gracias...


Nota 2008-08-10 13:51 @619
Avatar de Usuario
Administrador
Registrado: 2005-07-24 18:12 @800
Ubicación: Valladolid, España
Mensajes: 10249
Lo normal, en un sistema Linux, cuando está el Apache instalado, es que no hay que tocar casi nada para que funcione.

Yo te recomiendo: 1.- que dejes los ficheros de configuración COMO ESTABAN, 2.- que compruebes que realmente existe una sección cgi-bin en los ficheros de configuración. Seguramente estará apuntando a /usr/lib/cgi-bin. 3.- Deja tus cgi en esa carpeta.

Eso es lo que saco viendo los mensajes de error.

El error de 'Aug 09 12:24:53 2008' indica que el programa en /usr/lib/cgi-bin no tiene permisos de ejecución.

_________________
JF^D Perl programming


Nota 2008-08-10 14:12 @633
Avatar de Usuario
Perlero Nuevo
Registrado: 2008-08-09 11:02 @501
Ubicación: Guatemala, Guatemala
Mensajes: 36
Ups. Ahora lo complicado es cómo lo regreso a esa configuración, es decir, elimino todo lo que le agregué a los ficheros de configuración, como apache2.conf y a httpd.conf... para solucionarlo voy a probar a ver qué tal me va. Gracias por la ayuda...


Nota 2008-08-10 14:23 @641
Avatar de Usuario
Administrador
Registrado: 2005-07-24 18:12 @800
Ubicación: Valladolid, España
Mensajes: 10249
Que yo sepa solo has añadido lo del cgi-bin en el directorio /var/www/cgi-bin.

_________________
JF^D Perl programming


Nota 2009-08-01 13:01 @584

Perlero Nuevo
Registrado: 2009-07-13 11:27 @518
Mensajes: 3
Re: Cómo configurar Apache
Hola. Quisiera saber si me podrían explicar cómo configurar Apache para que me corra los script en Windows. la verdad que soy nuevo en esto y no he logrado configurar el ScriptAlias.

¿Me podrían ayudar?

Gracias


Última edición por explorer el 2009-08-01 20:27 @894, editado 1 vez en total
Ortografía


Nota 2009-08-01 21:03 @918
Avatar de Usuario
Administrador
Registrado: 2005-07-24 18:12 @800
Ubicación: Valladolid, España
Mensajes: 10249
Re: Cómo configurar Apache
Yo instalaría el paquete WAMPP junto con el Perl (buscar Perl 5.10 en la misma página) y lo tendría todo montado.

Tienes guías de instalación en Español, a partir de la página WAMPP en Wikipedia.

_________________
JF^D Perl programming


Responder al tema  [ 24 mensajes ]  Ir a página Anterior  1, 2

Reglas del Foro
No puedes abrir nuevos temas en este Foro
No puedes responder a temas en este Foro
No puedes editar tus mensajes en este Foro
No puedes borrar tus mensajes en este Foro
No puedes enviar adjuntos en este Foro

Publicidad

Socializa

Síguenos por Twitter

Suscríbete GRATUITAMENTE al Boletín de Perl en Español

Saltar a:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Traducción al español por Huan Manwë para phpbb-es.com
phpBB SEO