Page 1 of 2

WordPress /FTP

Posted: Wed Mar 05, 2014 5:18 am
by b1tg0d
I've just installed VespaCP on a new CentOS 6.5 minimal install. I created a user and added a domain, on the domain I installed WordPress 3.8.1 and I tried to download/install a plugin. It asked for FTP credentials so I added them. I get this error:

Downloading install package from https://downloads.wordpress.org/plugin/ ... .4.0.3.zip

Unpacking the package…

Could not create directory.

I tried to connect to FTP using Filezilla using the user FTP account, I can connect and navigate directory but I cannot upload files, change file names, change file permissions or delete files using the user FTP account. I can only download files from the server to my local machine.

If I use SFTP as server root I can modify, upload files just fine.

1. How can I allow WordPress to download and install files without FTP?
2. How can I allow users with FTP accounts to modify, upload files to their directory?

Thanks in advance for your hard work! I love VestaCP!

Re: WordPress /FTP

Posted: Wed Mar 05, 2014 6:08 pm
by b1tg0d
Update: I tried to install proFTP hoping that it would fix the user FTP permissions and allow users to create/modify files via FTP.
I followed the instructions outlined in the documentation and proFTP fails to start.

Starting proftpd: [FAILED]

I can yum remove proFTP and re-install vsftp, however I have the same issue with users not being able to create/modify files.

Re: WordPress /FTP

Posted: Thu Mar 06, 2014 4:32 am
by demian

Code: Select all

yum install proftpd
yum remove vsftpd
chkconfig proftpd on
wget http://c.vestacp.com/0.9.8/rhel/proftpd.conf -O /etc/proftpd/proftpd.conf
sed -i "s/vsftpd/proftpd/" /usr/local/vesta/conf/vesta.conf
service proftpd restart

Re: WordPress /FTP

Posted: Thu Mar 06, 2014 7:56 pm
by marl
demian wrote:

Code: Select all

yum install proftpd
yum remove vsftpd
chkconfig proftpd on
wget http://c.vestacp.com/0.9.8/rhel/proftpd.conf -O /etc/proftpd/proftpd.conf
sed -i "s/vsftpd/proftpd/" /usr/local/vesta/conf/vesta.conf
service proftpd restart
Got this error after restarting :

Code: Select all

Starting ftp server: proftpdtx proftpd[31736]: Fatal: unknown configuration directive 'VRootEngine' on line 5 of '/etc/proftpd/proftpd.conf

Re: WordPress /FTP

Posted: Fri Mar 07, 2014 10:53 pm
by b1tg0d
Are there any suggestions?

Re: WordPress /FTP

Posted: Mon Mar 10, 2014 4:57 am
by b1tg0d
Ok, after many tries of installing CentOS 6.5, I've found out the best way to do things.

1. Install CentOS 6.5 - choose basic server install.

2. After successful install ssh root to the server and add additional IPs to the network configuration.

3. Install Vestacp, following documentation.

4. After successful Vestacp install, login as admin to Cpanel.

5. Delete all packages EXCEPT default.

6. Reboot server.

7. Login to Vestacp - Goto services tab and confirm all services are up and running at least 5 minutes. If a service stops trouble shoot that service.

8. Add your child ns domain following the private domain name server instructions in the documentation.

9. Add a user.

10. Login to the user account and add a domain. Be sure to check "additional FTP" and create login credentials, otherwise you won't be able to upload/modify files in that account.

Thats it. Everything should work fine from here on.

Re: WordPress /FTP

Posted: Thu Feb 26, 2015 6:05 am
by KhaoMaNee
I couldn't restart proftp after following the steps. Then I edited the host (based on this guide https://www.digitalocean.com/community/ ... n-centos-6) and it started ok.

Re: WordPress /FTP

Posted: Thu Mar 19, 2015 9:51 pm
by afl3x
So I have similar issue:

WordPress is set up and everything, but when I try to install theme, it asks for FTP credentials. I enter IP address, user name, and password. Goes to next page, downloads, but when tries to unzip, says that it cannot create directory, like stated above.

Is there a fix for this?

Re: WordPress /FTP

Posted: Fri Mar 20, 2015 4:37 am
by afl3x
afl3x wrote:So I have similar issue:

WordPress is set up and everything, but when I try to install theme, it asks for FTP credentials. I enter IP address, user name, and password. Goes to next page, downloads, but when tries to unzip, says that it cannot create directory, like stated above.

Is there a fix for this?
Got an easy fist. Mount public_html and code:

Code: Select all

chown admin -R *
or after you ssh to the server ( ssh root@(IPADDRESS))

Code: Select all

cd /home/admin/web/domain.tld/public_html/
chown admin -R *
Did this and new themes/plugs all downloaded and installed seamlessly. Did not require me to enter ftp credentials or anything.

Re: WordPress /FTP

Posted: Sat Apr 04, 2015 5:56 pm
by zachska87
I am having this same issue. Any FTP users created can copy files without issue but cannot create directories. Any idea why this would be? Everything is already owned by admin:admin so the above fix did not work for me. I'm on Ubuntu 14.04