Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Aaron HARPT
Aaron HARPT
19,845 Points

Having trouble getting FTP to work with Wordpress

I am having trouble FTPing into by remote development server for Wordpress. From my knowledge, I think I may be in the wrong directory. However, I cannot figure out how to get into the correct directory.

Thanks, Aaron

21 Answers

Kevin Korte
Kevin Korte
28,149 Points

what program are you using to ftp in?

Kevin Korte
Kevin Korte
28,149 Points

Okay, typically the root of you domain will be the public_html folder, is that the folder you're in on Filezilla?

Aaron HARPT
Aaron HARPT
19,845 Points

When I connect to the remote site using my FTP information, I do not find a "public_html" folder.

Kevin Korte
Kevin Korte
28,149 Points

Do you have one called httpdocs?

Kevin Korte
Kevin Korte
28,149 Points

Can you screenshot or list out what you're seeing on the server side of your filezilla file explorer?

Aaron HARPT
Aaron HARPT
19,845 Points

Here is a list of what I see:

The root of my project is at "/" then inside of that: project-info/ upgrade/, uploads/, wp-admin/, wp-content/, wp-includes/, .htaccess file, index.php file, several wp-*.php files, etc. Here is a list of what I see: there are subfolders/files within the folders the most notable being in the wp-content/ folder. There is a plugins/ folder, a themes/ folder, an uploads/ folder, and another wp-content/ folder.

Aaron HARPT
Aaron HARPT
19,845 Points

Kevin Korte do you have any other thoughts after seeing my file/folder list?

Kevin Korte
Kevin Korte
28,149 Points

Who is your host? It sounds like you're not ftp'ed into your servers root, but rather you're ftp'ed into the root of the wordpress project

Aaron HARPT
Aaron HARPT
19,845 Points

I believe my host is bluehost. The project that I am working on is a website redesign. The person who originally developed the site set up a remote development server for me to work on. How would I find out whether I'm FTP'ed into my server's root?

Kevin Korte
Kevin Korte
28,149 Points

I don't think there is anyway to tell on Filezilla, but bluehost should be much like the others, and typically your server root is public_html. FTP accounts can be given or limited to certain folders, so it may be possible that this ftp account does not have permission to be in the root.

It does however look like you're in the root of the wordpress project, and that might be a-ok for what you need. The directory you described would be the root of the wordpress website.

Aaron HARPT
Aaron HARPT
19,845 Points

Thanks for your help so far! I am trying to delete my custom Wordpress theme as I am unable to get into my site because of an error and believe that my custom theme is my issue. How would I remove the theme via FTP?

Kevin Korte
Kevin Korte
28,149 Points

If you double click into the wp-content folder, and than double click into the themes folder, you should see your theme folder in there, and than you can select it and delete it - and then try refreshing the page.

Aaron HARPT
Aaron HARPT
19,845 Points

I believe I already deleted by custom theme. The twentyfifteen theme is the only theme in "/wp-content/themes". If this helps at all, the error I am getting when I attempt to log into my Wordpress site is a 500 internal server error.

Kevin Korte
Kevin Korte
28,149 Points

Does the rest of the site work besides logging in?

Kevin Korte
Kevin Korte
28,149 Points

Have you tried replacing all of the wordpress files with a fresh download? You're in the wp root it sounds like, so you should be able to do so. The only thing you'll have to do is copy all of the database connection settings from the wp-config.php file otherwise you'll get an "error establishing database connection" error when you refreshed.

Kevin Korte
Kevin Korte
28,149 Points

You can also ask your host for help. 500 server error isn't real helpful, but they should have access to better log details and may be able to help you pinpoint what is generating the error.

500 server error is really just a public friendly error so it gives away zero info to what might actually be wrong, which is a security measure so you're not giving malicious users info they can use against you.

Aaron HARPT
Aaron HARPT
19,845 Points

So you would recommend a fresh install of Wordpress? I was kind of thinking of doing that myself. Would I just copy the contents from my current wp-config.php file and paste it into the new wp-config.php file from the new install? Once I do that, would I just completely wipe all my files/folders from the remote directory and then upload the entire new install?

Kevin Korte
Kevin Korte
28,149 Points

Basically, in filezilla on the server side, you see a file called wp-config.php, right? I would delete EVERYTHING BUT that one file.

When you download wordpress, it won't have that file, it will have a wp-config-example.php file, or something like this. Once everything on the server is gone but that config file, start uploading the new freshly downloaded wordpress package. Once filezilla chews through all of that, try refreshing the page and see if it works.

Aaron HARPT
Aaron HARPT
19,845 Points

How long should I wait to let Filezilla process the new Wordpress install?