Inspire52
By:
Inspire52

Silly FileZilla login question

January 27, 2015 9.8k views

I'm not sure what I'm doing wrong. I set up the new root password and logged into filezilla successfully. My host was the IP for my website I'm hosting, username was root, password is the one I resetup through console access and port is 22 for wordpress. BUT, I can't see the directories I want to see.

Am I doing everything right, here's more infromation:
Through my digitalocean, I have set up filezilla. I've logged in with my root password and username.
I'm trying to re-edit the functions.php for my wordpress file but can't seem to find it the directory? I need to just change up a line of text in that file that is causing that error, but I can't seem to find the functions.php. I've done 'force showing hidden folders' as well, in FileZilla.

Everywhere I have looked it seemed that people were able to access the directory:
wp-content
themes
yourtheme
functions.php

But mine isn't there. My remote site isn't like that? Here's a screenshot: http://imgur.com/ehDKXT9

Here's the navigation video on how to find the file through file manager: https://www.youtube.com/watch?v=oqIiLm70US8

Please help!

2 comments
  • How did you install Wordpress? Using apt-get or manually by downloading from Wordpress.org?

  • I just came on digital ocean, selected NYC2, chose nothing for images/distribution, and put in the SSH key. I bought the website through Flippa and did those steps.

4 Answers

When you login into your droplet via SFTP as the root user you start out in that user's home directory "/root" To access your wordpress files you would need to go up a directory and then navigate to /var/www/html

  • Is there anything wrong that I am doing.

    It reads that I'm in SFTP in the picture: http://imgur.com/7lCxdyH
    Or am I reading something wrong.

    I go to into VAR and www isn't there, as seen in the picture.

    **This is what Digital Ocean replied with:
    "I see that you are using a normal Ubuntu image, so we wouldn't really know where your Wordpress directory is.

    This would be wherever you installed Wordpress on your droplet.

    You can always pull up your virtual host in /etc/apache2/sites-available/ and see where the DocumentRoot is located.

    Let us know if you have any additional questions or concerns."

  • If you have no /var/www directory it sounds like you have not installed a web server. Have you installed apache or nginx on this droplet?

  • I didn't install apache or nginx. Don't remember. When I made the droplet I didn't choose those options. How would I go about doing that?

  • This is what I was told by Digital Ocean:
    "Hello,

    The file you need to edit would be in the /etc/apache2/sites-available/ folder. Sadly, we wouldn't know the exact name. However I can help you figure it out!

    First, run the following command:

    ls -lah /etc/apache2/sites-available/

    This will output a list, something like this:

    drwxr-xr-x 2 root root 4.0K Nov 24 22:33 .
    drwxr-xr-x 9 root root 4.0K Nov 24 22:50 ..
    -rw-r--r-- 1 root root 1.5K Nov 24 22:20 000-default.conf
    -rw-r--r-- 1 root root 6.3K Jan 7 2014 default-ssl.conf

    It may also have other records, if you have multiple sites. If you see one with the name of your website like example.com.conf then that's the one you want. If you don't see your site listed, then 000-default.conf will most likely be the one.

    Next, using the file name you've decided on, run the following command:

    grep "DocumentRoot" /etc/apache2/sites-available/000-default.conf

    Of course, replace the 000-default.conf if you found another file with your site name on it!

    This will spit out something like this:

    DocumentRoot /var/www/

    /var/www is the document root in this case. Your location may be different. That is where the files for your site will be located.

    Let us know if you have any other questions!

    Regards,
    James
    DigitalOcean Support
    Check out our community for great tutorials, articles and FAQs!
    https://digitalocean.com/community"

    I do all that in the console access, after logging in?

  • What would I do?

  • If you are looking to learn you can start with this tutorial to get the environment set up:

    https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu

    If you just want to get your site up and running I would recommend destroying this droplet and creating a new one using our Wordpress or LAMP Application image instead of the stock Ubuntu OS image.

    by Etel Sverdlov
    This tutorial explains how to install Apache, how to install MySQL, how to change the root MySQL password, how to install PHP, and how to see what libraries are available. LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache ( the web server) , MySQL (the database), and PHP (the language). This tutorial is written for Ubuntu.
  • Should I select the snapshot I saved before destroying the other droplet?

    How do I know I wouldn't lose my data? Is that saved on wordpress's end... like all my files

  • I think I might've got it. I'm reading about it and it just clicked.

    After buying the website through Flippa and getting the domain transferred over to the account, the seller was helping me set up the server. It's a WordPress site. All she helped me do was create a droplet, didn't even choose wordpress as an image, and she gave me an SSH key. Under DNS, we never added the domain and neither did we change the namesevers given by my DigitalOcean to be updated on GoDaddy. But the server was just running. So essentially all I had was a droplet named with an SSH key. That's why when I go into my FTP program and go to see the files I can't see anything, because nothing it's just not there. It doesn't make sense for my site to run without the WordPress image for 4 days. Is it possible that the server/snapshot was all along on her account and running there?

