LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-16-2019, 11:14 PM   #1
gjoshi
LQ Newbie
 
Registered: Mar 2019
Posts: 15

Rep: Reputation: Disabled
How to use FTP to upload files to WordPress


Hi, I am a new Guy. I installed wordpress and ftp. now my client is telling that once he logged but he is not getting wordpress file by ftp. can i have to edit php.in file.

plese suggest/
 
Old 05-16-2019, 11:46 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
While I know practically nothing about setting up Wordpress, here are a few general troubleshooting steps.

I suggest you ask your client for details like the URL they try to access and any error messages that they get. Based on that information, I suggest you check your Wordpress site’s log files, including the webserver and ftp server logs, for relevant messages. They should help you understand the cause of the error, and lead you to the fix.

Perhaps you should not install Wordpress for clients if you are a new guy. Better learn about this product first.

Last edited by berndbausch; 05-16-2019 at 11:52 PM.
 
2 members found this post helpful.
Old 05-17-2019, 12:03 AM   #3
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
+1 to what berndbausch said.

I keep saying this...look for solutions to WordPress problems at wordpress.org.

As I recall, one needs to put the ftp login information in a config file for WP to use ftp for updates...I'll look it up tomorrow if the OP doesn't find it before then.
 
Old 05-17-2019, 07:31 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by gjoshi View Post
Hi, I am a new Guy. I installed wordpress and ftp. now my client is telling that once he logged but he is not getting wordpress file by ftp. can i have to edit php.in file.

plese suggest/
If you tell us version/distro of Linux, how you installed WordPress and FTP, and if you tested those (two different) user ID's/passwords with success, we might be able to help. Read the Question Guidelines...without details there's zero we can tell you, and we can't guess.

Past that, there is typically a "wp_content" folder, where themes/pictures/whatever gets loaded in to, if you want to do a manual copy. If the FTP user has rights to read/write that folder (wherever you put it), that's all they need. Again, you say nothing about how you set up FTP, so if things are chroot'ed, all they'll EVER see is their own home directory.

Personally, uploading pictures/media through the WordPress admin panel is far easier in my opinion.
 
Old 05-17-2019, 12:26 PM   #5
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
gjoshi,
Why can’t the client just login to the website using “website_address/wp-admin” and use the Dashboard to upload media etc?

Is there any need to use ftp to upload files to the server?
https://www.wpbeginner.com/beginners...for-beginners/
 
Old 05-17-2019, 11:46 PM   #6
hakufarm
LQ Newbie
 
Registered: May 2019
Location: 940 Cach Mang Thang 8 Street
Distribution: Ubuntu
Posts: 1

Rep: Reputation: Disabled
You have to research about FTP / FTP Client again before trying anything else.
Anyway, WordPress Media Manager is the best.
 
Old 05-18-2019, 02:05 AM   #7
gjoshi
LQ Newbie
 
Registered: Mar 2019
Posts: 15

Original Poster
Rep: Reputation: Disabled
Arrow

Quote:
Originally Posted by TB0ne View Post
If you tell us version/distro of Linux, how you installed WordPress and FTP, and if you tested those (two different) user ID's/passwords with success, we might be able to help. Read the Question Guidelines...without details there's zero we can tell you, and we can't guess.

Past that, there is typically a "wp_content" folder, where themes/pictures/whatever gets loaded in to, if you want to do a manual copy. If the FTP user has rights to read/write that folder (wherever you put it), that's all they need. Again, you say nothing about how you set up FTP, so if things are chroot'ed, all they'll EVER see is their own home directory.

Personally, uploading pictures/media through the WordPress admin panel is far easier in my opinion.
Thanks for reply,

>>actually I installed wordpress in /var/www/html location so now i hv made this location as a home directory of ftp user and now he is able to access all the wordpress files. this is resolved
>> after that I have done #chown -R ftpuser:ftpuser /var/www/html/*
>> I chrooted when ftp user directory of default /home/ftpuser.
>> But now issue is about permission.
>> I am enclosing the image please go throw that and suggest where and what permission I have to give.
>> is there any issue about permission of apache. can apache user need some kind of permission.
>> does apache user do modify any files in wordpress?
Thanks.
Attached Thumbnails
Click image for larger version

Name:	image.png
Views:	20
Size:	100.9 KB
ID:	30587  

Last edited by gjoshi; 05-18-2019 at 02:15 AM.
 
Old 05-18-2019, 04:48 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by gjoshi View Post
Thanks for reply,

>>actually I installed wordpress in /var/www/html location so now i hv made this location as a home directory of ftp user and now he is able to access all the wordpress files. this is resolved
...and you have opened a pretty good security hole by doing this, and ignoring the advice of using the WordPress admin panel to upload files.
Quote:
>> after that I have done #chown -R ftpuser:ftpuser /var/www/html/*
I chrooted when ftp user directory of default /home/ftpuser.
Which is not the /var/www.... path, is it? You chrooted someone to a different directory than where they need to upload things.
Quote:
But now issue is about permission. I am enclosing the image please go throw that and suggest where and what permission I have to give. is there any issue about permission of apache. can apache user need some kind of permission. does apache user do modify any files in wordpress?
No, but think about what you've done. You've granted read-only permissions to ftpuser to /var/www/html. What do you think they'll be able to do with that, besides read?

Again: don't use FTP, at all. Period. It's old and very insecure. Upload files via the WordPress panel.
 
Old 05-18-2019, 05:49 PM   #9
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Also, again, the answers to wordpress questions are at wordpress.org

I found this definitive regarding permissions of a WP installation.
 
Old 05-18-2019, 08:06 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Are you using a hosting provider on a server share or a VPS? If so, you might call your provider's tech support or looking at their help files to verify that ftp is enabled and that an ftp user is configured.

Last edited by frankbell; 05-18-2019 at 08:13 PM.
 
  


Reply



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
Docker with wordpress/mysql/nginx, no styles in wordpress E-Kami Linux - Server 2 01-23-2018 02:41 PM
LXer: WordPress Plugin Tutorial — How To Install WordPress Plugins LXer Syndicated Linux News 0 12-09-2015 09:10 AM
Apache2 Configuration or Wordpress Configuration: Wordpress index.php not loading khun Linux - Newbie 5 05-18-2012 08:26 AM
how to install pre existing wordpress directory on a existing wordpress to run a web ajbardhan Linux - Software 3 04-28-2012 07:01 PM
IglooFTP-PRO refuses to upload files in folder when I upload folder eBopBob Linux - Software 0 08-27-2004 05:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:45 AM.

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