Archive for febrero 2010

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