You do know DO has a one click instal of wordpress. It will install everything that is necessary for the server.

  • So what would I do, reinstall the server? Or can I just add that on? I can't access my site so I'm not sure what to do from here.

  • if that server doesn't have anything useful or is live simply create a snapshot (backup) just in case, and destroy it. Create a new droplet using wordpress under the applications tab. This will install ubuntu 14.04, php, apache, and mysql.

    Here is a tutorial from our community about using and setting up the wordpress one click install

    TUTORIAL

    Let us know if you have any more questions or any other troubles.

    Good Luck!

  • The website is a blog? would i lose my articles? :(

  • When creating a new droplet and selecting an image, in the snapshot section, do I just select my saved image?

  • Ok, Let me understand your problem first. what website are you talking about? To my understanding you didn't install apache, mysql, or php. so you cannot have a website in digital ocean droplet. If you say you have a working droplet in DO, can you provide a link to it?

    I know you bought a website from flippa, have you move those files to your digital ocean droplet, do you have a sample link of the site you bought?

    Here is what my process will be if you bought a wordpress site from flippa and you want to hosted in DO

    • First create a new droplet, Give it a host name, Select $10 size, Select New York 2 as region, Under Select Image click application tab and select "Wordpress", add SSH keys if you would like.

    • Next follow the tutorial I linked previously to setup wordpress

    • Once wordpress is setup and accessible from your domain or ip address, move the theme files you got from flippa and also replace the database data, don't forget to change the wp-options table to reflect your domain.

    At this point your site should be ready and working.

  • This is what happened. I bought the domain 4 days ago. Was blogging and decided to watch a video to ad text in my posts and it required me to write a couple lines in the functions.php file.

    Then the screen was blank. I went on FileZilla couldn't see the files to change. Here I am trying to fix it now. When I initially set up the droplet I was told to do this: "Region: NYC2

    Nothing for images/distribution

    SSH Key: ***** (it works)"

    I set up a new droplet with the snapshot, added the wordpress option, included my SSH, selected my region etc. I don't have the theme files I got from Flippa everything was already set up.

  • The website is inspire52.com

  • I have a snapshot would I just use that tutorial and then just transfer over my saved snapshot to my new setup droplet with apache php everything installed?

  • I think I might've got it. I'm reading about it and it just clicked.

    After buying the website through Flippa and getting the domain transferred over to the account, the seller was helping me set up the server. It's a WordPress site. All she helped me do was create a droplet, didn't even choose wordpress as an image, and she gave me an SSH key. Under DNS, we never added the domain and neither did we change the namesevers given by my DigitalOcean to be updated on GoDaddy. But the server was just running. So essentially all I had was a droplet named with an SSH key. That's why when I go into my FTP program and go to see the files I can't see anything, because nothing it's just not there. It doesn't make sense for my site to run without the WordPress image for 4 days. Is it possible that the server/snapshot was all along on her account and running there?

  • Now, that makes more sense. So technically the droplet you created is useless. because you never change DNS, move files or do anything like that. So, who is hosting the site currently? You need to be provided with the files or access to whatever is been hosted right now, as well as database access so you can move that to DO. From a who is search on the domain it looks like is been hosted at godaddy.

    I would follow the process I described above and create a droplet with wordpress then move the files from whatever they are. After the files are there and you verified that the wordpress site is working I would do the DNS changes and domain setup.

  • I'm in contact with the seller and she still has her account. It was a large investment but the seller failed to provide us with the right installation steps.

    So, because that functions.php error is still, I still need to edit it.
    Do these steps seem viable:
    1) Save backup on her account and transfer the snapshot from her account to mine via DigitalOcean.

    2) Setup droplet with WordPress Image and the provided SSH Key and with the transfered snapshot.
    ** curious instead of doing this: (https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04) can I just the link you provided with the one-click WordPress installation that comes with apache etc.

    3) Go into the DNS on DigitalOcean, add the domain, write the droplet IP given and choose the droplet. Then copy the nameservers and post them into GoDaddy, like this: https://www.youtube.com/watch?v=FZ7CsNykw9c

    4) To fix the error and have wordpress working again: Get the login credentials setup for the console access and the root password for the FileZilla and edit the functions.php file stores in the remote directory.

    5) Then I can go into FileZilla and fix my problem that was fixing the functions.php: https://www.youtube.com/watch?v=oqIiLm70US8

    Is that right?

  • I'm in contact with the seller and she still has her account. It was a large investment but the seller failed to provide us with the right installation steps.

    So, because that functions.php error is still, I still need to edit it.
    Do these steps seem viable:
    1) Save backup on her account and transfer the snapshot from her account to mine via DigitalOcean.

    2) Setup droplet with WordPress Image and the provided SSH Key and with the transfered snapshot.
    ** curious instead of doing this: (https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04) can I just the link you provided with the one-click WordPress installation that comes with apache etc.

    3) Go into the DNS on DigitalOcean, add the domain, write the droplet IP given and choose the droplet. Then copy the nameservers and post them into GoDaddy, like this: https://www.youtube.com/watch?v=FZ7CsNykw9c

    4) To fix the error and have wordpress working again: Get the login credentials setup for the console access and the root password for the FileZilla and edit the functions.php file stores in the remote directory.

    5) Then I can go into FileZilla and fix my problem that was fixing the functions.php: https://www.youtube.com/watch?v=oqIiLm70US8

    Is that right?

  • That seems like a viable solution. Does she uses DO as well? I don't know if you can transfer snapshots from one user to another. if is possible then yes you would just create a droplet from the snapshot transfer to you. if she is not using DO and she is using another hosting company you will have create a droplet with wordpress and move files around as well dump the database data manually.

    Good luck!

  • I'm writing from the owner's account. Yes, she does use DO.

    It says here that we can transfer snapshots to different users. http://imgur.com/i5epk58

    DO gave me this link but it's from 2013. Can't I just transfer the snapshot and pull it up with my new droplet with the wordpress image? https://www.digitalocean.com/community/tutorials/how-to-migrate-wordpress-from-shared-hosting-to-a-cloud-server-with-zero-downtime

    Not sure what's the point of that article.

    by Ramesh Jha
    If you read through this article you'll have the knowledge to migrate your WordPress site from Shared Hosting to a Cloud Server with zero downtime.
  • Also, I've saved the snapshot. I'm running CentOS, and can't seem to login to FileZilla, with my root username and password. How would I do that? Do I have to create a new user?

  • This is what DO has told me:

    I asked them if this was a viable option: "2) Setup droplet with WordPress Image and the provided SSH Key and with the transfered snapshot."

    They replied: You can set up a droplet with WordPress, but if you are trying to do this with a snapshot you cannot. The one-click images are images themselves and cannot be added to a snapshot like the one you transfer to your account.

    Now I'm confused.

  • Would another viable option be to just take over that account with the snapsht and image and just change her login and credit card information through her consent?

  • DO made some important clarifications:
    "That was me that gave you that response, as well as the one previously. It seems there is some confusion.

    If the image you are getting from someone already contains WordPress and all your site data, all you need to do is create a droplet from that snapshot. The One-click image isn't even needed.

    The one-click images are intended to help people get a website or other service going by pre-installing sets of software. If you already have an image from someone else with WordPress you don't need the one-click image.

    Let us know if you have any other questions!""

Well it seems like is not possible to use an image snapshot to start a new droplet. You will have to create a droplet and set up wordpress then just move files and database

  • Can you please link me with the right reading to move files and database to my new droplet.

  • Is another viable option to keep her account and change the credentials for the email, creditcard and so forth to avoid the hassle.

  • Actually DO made some clarification:
    "That was me that gave you that response, as well as the one previously. It seems there is some confusion.

    If the image you are getting from someone already contains WordPress and all your site data, all you need to do is create a droplet from that snapshot. The One-click image isn't even needed.

    The one-click images are intended to help people get a website or other service going by pre-installing sets of software. If you already have an image from someone else with WordPress you don't need the one-click image.

    Let us know if you have any other questions!"

  • Sorry for my late reply, were you able to solve your problem?

Have another answer? Share your knowledge.