Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

error al arrancar apache ¿?

318 views
Skip to first unread message

Victor Lopez Sabio

unread,
Nov 24, 2007, 11:37:11 AM11/24/07
to
Saludos y espero saber explicarme para que me podáis orientar.

Primero lo que tengo (y creo que interesa para este caso):
---- /etc/hosts ----
127.0.0.1 localhost
...
---- /etc/apache2/apache2.conf ----
...
# ports that the server listens to
# http
Listen 80
# https
Listen 443

# IP address that will be accepting requests for the hosts.
NameVirtualHost *

# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/
---- /etc/apache2/sites-enabled ----
000-localhost -> /etc/apache2/sites-available/localhost
---- /etc/apache2/sites-available/localhost ----
<VirtualHost *>
ServerName localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
--------------------------------------------------
y aquí empieza 'el baile'
--------------------------------------------------
...$ sudo /etc/init.d/apache2 -k start
apache2: Could not reliably determine the server's fully qualified domain
name, using 127.0.0.1 for ServerName
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
...$ sudo /etc/init.d/apache2 -k restart
apache2: Could not reliably determine the server's fully qualified domain
name, using 127.0.0.1 for ServerName
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

¿Falta algo? ¿Que hago mal?


----o---( )---o----
Saludos de Victor Lopez Sabio
v.lo...@ono.com
--------oooo--------

Exal de Jesus Garcia Carrillo

unread,
Nov 24, 2007, 11:50:27 AM11/24/07
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Victor Lopez Sabio em es.comp.os.linux.redes escreveu :


> ...$ sudo /etc/init.d/apache2 -k start
> apache2: Could not reliably determine the server's fully qualified domain
> name, using 127.0.0.1 for ServerName
> (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
> no listening sockets available, shutting down
> Unable to open logs

Lo primero que se me ocurre, prueba a poner en tu /etc/hosts, algo como esto:

,----
| 127.0.0.1 localhost.localdomain localhost
`----

otra, para que no te salga ese warning define en tu apache2.conf la directiva `ServerName'.
ah, y no puedes reiniciar el servidor porque simplemente no se ha iniciado ;).


- --
Spam protection:
In my e-mail remplace the words `no-spam' with `exal'.


.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iD8DBQFHSFZRoZmxoVJRtGIRAu4dAKCWOD5V4TtnvM504ibemmdD748lfgCeN22U
VpdTuf23Da92PTD6N1s3Ec8=
=v1Ft
-----END PGP SIGNATURE-----

Victor Lopez Sabio

unread,
Nov 24, 2007, 1:29:50 PM11/24/07
to
> Lo primero que se me ocurre, prueba a poner en tu /etc/hosts, algo como
> esto:
>
> ,----
> | 127.0.0.1 localhost.localdomain localhost
> `----

Una idea ... pero /etc/hosts solo 'traduce' las llamadas ...
Mi problema es al arrancar el apache.

> otra, para que no te salga ese warning define en tu apache2.conf la
> directiva `ServerName'. ah, y no puedes reiniciar el servidor porque
> simplemente no se ha iniciado ;).

ServerName lo tengo dentro de los servidores virtuales (en este
caso 'localhost').

Y ... si. Si no ha iniciado, dificilmente puede REiniciarse :-)

Pero el principal problema es ¿porque no se inicia? :-(
--

Victor Lopez Sabio

unread,
Nov 24, 2007, 5:34:11 PM11/24/07
to
De momnto, y hasta que entienda el porque, agradecería si me dais unas
lineas de código, que funcionen ... aunque séan básicas.

Gracias 1000 .... :-)

(De paso comparo a ver porque no me funcionan las mías)

--

Iñaki Arenaza

unread,
Nov 25, 2007, 6:29:36 AM11/25/07
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Victor" == Victor Lopez Sabio <v.lo...@ono.com> writes:

Victor> Could not reliably determine the server's fully qualified
Victor> domain name, using 127.0.0.1 for ServerName

Esto es un aviso, pero no un fallo grave. Con sólo este aviso Apache
arranca sin problemas: garantizado :-)

Victor> (98)Address already in use: make_sock: could not bind to
Victor> address 0.0.0.0:80 no listening sockets available,
Victor> shutting down

Este sin embargo es mucho más grave. Dice que ya hay otro proceso
ocupando el puerto 80, y que por tanto Apache no puede usarlo. Y como
lo has configurado para usar el 80, siemplemente no puede funcionar
conforme a la configuración dada y se termina.

Tendrás que mirar qué está ocupando el puerto 80. Como root,
ejecutando algo como esto:

netstat -pna | grep :80

deberías tener una pista bastante buena. Luego tu debes decidir si
quieres que esa otra cosa use el puerto 80 o prefieres que sea
Apache. Y reconfigurar el que sea para que use un puerto diferente al
80.

Victor> Unable to open logs

Este mensaje tampoco tiene buena pinta, pero probablemente esté
relacionado con el anterior, que es fatal de todos modos.

Saludos. Iñaki.

- --
Get PGP/GPG Keys at http://www.escomposlinux.org/iarenaza/pgpkey.php
I use free software / Yo uso software libre


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iD8DBQFHSVyfZXLnGT1HLgcRAmOPAKCTBXZKea5GjB4LGu8LWD+wXtai2wCdHIWM
StsD/SD5NpwawVCs79KbWvM=
=Oxnl
-----END PGP SIGNATURE-----

Antonio

unread,
Jan 14, 2008, 7:16:22 AM1/14/08
to
Victor Lopez Sabio a écrit :

Pues tiene la pinta que tienes otro proceso trabajando el puerto 80 y
por eso el apache no es capaz de lanzarse.


0 new messages