Título: Ni Apache, ni Xampp ni Wamp...todos bien pero no cargo localhost!!! [¿Formateo?]
Publicado por: wolvelopez en 16 Febrero 2011, 11:40 am
Saludos compañeros, Recurro a ustedes porque no encuentro solución por ningún lado. Veo otras personas con el mismo problema pero yo no consigo resolverlo.
He instalado apache, Xampp, WAMP y todos ejecutan bien y me marcan que el servidor apache está correctamente funcionando en el puerto que le indico(he probado el 80, 8080, etc...) pero a la hora de hacer http://localhost o http://IP_Interna no hay manera de que me carguen la pagina que deben.
En mi frustración hasta e reseteado los sockets por si acaso mediante la herramienta winsockfix e incluso con "netsh int ip reset" pero el problema sigue ahí.
Tengo el cortafuegos de windows XP SP3 desactivado y para colmo he desinstalado el antivirus por si acaso.
Ya no se que mas puedo hacer. Denme un poco de luz en el asunto por favor. Muchas gracias por adelantado.
Título: Re: Ni Apache, ni Xampp ni Wamp...todos bien pero no cargo localhost!!!
Publicado por: #!drvy en 16 Febrero 2011, 16:36 pm
Cuando dices ip interna te refieres a 127.0.0.1 ?
Has mirado aver en los archivos host ? Deberia estar en C:\Windows\System32\drivers\etc\hosts , y por lo minimo deberia tener una linea no comentada como esta: 127.0.0.1 localhost
Saludos
Título: Re: Ni Apache, ni Xampp ni Wamp...todos bien pero no cargo localhost!!!
Publicado por: wolvelopez en 16 Febrero 2011, 16:59 pm
Saludos. Con IP interna me referia a 192.168.1.36, pero también he probado con 127.0.0.1 También he mirado el archivo de hosts y esta correcto. Existe la linea de localhost prefectamente. Ahora mismo estoy intentando ir desactivando servicios para ver si alguno interfiere pero de momento nada. También estoy realizando sfc /scannow por si alguna libreria de windows se hubiese dañado y afectara a sockets...(no se si esto puede ser pero por si acaso lo intento). :-\
Título: Re: Ni Apache, ni Xampp ni Wamp...todos bien pero no cargo localhost!!!
Publicado por: el-brujo en 16 Febrero 2011, 20:39 pm
copia la configuración del fichero httpd.conf del Apache, dónde pone ServerName para ver que tienes puesto y porqué no funciona.
Escribe ServerName 192.168.1.36 y debería funcionar.
Título: Re: Ni Apache, ni Xampp ni Wamp...todos bien pero no cargo localhost!!!
Publicado por: wolvelopez en 17 Febrero 2011, 09:54 am
Saludos. Esto es el fichero httpd.conf hasta la parte de ServerName. Voy a probar a colocar ServeName 192.168.1.36 para ver si asi entra. # # This is the main Apache HTTP server configuration file. It contains the # configuration directives that give the server its instructions. # See <URL:http://httpd.apache.org/docs/2.2> for detailed information. # In particular, see # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html> # for a discussion of each configuration directive. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "logs/foo.log" # with ServerRoot set to "C:/xampp/apache" will be interpreted by the # server as "C:/xampp/apache/logs/foo.log". # # NOTE: Where filenames are specified, you must use forward slashes # instead of backslashes (e.g., "c:/apache" instead of "c:\apache"). # If a drive letter is omitted, the drive on which httpd.exe is located # will be used by default. It is recommended that you always supply # an explicit drive letter in absolute paths to avoid confusion.
# # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # Do not add a slash at the end of the directory path. If you point # ServerRoot at a non-local disk, be sure to point the LockFile directive # at a local disk. If you wish to share the same ServerRoot for multiple # httpd daemons, you will need to change at least LockFile and PidFile. # ServerRoot "C:/xampp/apache"
# # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, instead of the default. See also the <VirtualHost> # directive. # # Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses. # #Listen 0.0.0.0:80 #Listen [::]:80 Listen 80
# # Dynamic Shared Object (DSO) Support # # To be able to use the functionality of a module which was built as a DSO you # have to place corresponding `LoadModule' lines at this location so the # directives contained in it are actually available _before_ they are used. # Statically compiled modules (those listed by `httpd -l') do not need # to be loaded here. # # Example: # LoadModule foo_module modules/mod_foo.so # LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule asis_module modules/mod_asis.so LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule auth_digest_module modules/mod_auth_digest.so #LoadModule authn_alias_module modules/mod_authn_alias.so #LoadModule authn_anon_module modules/mod_authn_anon.so #LoadModule authn_dbd_module modules/mod_authn_dbd.so #LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_default_module modules/mod_authn_default.so LoadModule authn_file_module modules/mod_authn_file.so #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so #LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_default_module modules/mod_authz_default.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_host_module modules/mod_authz_host.so #LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_user_module modules/mod_authz_user.so ##LoadModule autoindex_module modules/mod_autoindex.so # replaced with autoindex_color_module #LoadModule bucketeer_module modules/mod_bucketeer.so #LoadModule cache_module modules/mod_cache.so #LoadModule case_filter_module modules/mod_case_filter.so #LoadModule case_filter_in_module modules/mod_case_filter_in.so #LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule cgi_module modules/mod_cgi.so #LoadModule charset_lite_module modules/mod_charset_lite.so LoadModule dav_module modules/mod_dav.so LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule dav_lock_module modules/mod_dav_lock.so #LoadModule dbd_module modules/mod_dbd.so #LoadModule deflate_module modules/mod_deflate.so LoadModule dir_module modules/mod_dir.so #LoadModule disk_cache_module modules/mod_disk_cache.so #LoadModule dumpio_module modules/mod_dumpio.so #LoadModule echo_module modules/mod_echo.so LoadModule env_module modules/mod_env.so #LoadModule example_module modules/mod_example.so #LoadModule expires_module modules/mod_expires.so #LoadModule ext_filter_module modules/mod_ext_filter.so #LoadModule file_cache_module modules/mod_file_cache.so #LoadModule filter_module modules/mod_filter.so LoadModule headers_module modules/mod_headers.so #LoadModule ident_module modules/mod_ident.so #LoadModule imagemap_module modules/mod_imagemap.so LoadModule include_module modules/mod_include.so LoadModule info_module modules/mod_info.so LoadModule isapi_module modules/mod_isapi.so #LoadModule ldap_module modules/mod_ldap.so #LoadModule logio_module modules/mod_logio.so LoadModule log_config_module modules/mod_log_config.so #LoadModule log_forensic_module modules/mod_log_forensic.so #LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule mime_module modules/mod_mime.so #LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule negotiation_module modules/mod_negotiation.so #LoadModule proxy_module modules/mod_proxy.so #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so #LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so #LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so #LoadModule speling_module modules/mod_speling.so LoadModule ssl_module modules/mod_ssl.so LoadModule status_module modules/mod_status.so #LoadModule substitute_module modules/mod_substitute.so #LoadModule unique_id_module modules/mod_unique_id.so #LoadModule userdir_module modules/mod_userdir.so #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule version_module modules/mod_version.so #LoadModule vhost_alias_module modules/mod_vhost_alias.so
# # 3rd party modules # LoadModule autoindex_color_module modules/mod_autoindex_color.so
<IfModule !mpm_netware_module> <IfModule !mpm_winnt_module> # # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. # # User/Group: The name (or #number) of the user/group to run httpd as. # It is usually good practice to create a dedicated user and group for # running httpd, as with most system services. # User daemon Group daemon
</IfModule> </IfModule>
# 'Main' server configuration # # The directives in this section set up the values used by the 'main' # server, which responds to any requests that aren't handled by a # <VirtualHost> definition. These values also provide defaults for # any <VirtualHost> containers you may define later in the file. # # All of these directives may appear inside <VirtualHost> containers, # in which case these default settings will be overridden for the # virtual host being defined. #
# # ServerAdmin: Your address, where problems with the server should be # e-mailed. This address appears on some server-generated pages, such # as error documents. e.g. admin@your-domain.com # ServerAdmin postmaster@localhost
# # ServerName gives the name and port that the server uses to identify itself. # This can often be determined automatically, but we recommend you specify # it explicitly to prevent problems during startup. # # If your host doesn't have a registered DNS name, enter its IP address here. # ServerName localhost:80
# # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "C:/xampp/htdocs"
Título: Re: Ni Apache, ni Xampp ni Wamp...todos bien pero no cargo localhost!!!
Publicado por: wolvelopez en 17 Febrero 2011, 09:59 am
Nada... También he probado a cambiar la linea del ServerName por: ServerName 192.168.1.35 pero sigo igual.
Tengo curiosidad de saber que hay entre el servidor Apache y el navegador...para intentar seguir haciendo cosillas porque estoy un poco atascado.
A seguir intentando toca...
Título: Re: Ni Apache, ni Xampp ni Wamp...todos bien pero no cargo localhost!!!
Publicado por: Slava_TZD en 17 Febrero 2011, 10:23 am
netstat -a | find ":80" | more Si no te sale nada, es que el demonio servicio no está a la escucha.
Título: Re: Ni Apache, ni Xampp ni Wamp...todos bien pero no cargo localhost!!!
Publicado por: wolvelopez en 17 Febrero 2011, 10:59 am
Creo que es el problema... esto me sale: C:\xampp>netstat -a | find ":80" | more
C:\xampp>
Pero el xampp me dice que Apache inicia correctamente, al igual que si sólo instalo Apache. Aparte el servicio httpd.exe está iniciado en el administrador de procesos.
Título: Re: Ni Apache, ni Xampp ni Wamp...todos bien pero no cargo localhost!!!
Publicado por: Slava_TZD en 17 Febrero 2011, 11:17 am
Pues eso, ya sabes cual es el motivo de que no se muestre nada en http://localhost/, la causa por la que apache no se inicia correctamente...ni la más remota idea.
Título: Re: Ni Apache, ni Xampp ni Wamp...todos bien pero no cargo localhost!!!
Publicado por: wolvelopez en 17 Febrero 2011, 11:27 am
El problema es que no se por donde tirar ya que si instalao apache a secas, solo el servidor web y lo inicio desde la consola: httpd.exe -k install httpd.exe -k start
Me inicia correctamente sin dar ningún tipo de error. Tambien he mirado los logs y nada de nada, aparentemente me inicia bien. Yo sigo con la mosca detras de la oreja por si no me estuviesen funcionando bien los sockets. Esto mas puedo aportar: C:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd.exe -k install Installing the Apache2.2 service The Apache2.2 service is successfully installed. Testing httpd.conf.... Errors reported here must be corrected before the service can be started. httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.35 for ServerName
C:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd.exe -k start httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.35 for ServerName
C:\Program Files\Apache Software Foundation\Apache2.2\bin>
Título: Re: Ni Apache, ni Xampp ni Wamp...todos bien pero no cargo localhost!!!
Publicado por: Slava_TZD en 17 Febrero 2011, 11:37 am
Errors reported here must be corrected before the service can be started. httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.35 for ServerName
Título: Re: Ni Apache, ni Xampp ni Wamp...todos bien pero no cargo localhost!!!
Publicado por: wolvelopez en 17 Febrero 2011, 11:53 am
Ok, desintale xampp. Al volver a instalar Apache solo despues de eliminar el servicio me tira esto: C:\Program Files\Apache Software Foundation\Apache2.2\bin>sc delete "Apache2.2" [SC] DeleteService SUCCESS
C:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd.exe -k install Installing the Apache2.2 service The Apache2.2 service is successfully installed. Testing httpd.conf.... Errors reported here must be corrected before the service can be started.
C:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd.exe -k start
C:\Program Files\Apache Software Foundation\Apache2.2\bin>netstat -a | find ":80" | more
C:\Program Files\Apache Software Foundation\Apache2.2\bin>
antes tambien he probado a cambiar el puerto a 8080 y me tiraba esto el netstat: C:\Program Files\Apache Software Foundation\Apache2.2\bin>netstat -a | find ":8080" | more TCP Portatil_Jose:8080 Portatil_Jose:0 LISTENING
Pero tampoco me cargaba el localhost en 8080 asi que lo he vuelto a dejar en el puerto 80. Gracias por su ayuda de antemano.
Título: Re: Ni Apache, ni Xampp ni Wamp...todos bien pero no cargo localhost!!!
Publicado por: Slava_TZD en 17 Febrero 2011, 12:03 pm
Ahora no tengo Windows a mano, pero hay un parámetro para netstat que te dice el PID del proceso que está en ese puerto, búscalo y cuando lo tengas: tasklist /FI "PID eq AQUIELPID" PD: Es para comprobar que es apache quien está realmente en el 8080.
Título: Re: Ni Apache, ni Xampp ni Wamp...todos bien pero no cargo localhost!!!
Publicado por: wolvelopez en 17 Febrero 2011, 13:04 pm
Bueno, esto sale del netstat -ano: C:\Program Files\Apache Software Foundation\Apache2.2\bin>netstat -ano
Active Connections
Proto Local Address Foreign Address State PID TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 1216 TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4 TCP 0.0.0.0:1033 0.0.0.0:0 LISTENING 2020 TCP 0.0.0.0:1801 0.0.0.0:0 LISTENING 2020 TCP 0.0.0.0:2103 0.0.0.0:0 LISTENING 2020 TCP 0.0.0.0:2105 0.0.0.0:0 LISTENING 2020 TCP 0.0.0.0:2107 0.0.0.0:0 LISTENING 2020 -->TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 3840
y despues realizo el tasklist y veo que ese PID efectivamente lo tiene el server de apache httpd.exe: C:\Program Files\Apache Software Foundation\Apache2.2\bin>tasklist
Nombre de imagen PID Nombre de sesión Núm. de Uso de memor ========================= ====== ================ ======== ============ System Idle Process 0 Console 0 28 KB System 4 Console 0 236 KB smss.exe 852 Console 0 432 KB csrss.exe 900 Console 0 3.880 KB winlogon.exe 928 Console 0 5.328 KB services.exe 972 Console 0 3.696 KB lsass.exe 984 Console 0 1.752 KB svchost.exe 1168 Console 0 5.748 KB svchost.exe 1216 Console 0 4.732 KB svchost.exe 1260 Console 0 37.100 KB svchost.exe 1300 Console 0 3.532 KB svchost.exe 1352 Console 0 4.396 KB svchost.exe 1452 Console 0 3.352 KB spoolsv.exe 1768 Console 0 7.112 KB sched.exe 1816 Console 0 864 KB msdtc.exe 608 Console 0 5.184 KB avguard.exe 676 Console 0 17.652 KB ehrecvr.exe 720 Console 0 4.812 KB ehSched.exe 732 Console 0 4.756 KB jqs.exe 792 Console 0 1.476 KB lxdrcoms.exe 1564 Console 0 3.072 KB NMSAccessU.exe 1656 Console 0 1.912 KB svchost.exe 1476 Console 0 4.032 KB avshadow.exe 1872 Console 0 2.892 KB svchost.exe 1980 Console 0 4.504 KB mqsvc.exe 2020 Console 0 6.180 KB mcrdsvc.exe 380 Console 0 3.228 KB mqtgsvc.exe 1612 Console 0 4.056 KB explorer.exe 1644 Console 0 10.520 KB SynTPEnh.exe 2160 Console 0 5.428 KB avgnt.exe 2256 Console 0 1.516 KB ctfmon.exe 2404 Console 0 3.484 KB alg.exe 2940 Console 0 3.736 KB chrome.exe 2068 Console 0 48.664 KB chrome.exe 2372 Console 0 14.940 KB chrome.exe 1692 Console 0 19.936 KB chrome.exe 832 Console 0 32.700 KB cmd.exe 1072 Console 0 1.428 KB chrome.exe 280 Console 0 32.352 KB chrome.exe 2156 Console 0 11.404 KB chrome.exe 3092 Console 0 39.372 KB taskmgr.exe 2148 Console 0 2.020 KB mmc.exe 3416 Console 0 2.288 KB chrome.exe 2564 Console 0 26.288 KB ApacheMonitor.exe 2772 Console 0 1.112 KB cmd.exe 2076 Console 0 132 KB -->httpd.exe 3840 Console 0 4.688 KB -->httpd.exe 264 Console 0 4.452 KB chrome.exe 2328 Console 0 32.692 KB tasklist.exe 1720 Console 0 4.740 KB wmiprvse.exe 2344 Console 0 6.008 KB
Aunque no entiendo porque hay dos procesos, aunque hay varia gente que pregunta eso y no tiene errores al cargar apache.
Título: Re: Ni Apache, ni Xampp ni Wamp...todos bien pero no cargo localhost!!!
Publicado por: wolvelopez en 18 Febrero 2011, 13:22 pm
Bueno camaradas. Ante la impotencia de arreglar este problema a la par de uno nuevo que me ocurre con office estoy procediendo a sacar los datos de windows y después de 3 años formatear el equipo que ya va siendo hora. Es una puñeta ya que por mi trabajo, me toca formatear muchos equipos pero siempre joriba que te toque a ti mismo y siempre he pensado que formatear es lo último que se hace. Ante todo muchas gracias compañeros por vuestra ayuda y seguiré por el foro dando guerra.
Saludos.
|