Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FTP Problems
#1
I upgraded my EHCP from version 30 to version 35.2 on Ubuntu Server 12.04.

After the upgrade, whenever I click "Add Addon Domain" it takes a while to create a directory in the FTP.

Also, whenever a directory is created it, the permissions given to it are drwxr-xr-x. This will not let me upload files to the FTP unless I manually chamod -R 770 for it to work.

The ownership of the files are currently "vsftpd www-data(group)". I already added the ftp user and vsftpd to www-data and the problem still persist.

Finally, it is ignoring my setting on /etc/vsftpd.conf local_umask=002. I had to change the www-data to be the group because the websites being used are joomla and they require ownership of apache to be able to install new modules.

Any help or advice would be appreciated.

Restored from old drupal forum, for user uid:6843 username:torreschrist
You may reset your password to access your new account here.
Reply
#2
First of all, group permissions on web files do not matter. The permission that matters is the owner.

If you try uploading a file via the VSFTPD server, the owner of the file should automatically become the VSFTPD user which should be "vsftpd" by default. Permissions of 755 on the directory should still allow VSFTPD to write (essentially upload) new files.

I'm not sure why you experience these issues because I do not. What other settings were changed or tweaked? As it comes out of the box, the latest version of Yeni should work.

Now, there is an issue dealing with the owner of the web files. When you upload a file using FTP, the owner becomes VSFTPD. If you then want a PHP script to chmod the file, it will fail because the owner of the file is VSFTPD rather than the Apache user. If you create a file using PHP, the owner will be www-data, which is the Apache user. If you try to chmod the file using VSFTPD, it will fail because the owner of the file is www-data. As you can see, this is not the ideal setup as you cannot do both.

Now, to rectify this situation, Apache should be run as the ftp user, which in this case would be VSFTPD. This can be specified in the apache configuration. Doing this, you should theoretically be able to both chmod files using an FTP client and PHP scripts. This is secure because the apache domain templates do not allow PHP scripts to access files outside of their home directory.

Over the next few days, I will test this change. If it works, I will submit it to the main developer for approval. If you could provide any more information, that would be helpful!

Restored from old drupal forum, for user uid:6843 username:torreschrist
You may reset your password to access your new account here.
Reply
#3
If you want permissions to work properly (as I described in my previous post), try this:

http://www.ehcpforce.tk/

Restored from old drupal forum, for user uid:2735 username:own3mall
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping