I moved the complete yii2 installation from one server to another with the help of FileZilla. Sadly, Filezilla don't keep the file permissions by default, and now I'm facing issues with file / directory permissions. I would like to know what's the file permissions for different directories and files in the yii2 directory hierarchy.
相关问题
- what a part does bower/bower-asset play in php app
- how to get post value from multiple array in yii2
- Yii2 GridView with ArrrayDataProvider search
- Session expiring in Yii2 despite user activity
- yii2 captcha not change on page refresh
相关文章
- Can you run console jobs from yii2-basic?
- How to do a bulk database insert in Yii2?
- How to send mail to multiple recipients in Yii2 ma
- Yii2 - check if the user is logged in view
- Render html in yii2 Gridview Widget
- Yii2 - How do I AutoLoad a custom class?
- YII2 gridview sort sum of values of two columns
- Yii2 - DetailView widget float left
You should not transfer the project this way.
Currently it's the era of version control (especially Git) and Composer.
Once you created you project locally and put it under version control, you push it to your main repository and then deploy it to production server.
No need to use Filezilla or something like that.
If your hoster limits you in that, it's better to switch to another one.
In your current situation comparing and setting permissions manually can be very tidious, some of the permissions are set during
init
command.So I recommend to deploy it again using version control and Composer instead of struggling with manual permissions setting.
But just in case, I checked production server, most of the folder permissions are
0755
, for files -0644
. Folders likeruntime
,assets
have0777
permissions and set withinit
command as I mentioned above.Locally I use Vagrant and pretty much everything here has
0777
permission.