Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-06-2010, 02:26 PM   #1
LQ Newbie
Registered: Jul 2006
Location: Berkshire
Distribution: CentOS
Posts: 2

Rep: Reputation: 0
FTP problem

Hi ya'll!

This is my first post so quite fitting it should a pretty stupid question

I have a CentOS server to which I have installed mysql/apache/vsftpd/php5 and wordpress.

I can ftp in using the ftp account (i changed the password) but it cannot create directories/files.

Im trying to change the wordpress theme for which it askes for FTP credentials and when I put them in i get this error

Could not create directory /var/www/html/wordpress/wp-content/upgrade/midnight-blue.tmp

I am guessing this is either a permissions problem on the user side or a directory permissions/ownership issue, but i have no clue where to start on this.

Any help would be awesome

Old 02-06-2010, 05:43 PM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
The ftp account is not really for users to log in as, it's for vsftpd to run under. If you look at /etc/vsftpd/vsftpd.conf you should see some entries like -

anonymous_enable ( disable this )
local_enable ( should be enabled )
write_enable ( should be enabled )

If you need to change any of these, make sure you restart vsftpd.

You'll need to log in as a normal user and ensure that this account has permissions to write to the /var/www/html directory

Old 02-06-2010, 06:02 PM   #3
LQ Newbie
Registered: Jul 2006
Location: Berkshire
Distribution: CentOS
Posts: 2

Original Poster
Rep: Reputation: 0

I checked the vsftpd file and that was fine. I discovered the chown command to fix the directory permissions and that seems to have fixed the issue.

A big problem with learning something on your own is that you often do a load of really bad fixes which probably cause even worse problems and never have a clue about it (but enough about me)

thanks for the help



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp from LInux to Serv-U ftp server problem csross Linux - General 2 11-07-2005 04:35 PM
problem with ftp on mandrake 10.1 Official, ftp speeds system wide (anybody noticed?) equinox Mandriva 15 11-10-2004 02:07 PM
FTP problem dafiahmad Linux - Newbie 2 04-08-2004 10:01 PM
FTP problem dsgdevil Linux - Software 4 01-28-2004 06:23 AM
ftp problem robmcw Linux - Newbie 8 03-11-2003 07:16 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration