I'm using Apache2 and Firefox 53.0.2 on Mac OS 10.11.3.
I just installed CakePHP, created a new project and am now able to
view the CakePHP start page.
But the page is rendered without any formatting, which means that
for some reason my server does not use the css files located at webroot/css/
in the CakePHP directory.
How should I fix this ? Below is the relevant part of my httpd.vconf file :
<VirtualHost *:80>
ServerName zqzpatientcare.com
ServerAlias www.zqzpatientcare.com
DocumentRoot "/Users/roparzhhemon/Documents/Web_Projects/Patientcare_CakePHP/patientcare"
ErrorLog "/private/var/log/apache2/zqzpatientcare.com-error_log"
CustomLog "/private/var/log/apache2/zqzpatientcare.com-access_log" common
ServerAdmin web@coolestguidesontheplanet.com
<Directory /Users/roparzhhemon/Documents/Web_Projects/Patientcare_CakePHP/patientcare>
Require all granted
DirectoryIndex index.php
</Directory>
</VirtualHost>
Have you try this https://book.cakephp.org/3.0/en/installation.html#apache ? Did you check Apache logs?
It works since I added AllowOverride All, thanks
In such case, also check whether rewrite mode is enable or not. Sometimes it happen when rewrite mode does not enable.