When dealing with online publishing, the files and folders should be set with appropriate permission for operation. By default, RPI64Box’s default folder permissions are relaxed as the tools default purpose was for performance testing. To deploy as a functional portable or home-hosted solution. Appropriate file and folder permissions should be set.
In order to select all folders and set their permissions, the type -d could be used. In the example below, the chmod was set to 755. Users should identify and set the most appropriate permissions for the group folders.
sudo find /var/www/html -type d -exec chmod 755 {} \;
The same principle is applied for files, except that the type is set to -f.
sudo find /var/www/html -type f -exec chmod 644 {} \;