cd /var/www
cd /var/www/html
chown -R www-data:www-data /var/www/html
or
chown -R www-data:www-data /var/www
chmod -R 755 /var/www/html
or
chmod -R 755 /var/www/html
chmod -R 755 /var/www/html config/config.php
Try with this
sudo chmod 777 www
cd /var/www
cd /var/www/html
chown -R www-data:www-data /var/www/html
or
chown -R www-data:www-data /var/www
chmod -R 755 /var/www/html
or
chmod -R 755 /var/www/html
chmod -R 755 /var/www/html config/config.php
i already used 777 tho D:777 is insecure. You probably just needed chmod +x tfs for the binary. Also, you do not need to use sudo. You are already root. For the website, do not chmod the whole dir, just the needed ones.
Would you mind to explain why(and how) is 777 more "hackeable" than 755?Do not use 777 you can be hacked
Go to www folder
orCode:cd /var/www
and press comand:Code:cd /var/www/html
Code:chown -R www-data:www-data /var/www/html or chown -R www-data:www-data /var/www
Code:chmod -R 755 /var/www/html or chmod -R 755 /var/www/html
Or
Code:chmod -R 755 /var/www/html config/config.php