Wordpress无法创建.htaccess文件,无法在Centos7上添加图片,链接

I installed the new wordpress site on Centos7 server. After installing it does not automatically create wp-config.php file so I have to copy the settings manually. It also does not create the .htaccess file and I have to create it manually. The problem is that I can upload images but cannot insert them into the article. When adding the link to the article and saving it, report the error:

Forbidden You don't have permission to access /wp-admin/post.php on this server.

If there is no image link, the url in the post will still be saved normally. I have learned quite a lot to fix it but have not been able to handle this problem. Hope everyone helps!

I am extremely grateful!