1

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.

Oops D'oh
  • 941
  • 1
  • 15
  • 34
Ângelo Rigo
  • 2,039
  • 9
  • 38
  • 69

1 Answers1

3

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>
Inigo Flores
  • 4,461
  • 1
  • 15
  • 36
  • mod_rewrite is enabled checking with apache2ctl -M and these are the rules present in the .htacces: ` RewriteEngine on RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L] ` – Ângelo Rigo Dec 07 '15 at 10:47
  • Solved! after edit /etc/apache2/sites-available/default.conf adding : ` Options Indexes FollowSymLinks MultiViews # changed from None to FileInfo AllowOverride FileInfo Order allow,deny allow from all ` thank´s for the suppport. – Ângelo Rigo Dec 07 '15 at 11:05
  • Yeah! for users wit apache 2.4+ it will be `apache2.conf` or `https.conf`. Follow more instructions from [docs](http://book.cakephp.org/2.0/en/installation/url-rewriting.html) – Fr0zenFyr Dec 05 '16 at 07:51