What permissions for PHP scripts/directories?

前端 未结 6 1541
情歌与酒
情歌与酒 2020-12-08 00:45

I am trying to help a friend moving a web-site from one web-hotel to another. The old place is already closed, I have only a flat tar file of what was in it.

The we

6条回答
  •  一个人的身影
    2020-12-08 01:41

    Assuming your SFTP/FTP user is johndoe and web server group is www-data. johndoe only read, write the files but not execute the files (in my case never). The web server software usually Apache/Nginx from the group www-data can read/write/execute the files. Other users? what are they doing here??? So, I used to set 0670 (rw-rwx---) and works for me always :)

提交回复
热议问题