In the Cake documentation, it indicates there that you should only have this folder visible to everyone. How can you do that? Does this protect my application code from being tampered with?
In the Cake documentation, it indicates there that you should only have this folder visible to everyone. How can you do that? Does this protect my application code from being tampered with?
The webroot
folder is automatically visible to everyone.
If you look at the% s of CakePHP%, you will see that everything is redirected afterwards.
And as you certainly should know, if you access for example:
You will have a smooth return of the file, that is: everyone has direct access.
Now, regarding permissions, I usually hide the following:
.htaccess
To add these permissions do the following:
chmod -R 660 /var/www/pasta_do_seu_site/
chmod -R 770 /var/www/pasta_do_seu_site/app/tmp/
chmod -R 770 /var/www/pasta_do_seu_site/app/webroot/uploads/
Change app/tmp
, to the correct directory of your server / machine.
/var/www/pasta_do_seu_site/
is the command responsible for applying permissions on Linux chmod
means recursively If the server has access only to CPanel, you can go to folder explorer / navigator and set the permissions of each folder manually and / or recursively.
Absolutely sure of the folder you entered so you do not have problems.
Overall it means that:
-R
and tmp
need write, read, and execute permission I think that's it.
Any questions leave a comment.