Ayuda con apache

Hola tengo un problema con apache estoy intentando levantar una pagina web pero no me quiere funcionar se queda colgado el navegador(netscape 6.1). Cuando reinicio el demonio de apache /etc/rc.d/init.d/httpd restart me sale lo siguiente:
perl:warning:setting locale failed.
perl:warning:please check that your locale settings:
lenguaje = (unset),
lc_all = (unset)
lang = "es_ES"
are supported and installed on your system.
perl:warning :falling back to the standard locale.

1 Respuesta

Respuesta
1
Hi,
Mira lo que te puede estar pasando es que no se encuentre el directorio del Perl porque no esta instalado (que no creo) o que este mal el direccionamiento en el archivo de configuracion de Apache (http.conf) en el directorio de instalacion de Apache.
Me serviria mucho si me comentas que distribucion de Linux y que version de Apache instalaste.
Corrobora si tenes instalado el Perl (que el Linux por defecto lo trae) y si esta bien el directorio en el http.conf.
Tambien puede llegar a ser que hiciste el "./configure" con argumentos erroneos como una ruta invalida para el perl o algo asi.
Cualquier consulta no dudes en preguntarme.
Nahuelon..
tengo instalado redhat 7.1, apache-1.3.19-5, perl-5.6.0-12.
ServerType StandAlone
ServerRoot /etc/httpd/
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule env_module modules/mod_env.so
LoadModule config_log_module modules/mod_log_config.so
LoadModule agent_log_module modules/mod_log_agent.so
LoadModule referer_log_module modules/mod_log_referer.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule status_module modules/mod_status.so
LoadModule info_module modules/mod_info.so
LoadModule includes_module modules/mod_include.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule dir_module modules/mod_dir.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule asis_module modules/mod_asis.so
LoadModule imap_module modules/mod_imap.so
LoadModule action_module modules/mod_actions.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule anon_auth_module modules/mod_auth_anon.so
LoadModule db_auth_module modules/mod_auth_db.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule setenvif_module modules/mod_setenvif.so
<IfDefine HAVE_PERL>
LoadModule perl_module modules/libperl.so
</IfDefine>
<IfDefine HAVE_PHP>
LoadModule php_module modules/mod_php.so
</IfDefine>
<IfDefine HAVE_PHP3>
LoadModule php3_module modules/libphp3.so
</IfDefine>
<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IfDefine>
<IfDefine HAVE_DAV>
LoadModule dav_module modules/libdav.so
</IfDefine>
<IfDefine HAVE_ROAMING>
LoadModule roaming_module modules/mod_roaming.so
</IfDefine>
<IfDefine HAVE_SSL>
LoadModule ssl_module modules/libssl.so
</IfDefine>
ClearModuleList
AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_log_agent.c
AddModule mod_log_referer.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_auth_anon.c
AddModule mod_auth_db.c
AddModule mod_expires.c
AddModule mod_headers.c
AddModule mod_so.c
AddModule mod_setenvif.c
<IfDefine HAVE_PERL>
AddModule mod_perl.c
</IfDefine>
<IfDefine HAVE_PHP>
AddModule mod_php.c
</IfDefine>
<IfDefine HAVE_PHP3>
AddModule mod_php3.c
</IfDefine>
<IfDefine HAVE_PHP4>
AddModule mod_php4.c
</IfDefine>
<IfDefine HAVE_DAV>
AddModule mod_dav.c
</IfDefine>
<IfDefine HAVE_ROAMING>
AddModule mod_roaming.c
</IfDefine>
<IfDefine HAVE_SSL>
AddModule mod_ssl.c
</IfDefine>
ServerName servidorlinux
ServerAdmin [email protected]
Listen *:80
Listen *:8080
Port 80
ScoreBoardFile /var/run/httpd.scoreboard
LockFile /var/lock/httpd.lock
PidFile /var/run/httpd.pid
CoreDumpDirectory "/etc/httpd"
DocumentRoot /var/www/html
UserDir public_html
IndexOptions FancyIndexing
User apache
Group apache
MaxClients 150
TimeOut 300
KeepAlive false
MaxKeepAliveRequests 100
MaxRequestsPerChild 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 20
StartServers 8
AccessFileName .htaccess
UseCanonicalName on
TypesConfig /etc/mime.types
DefaultType "text/plain"
ErrorLog /var/log/httpd/error_log
LogLevel warn
HostNameLookups Off
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/httpd/access_log common
Alias /icons/ "/var/www/icons/"
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddLanguage en .en
AddLanguage fr .fr
AddLanguage de .de
AddLanguage da .da
AddLanguage el .el
AddLanguage it .it
<IfModule mod_php4.c>
AddType application/x-httpd-php .php4 .php3 .phtml .php
AddType application/x-httpd-php-source .phps
</IfModule>
# The following is for PHP3:
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
</IfModule>
# The following is for PHP/FI (PHP2):
<IfModule mod_php.c>
AddType application/x-httpd-php .phtml
</IfModule>
AddType application/x-tar .tgz
AddType text/html .shtml
AddHandler server-parsed .shtml
AddHandler imap-file map
responses.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
<IfModule mod_perl.c>
Alias /perl/ /var/www/perl/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Location>
</IfModule>
Alias /doc/ /usr/share/doc/
<Location /doc>
order deny,allow
deny from all
allow from localhost
Options Indexes FollowSymLinks
</Location>
<IfDefine HAVE_SSL>
Listen 443
<VirtualHost _default_:443>
DocumentRoot "/var/www/html"
SSLEngine on
<Files ~ "\.(cgi|shtml)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/var/www/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
CustomLog /var/log/httpd/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
</IfDefine>
<Directory "/">
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/www/html">
Options Indexes Includes FollowSymLinks
AllowOverride None
Allow from from all
Order Deny,Allow
</Directory>
<Directory "/var/www/icons">
Options Indexes MultiViews
AllowOverride None
Allow from from all
Order allow,deny
</Directory>
<Directory "/var/www/cgi-bin">
Options ExecCGI
AllowOverride None
Allow from from all
Order allow,deny
</Directory>
disculpa tanta molestia, y gracias por la atencion prestada.
Encontre en el Readme que para generar compatibilidad con Perl se debe ejecutar el "./configure" (ademas de los prefijos que has utilizado) con el de la siguiente linea de comando:
$ ./configure --prefix=/path/to/apache \
--activate-module=src/modules/perl/libperl.a \
[--enable-shared=perl]
Proba con esto. Lamentablemente vas a tener que compilar de nuevo ya que tenes que hacer el make y make install.
Espero que funcione. Y cualquier consulta no dudes en preguntarme.
Nahuelon..
que es lo que tengo que volver a compilar, ya que el mensaje que me saca como te digo es cada vez que reinicio el demonio de apache, entonces no entiendo que es lo que debo volver a compilar?
perdona tanta ignoracia y me has sido de gran ayuda pero necesito mas....
gracias por la atencion prestada.
Hi de nuevo,
Mira, yo pense que habias instalado el Apache desde cero y por lo visto has utilizado el que te trae RedHat.
RedHat te instala todos los paquetes que seleccionas en forma de RPM que es una formato de RedHat para instaladores. Esta forma es muy simple pero no permite que le pongas ciertas clausulas que permiten el correcto funcionamiento.
Lo que te recomiendo es que te bajes de internet una version de Apache www.apache.org con el codigo fuente y que sigas los pasos de la instalacion.
Primero te pide que ejecutes un archivos que se llama "configure" que es el encargado de tomar todas las compativilidades y sus respectivas rutas para el servidor, (directorio de instalacion, perl, mysql, php, etc.)
Segundo tenes que ejecutar "make" y luego "make install". Esto te genera los archivos del demonio y de configuracion.
Si tenes instalado el Apache que te viene con RedHat eliminalo con la opcion "rpm -e NombreDelPaquete" o "rpm - u NombreDelPaquete" no me acuerdo muy bien (hace un "man rpm" y fijate).
Espero que puedas hacer andar tu servidor HTTP y cualquier consulta no dudes en preguntarme.
Nahuelon..
cuando estoy intentando desintalarlo me saca unas dependencias, y no quiero dejar mi sistema inestable.
gracias por la atencion prestada.
Hi,
El RPM trae unas opciones (que estan en el man) para corroborar las dependencias y eliminarlas o conservarlas.
Sino, tambien lo que podes hacer (que funciona igual) es instalarlo igual pero tene cuidado con las rutas que referencien a Apache.
Nahuelon..
listo ya lo desisntale ahora voy abuscar las fuentes de apache is sabes de algun lugar comentame
ya me baje las fuentes, ya lo descomprimi y desempaquete ahora que?
podrias darme una ayuda con esto?
./configure --prefix=/usr/local/apache --enable-module=access --enable-module=asis --enable-module=autoindex --enable-module=example --enable-module=log_agent --enable-module=mime_magic --enable-module=negotiation --enable-module=setenvif --enable-module=status --enable-module=usertrack --enable-module=actions --enable-module=dir --enable-module=expires --enable-module=include --enable-module=log_config --enable-module=mime --enable-module=so --enable-module=vhost_alias --enable-module=alias --enable-module=auth --enable-module=cgi --enable-module=env --enable-module=headers --enable-module=info --enable-module=log_referer --activate-module=src/modules/php3/libphp3.a --activate-module=src/modules/perl/libperl.a --enable-module=php3 --enable-module=perl
make ; make install
Hi,
Si, es justamente eso. ¿Fijate si utilizas algunos de los modulos porque miestras mas le agregas mas "pesado" queda el httpd, ok?
Suerte. Cualquier otra consulta no dudes en preguntarme.
Nahuelon..

Añade tu respuesta

Haz clic para o

Más respuestas relacionadas