Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

WordPress /FTP

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
18 posts
  • 1
  • 2
  • Next
b1tg0d
Posts: 15
Joined: Mon Mar 03, 2014 9:07 pm

WordPress /FTP
  • Quote

Post by b1tg0d » Wed Mar 05, 2014 5:18 am

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!
Top

b1tg0d
Posts: 15
Joined: Mon Mar 03, 2014 9:07 pm

Re: WordPress /FTP
  • Quote

Post by b1tg0d » Wed Mar 05, 2014 6:08 pm

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.
Top

demian
Posts: 543
Joined: Thu May 16, 2013 5:19 am

Re: WordPress /FTP
  • Quote

Post by demian » Thu Mar 06, 2014 4:32 am

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
Top

marl
Posts: 14
Joined: Tue Feb 18, 2014 3:27 pm

Re: WordPress /FTP
  • Quote

Post by marl » Thu Mar 06, 2014 7:56 pm

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
Top

b1tg0d
Posts: 15
Joined: Mon Mar 03, 2014 9:07 pm

Re: WordPress /FTP
  • Quote

Post by b1tg0d » Fri Mar 07, 2014 10:53 pm

Are there any suggestions?
Top

b1tg0d
Posts: 15
Joined: Mon Mar 03, 2014 9:07 pm

Re: WordPress /FTP
  • Quote

Post by b1tg0d » Mon Mar 10, 2014 4:57 am

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.
Top

KhaoMaNee
Posts: 12
Joined: Thu Feb 26, 2015 5:58 am

Re: WordPress /FTP
  • Quote

Post by KhaoMaNee » Thu Feb 26, 2015 6:05 am

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.
Top

afl3x
Posts: 4
Joined: Sat Mar 07, 2015 7:30 pm

Re: WordPress /FTP
  • Quote

Post by afl3x » Thu Mar 19, 2015 9:51 pm

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?
Top

afl3x
Posts: 4
Joined: Sat Mar 07, 2015 7:30 pm

Re: WordPress /FTP
  • Quote

Post by afl3x » Fri Mar 20, 2015 4:37 am

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.
Top

zachska87
Posts: 1
Joined: Sat Apr 04, 2015 5:53 pm

Re: WordPress /FTP
  • Quote

Post by zachska87 » Sat Apr 04, 2015 5:56 pm

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
Top


Post Reply
  • Print view

18 posts
  • 1
  • 2
  • Next

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password