Página 1 de 2
					
				log de apache2 ?
				Publicado: Vie, 13 May 2011, 03:18
				por nerdhacker
				estoy teniendo este error al iniciar mi servidor apache local, alguien puede decirme donde encuentro el archivo log de apache?
Código: Seleccionar todo
nerdhacker@Inspiron-1545:~$ sudo /etc/init.d/apache2 start
[sudo] password for nerdhacker: 
 * Starting web server apache2                                                                                                                                          apache2: Syntax error on line 230 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled/000-default: No such file or directory
Action 'start' failed.
The Apache error log may have more information.
 
			 
			
					
				Re: log de apache2 ?
				Publicado: Vie, 13 May 2011, 11:23
				por KZKG^Gaara
				/var/log/apache2/error.log
/var/log/apache2/access.log
Revisa si el archivo /etc/apache2/sites-enabled/000-default existe en realidad...
			 
			
					
				Re: log de apache2 ?
				Publicado: Vie, 13 May 2011, 11:25
				por elav
				Crea el fichero y ponle esto adentro:
Código: Seleccionar todo
NameVirtualHost *
<VirtualHost *>
	ServerAdmin webmaster@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>
	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	<Directory "/usr/lib/cgi-bin">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
	</Directory>
	ErrorLog /var/log/apache2/error.log
	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn
	CustomLog /var/log/apache2/access.log combined
	ServerSignature On
    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>
</VirtualHost>
 
			 
			
					
				Re: log de apache2 ?
				Publicado: Vie, 13 May 2011, 11:46
				por 103
				Habrá "tocado" algo porque este archivo se crea por defecto cuando se instala Apache.
			 
			
					
				pre solutioned
				Publicado: Vie, 13 May 2011, 17:29
				por nerdhacker
				pre solucionado pero aun me saca un par de warnings.
Código: Seleccionar todo
nerdhacker@Inspiron-1545:~$ sudo /etc/init.d/apache2 start
 * Starting web server apache2                                                                                                                                          apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Fri May 13 17:21:58 2011] [warn] NameVirtualHost *:0 has no VirtualHosts
[Fri May 13 17:21:58 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
el problema estuvo que no se porque razon se borro el archivo default en la ruta /etc/apache2/sites-available , tal vez fue metiendo el dedo donde no debi en el webmin.
solution
crear el archivo "default" en la ruta /etc/apache2/sites-available nuevamente y pegarle el codigo que me brindo @elav
Código: Seleccionar todo
    NameVirtualHost *
    <VirtualHost *>
       ServerAdmin webmaster@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>
       ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
       <Directory "/usr/lib/cgi-bin">
          AllowOverride None
          Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
          Order allow,deny
          Allow from all
       </Directory>
       ErrorLog /var/log/apache2/error.log
       # Possible values include: debug, info, notice, warn, error, crit,
       # alert, emerg.
       LogLevel warn
       CustomLog /var/log/apache2/access.log combined
       ServerSignature On
        Alias /doc/ "/usr/share/doc/"
        <Directory "/usr/share/doc/">
            Options Indexes MultiViews FollowSymLinks
            AllowOverride None
            Order deny,allow
            Deny from all
            Allow from 127.0.0.0/255.0.0.0 ::1/128
        </Directory>
    </VirtualHost>
@elav porke me esta dando estos warnings al iniciarse apache?? antes no salian
[Fri May 13 17:21:58 2011] [warn] NameVirtualHost *:0 has no VirtualHosts
[Fri May 13 17:21:58 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
 
			 
			
					
				Re: log de apache2 ?
				Publicado: Vie, 13 May 2011, 17:54
				por elav
				A lo mejor tiene que ver con la versión de apache que estás usando. Tomé como ejemplo el fichero que trae Apache 2.2.8-1 en Ubuntu Hardy, por lo que supongo que tu Apache está más actualizado.. Trata poniendo las lineas asi:
Esta:
Código: Seleccionar todo
    NameVirtualHost *
    <VirtualHost *>
       ServerAdmin webmaster@localhost
Asi:
Código: Seleccionar todo
    NameVirtualHost *
    <VirtualHost *:80>
       ServerAdmin webmaster@localhost
o asi:
Código: Seleccionar todo
    NameVirtualHost *:80
    <VirtualHost *:80>
       ServerAdmin webmaster@localhost
Prueba a ver.
 
			 
			
					
				el mismo perro con diferente collar
				Publicado: Vie, 13 May 2011, 18:21
				por nerdhacker
				igual este es el resultado y dos veces
Código: Seleccionar todo
nerdhacker@Inspiron-1545:~$ sudo /etc/init.d/apache2 restart
 * Restarting web server apache2                                                                                                                                        apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Fri May 13 18:20:24 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
[Fri May 13 18:20:24 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
 ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Fri May 13 18:20:25 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
[Fri May 13 18:20:25 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
 
			 
			
					
				Re: el mismo perro con diferente collar
				Publicado: Sab, 14 May 2011, 08:53
				por elav
				nerdhacker escribió:igual este es el resultado y dos veces
Código: Seleccionar todo
nerdhacker@Inspiron-1545:~$ sudo /etc/init.d/apache2 restart
 * Restarting web server apache2                                                                                                                                        apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Fri May 13 18:20:24 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
[Fri May 13 18:20:24 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
 ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Fri May 13 18:20:25 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
[Fri May 13 18:20:25 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
 
Prueba quitar el NameVirtualHost *
 
			 
			
					
				Re: log de apache2 ?
				Publicado: Sab, 14 May 2011, 17:05
				por nelson
				Hola, estoy utilizando la version 2.2.14 en lucid, estas son mis lineas del archivo 
/etc/apache2/sites-available/default
a ver si asi se resuelve el problema:
Código: Seleccionar todo
<VirtualHost *:80>
	ServerAdmin webmaster@localhost
	DocumentRoot /var/www
	<Directory />
		Options FollowSymLinks
		AllowOverride All
	</Directory>
	<Directory /var/www/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		allow from all
	</Directory>
	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	<Directory "/usr/lib/cgi-bin">
		AllowOverride All
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
	</Directory>
	ErrorLog /var/log/apache2/error.log
	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn
	CustomLog /var/log/apache2/access.log combined
    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride All
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>
</VirtualHost>
No veo mucha diferencia con el de 
elav, solamente en el 
NameVirtualHost, que el mio no lo tiene.
Saludos
 
			 
			
					
				Re: log de apache2 ?
				Publicado: Mar, 17 May 2011, 08:38
				por frizquierdo10
				Bueno para ese error (apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName), solo tienes que asignarle en el fichero de configuración del apache (/etc/apache2/apache2.conf),a la directiva ServerName el valor localhost
Saludos