Wordpress chmod and chown script
This script changes the file permissions as they are recommended at https://wordpress.org/support/article/hardening-wordpress/
The .htaccess modifications is apache specific. If you use some other webserver-application (nginx or whatever) just remove this part.