Ângelo Rigo
Ângelo Rigo

Reputation: 2157

CakePHP can not find webroot/css/js files

I just download via svn controle version a CakePHP 2.5.2 app to a test server .

After database configuration, the app does not open the css files located at app/webroot dir (bootstrap, jquery, main.css).

Is the some aditional config parameter ?

I try changing the owner but did not work.

Upvotes: 1

Views: 2667

Answers (1)

Inigo Flores
Inigo Flores

Reputation: 4469

It looks like a mod_rewrite problem.

Make sure you have .htaccess in your DocumentRoot, and your Apache server is configured properly.

Everything is described in detail in the CookBook.

CakePHP 2.x URL Rewriting


Edit: As described in the comments, it was solved by the OP by replacing the Directory definition in the apache vhost configuration file (/etc/apache2/sites-available/default.conf) with the following:

<Directory /var/www/> 
    Options Indexes FollowSymLinks MultiViews 
    AllowOverride FileInfo 
    Order Allow,Deny
    Allow from all 
</Directory>

Upvotes: 3

Related Questions