Yii Framework Forum: ftp user - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ftp user Rate Topic: -----

#1 User is offline   dimis283 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 364
  • Joined: 24-January 09

Posted 24 August 2016 - 08:41 AM

I am trying to create ftp users for centos server.
I manage to create one and connect to server but I can not set var/www as ftp folder and to upload there the files.How can I set ftp client to see var/www and upload there files?
Posted Image
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,184
  • Joined: 17-January 09
  • Location:Russia

Posted 24 August 2016 - 09:14 AM

Depends on which FTP deamon is used.
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I can work more on Yii: https://www.patreon.com/samdark
0

#3 User is offline   dimis283 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 364
  • Joined: 24-January 09

Posted 24 August 2016 - 10:59 AM

I set up vsftp,I follow also this guide trying to use /var/www as folder but without success.
I can connect via ftp but I can not upload files or even see the var/www folder via ftp
Posted Image
0

#4 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,184
  • Joined: 17-January 09
  • Location:Russia

Posted 24 August 2016 - 12:09 PM

Permissions issue, it seems.
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I can work more on Yii: https://www.patreon.com/samdark
0

#5 User is offline   dimis283 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 364
  • Joined: 24-January 09

Posted 25 August 2016 - 02:03 AM

I set at vsftp.conf and I manage ftp user to see var/www at ftp client programm
chroot_local_user=YES
chroot_list_enable=YES

Now I have these problems.I thing there are sub-folders at var/www,html folder etc that I can not see at ftp program and there is a 553 Could not create file. when I am trying to upload a file via ftp
Posted Image
0

#6 User is offline   dimis283 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 364
  • Joined: 24-January 09

Posted 25 August 2016 - 06:54 AM

I noticed that apache "home" is var/www.
Does it conflict with my user home that I set it at var/www and now I change it at var/www/html?
Posted Image
0

#7 User is offline   dimis283 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 364
  • Joined: 24-January 09

Posted 26 August 2016 - 04:29 AM

I read this
and someone writes

Quote

Only use this if you have added a user with web root directory as it home directory
allow_writeable_chroot=YES

So I write at vsftpd config file
 allow_writeable_chroot=YES
but then ftp server can not understand this command and can not restart.I have 2.2 version of vsftpd
What can I do for this?
Posted Image
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users