Invalid command ‘Order’, perhaps misspelled or defined by a module not included in the server configuration

Tuesday, November 7th, 2006 @ 5:18 pm | Apache, Debian

En Debian testing al actualizar ahora ocurre este problema:

# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...Syntax error on line 141 of /etc/apache2/apache2.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
 failed!

Si vemos la documentación de Apache, el comando ‘Order’ pertenece al modulo mod_access

Al pararecer este módulo ya no está enlazado estáticamente si no que se cargará dinámicamente, lo podemos hacer con

# a2enmod authz_host

Lo que ahora lanza otro error:

debian:/etc/apache2/mods-available# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...Syntax error on line 145 of /etc/apache2/apache2.conf:
Invalid command 'TypesConfig', perhaps misspelled or defined by a module not included in the server configuration
 failed!

Pareceser que hay que activar todo esto:

#a2enmod mime

Ahora este otro error:

# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...Syntax error on line 22 of /etc/apache2/sites-enabled/000-default:
Invalid command 'ScriptAlias', perhaps misspelled or defined by a module not included in the server configuration
 failed!

solucionamos con :

#a2enmod alias

ahora uno típico:

debian:/etc/apache2/mods-available# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
httpd (no pid file) not running
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
.

Añadimos /etc/apache2/apache2.conf

ServerName localhost

reiniciar y listo

P.D.: en algunas listas recomiendan añadir tambien el modulo setenvif

 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

 

Recently

  • Cómo instalar dropbox en Debian usando los sources , copia y pega
  • Infección en apps de Android
  • virt-manager: ERROR:root:unsupported locale setting
  • sopastrike.com – Vamos a la huelga
  • No me gusta wordpress
  • [Asterisk] Tareas de mantenimiento
  • screengrab queda muerto
  • rails + omniauth + omniauth-twitter
  • Ruby on Rails + Papercliip: cannot load such file — cocaine (LoadError)
  • `autodetect’: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
  •