Issue
I have a problem with CakePHP. I downloaded CakePHP and unzip framework to my project folder: ProjectCake. Then run my site(localhost): conrad.lh .The browser display: You don't have permission to access /app/webroot/ on this server.
Here are my files: /etc/apache2/ste-available/default
<VirtualHost *:80>
ServerName localhost
DocumentRoot /home/conrad/Desktop/projects_java/ProjectCake
<Directory /home/conrad/Desktop/projects_java/ProjectCake>
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
/etc/apache2/site-available/conrad.lh
<VirtualHost *:80>
ServerName conrad.lh
DocumentRoot /home/conrad/Desktop/projects_java/ProjectCake
<Directory /home/conrad/Desktop/projects_java/ProjectCake>
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Can anyone help me ?
Solution
It's most likely a permissions issue. You need to give whatever user the web server is running as read (and possibly write) permissions.
As a temporary and unsecure option, run the following command on your project folder to verify that the issue is caused by a filesystem permissions restriction:
chmod 777 ProjectCake -R
Answered By - kwikness Answer Checked By - Senaida (WPSolving Volunteer)