h1

Error en Cakephp, no se aplican las CSS o imagenes

14/02/2010

Si al visualizar una aplicación Cakephp en un servidor Apache no se muestran las imagenes o las CSS no se aplican correctamente, probablemente sea necesario comprobar los siguientes parámetros en el fichero de configuración de Apache:

carlos@maq10:/etc/apache2/sites-enabled$ cat 000-default

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>


Así como comprobar que está habilitado el módulo “rewrite” en Apache. Posteriormente reiniciar Apache:

carlos@maq03:~$ sudo /etc/init.d/apache2 restart
[sudo] password for carlos:
* Restarting web server apache2                                                                                                                                                         apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[ OK ]

Fuente: Cakephp Google group

Advertisement

2 comentarios

  1. Creo que hay un “/” de mas en la 9na linea (“”). Deberia ser


  2. Hola,

    gracias por tu nota. en principio tal y como está escrito me funciona bien, pero bienvenido sea tu apunte si para otra gente con otras configuraciones les falla.

    Un saludo.



Deja un comentario

Fill in your details below or click an icon to log in:

Gravatar
Logo de WordPress.com

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

You are commenting using your Twitter account. Log Out / Cambiar )

Facebook photo

You are commenting using your Facebook account. Log Out / Cambiar )

Connecting to %s

Seguir

Get every new post delivered to your Inbox.