Required permissions for installation
Those settings are mostly relevant to custom VPS, Dedicated server configurations. On web hosting panels, like cPanel or DirectAdmin, you would just need to upload installation zip file via file manager included in panel. Unpack it and proceed in your browser to /install directory. Web hosting panel would take care of setting correct permissions.
To install and use this app you need to set required permissions. Correctness of permissions would be checked during installation.
All directories should have 750 permissions.
All files should have 640 permissions.
Example commands to set correct permissions, /var/www/classified should be replaced with path to app root directory
find /var/www/classified -type d -exec chmod 750 {} \;
find /var/www/classified -type f -exec chmod 640 {} \;
chmod +x /var/www/classified/zz_engine/bin/console;
Chown permissions:
This app and any other requires that it’s files are accessible both by current user and web server’s worker user.
It means that this app, to correctly work must set correct user and group.
In most cases it requires setting user and group to one of following options:
User | Group |
---|---|
your current user | your current user |
your current user | web server’s worker user example: www-data |
web server’s worker user example: www-data | web server’s worker user example: www-data |
Web server’s worker user vary from configuration to configuration, most common are:
www-data, apache2, apache, www, nobody, php-fpm
Basically worker user is user that executes PHP files.
Example commands to set correct chown permissions, /var/www/classified should be replaced with path to app root directory
chown -R YOUR_CURRENT_USER_HERE:YOUR_CURRENT_USER_HERE /var/www/classified;
chown -R YOUR_CURRENT_USER_HERE:www-data /var/www/classified;
chown -R www-data:www-data /var/www/classified;