TurnKey Linux Virtual Appliance Library

Another Total NOOB Question: Where in the world are the Wordpress files?

NOOB Question:

My end goal: I would like to transfer files from my PC to my Wordpress installation using FileZilla. Particularly in the Wordpress installation folder where you would find files like .htaccess, and folders like the "wp-admin" folder, the "wp-content" folder, the "wp-includes" folder... etc.

I connect to my files just fine. I am using ipaddressofappliance over an SFTP connection and I am using the username and the password I set at first boot.

FileZilla connects just fine using these access credentials and what I see are folders called:

  1. "bin"
  2. "boot"
  3. "dev"
  4. "etc"
  5. "home"
  6. "initrd.img"
  7. "initrd.img.old"
  8. "lib"
  9. "lost+found"
  10. "media"
  11. "mnt"
  12. "opt"
  13. "proc"
  14. "root"
  15. "sbin"
  16. "selinux"
  17. "srv"
  18. "sys"
  19. "tmp"
  20. "usr"
  21. "var"
  22. "vmlinuz"
  23. "vmlinuz.old"

 

I have gone through each and every one of these folders, but I can't find this root wordpress folder to save someone's life! Please help. Thank you for all contributions in advance.

Jeremy's picture

That is the / (root) filesystem

And according to the appliance page WordPress is installed to /var/www/wordpress If you so desire you can create a bookmark in Filezilla so you can easily get back there. You can also set it to sync to a local folder (on your PC - where you can keep a copy all the relevant files) if you wish.

Also assuming you are running Windows on your PC; a suggestion: Rather than using Notepad, I strongly suggest that you use Notepad++. Win Notepad, often mangles Linux files but Notepad++ won't. You can set it as the default editor in Filezilla too so even if Win doesn't know what to do with those pesky .htaccess files, Notepad++ opens them automatically (from within Filezilla).

Jeremy, you truly are wonderful!

Jeremy,

thank you again for coming to the rescue! You truly are wonderful!

These were exactly the files I was looking for!!!!

And thank you, so much for your recommendation on NotePad Plus Plus ... it makes me feel better about having purchased it - now I will take it out and use it because I purchased it a while back and it was collecting virtual dust. LOL! To be honest, I only purchased it because one of my friend's told me that I could easily use it to turn text documents into slide shows in Microsoft Powerpoint in less than 60 seconds by using some simple commands. But, now, you are telling me about another powerful feature.

Two more quick questions -

1. I am in the process of transferring my domain name from NameCheap to EasyDNS, where they will allow me to set up an A record so that my domain name points to my public IP address. When it finally does transfer, will the "www" automatically reflect my domain name? Or do I have to go in there and manually rename the file? Do you know?

*** I am only asking because DAP (DigitialAccessPass) doesn't allow their script to be installed to an IP address, it must be a domain name. ****

2. Do commenters get "thanked" in this forum like in other forums? If so, how do I "thank" you?

www A record

Normally when you add a domain here (at easyDNS), the default is that there will be a "CNAME" or "alias" of "www" at your domain to your root domain ("Example.com")

But what does need to happen as well as your webserver needs to know to respond to both example.com AND www.example.com. Under the hood this is usually done via ServerAlias directives in the apache config.

I think there is also a wordpress configuration variable called "default hostname" or something like that: if you set that, then wordpress will redirect requests for one to the other.

In any case, you need both your webserver *and* your DNS setup to handle this.

Thanks, Mark! When I called, it was a little more involved...

Hi Mark,

first and foremost ... I must say that easyDNS is absolutely wonderful!!!!! I understand why this is like one of the web's "not-so-secret, best kept secret." Turnkey Linux Wordpress on an EC2 cloud platform and EasyDNS is the perfect marriage. This combination really is just powerful, flexible, and secure beyond belief. I absolutely will never go back to NameCheap after dealing with your company!

Secondarily, the customer service and support that you have over at easyDNS is world class. Everyone there is extremely patient (which one needs for noobs like me... cause trust me, my naivete will exhaust it ... LOL), knowledgeable, friendly, and efficient!

When I called your support staff, it was a little more involved than the instructions because I had Amazon Route 53 set up. If I remember correctly, the support technician made me set up an A record as opposed to a CNAME for both the naked URL and the www.nameofURL.com version to point to the IP Address.

Then I had to enable support for Amazon route 53 credentials under my "Preferences" tab.

After that, in the domain management portfolio, under the "External Platforms" tab, I had to click on the route 53 link to enter my access credentials. 

I was then instructed to Enable a "Route 53 push to EasyDNS."

For the Route 53 Control Functions, I had to "Export from EasyDNS" and click on ALL of the nameservers (like 7 in total) listed, 4 from Amazon Route 53 and 3 from EasyDNS.

So, this way, my server is being handled by both Easy DNS and Amazon. This setup allows me to still go straight to the Webmin and Shell functions from the Linux Turnkey Dashboard, but on the opposite hand, someone can just type in: http://www.nameofmysite.com or http://nameofmysite.com and go straight to the wordpress website.

**** It will not work though, if a Dynamic DNS is set up though! It just screws everything up! LOL!

Dynamic Updates through Route53

Hi Takiyah, Arnon here.

Just wanted to let you know that I was incorrect about the dynamic DNS updating for Route53. It does, in fact, support it. :) It's not something you need, to the best of my understanding of EC2, but if you do, it will, in fact, automagically update dynamic records to the Route53 system. The only reason it was failing with your earlier config was due to the URL forward that had never been switched to an IP aside from our own forwarder.

Glad to hear all is doing well. and thanks for the kind words!

Arnon

Jeremy's picture

Awesome work on following up guys!

And thanks for posting back with your config notes and feedback Takiyah. Sounds like everyone's happy and all is well in the world! :)

Yes, well, almost ...

Hi Jeremy!

Thanks for dropping in again!

Yes, this whole transition is a 90% happy ending, but trust me, as I sit down at the computer desk, I do recognize that the situation is a PICNIC (Problem In Chair, Not In Computer) because everyone else in the thread clearly knows what they are talking about except me. :)

I am encountering one more hurdle, and then my happy ending is here! I am trying to create a subdirectory in Wordpress manually. The instructions are pretty straightforward. Here's how it reads straight from the wordpress codex page:

******************************************************

Things to Know Before Installing WordPress

Before you begin the install, there are few things you need to have and do.

You need access to your site and its directory and software to proceed with the installation. These are:

Here's the quick version of the instructions, for those that are already comfortable with performing such installations. More detailed instructions follow.

If you are not comfortable with renaming files, Steps 3 and 4 are optional and you can skip them as the install program will create wp-config.php file.

  1. Download and unzip the WordPress package, if you haven't already.
  2. Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.
  3. Rename the wp-config-sample.php file to wp-config.php.
  4. Open wp-config.php in a text editor and fill in your database details as explained in Editing wp-config.php to generate and use your secret key password.
  5. Upload the WordPress files in the desired location on your web server:
  6. Run the WordPress installation script by accessing wp-admin/install.php in a web browser.

That's it! WordPress should now be installed.

*****************************************************

I know how to do all of this, I just have no clue where to find the correct interfaces because I am used to CPanel on shared hosting plans.

I have to access the PHPMyAdmin user interface. What is the navigational pathway so that I can see the PHPMyAdmin console to access the existing wordpress database? I am assuming that once I click on that, then I will see the PHPMyAdmin Database configuration screen.

Furthermore, what is the navigational path to find the MySQL database interface where I can create a new database within the existing Wordpress installation? This would be the section where I would be also be able to create the new database username and password and then add that user to the newly created database to grant the user all privileges. 

Please forgive me, for these painfully simple questions to all of the sophisicated devs on the site. This is a whole new freaking world to me ... as mentioned before, I am used to a CPanel interface from shared hosting providers.

Jeremy's picture

No worries :)

To make it a little more readable I have posted at the bottom. The way these thread go, they get so squashed up when it's a reply to a reply to a reply, etc. So have a look down here!

Nice!!!

Nice!!! You know that saying, "crawl before you walk?" Well, I'm walking with a walker right now... and I'm good with that! LOL! So, I'm going to keep things just as they are right now because it's working. LOL!

However, this is still great to know because I know a few people who run their own servers. So, I'll pass the word on to them. Since they're "techie" people, they will probably get behind the easyDNS dashboard and lose their freakin' minds with the ease of use to configure everything and the flexibility you guys offer.

No, thank you, Arnon, for the wonderful service easyDNS provides ... that's why the words were so kind. Ask the technicians who dealt with me what I had to say when I was trying to transfer my domain name from the other registrar about the other registrar. Those words weren't so kind! LMBO!!! Hey, it is what it is.

Jeremy's picture

Glad I could help :)

As for your questions:

1. From my experience, usually www.mydomain.com and mydomain.com will automatically direct to the same address by default, although ultimately it depends on how the host sets it up. You really need to consult with them directly to be sure.

2. You've already thanked me!

Jeremy's picture

OK some pointers...

In response to up here...

Ok so you already have Filezilla and Notepad++, the only thing I'd suggest to complete your Windows TKL toolkit is an SSH client (although you don't actually need it to follow these instructions if you have any desire to learn a bit of Linux, it's a very handy thing to have). PuTTY is the one for champions! :) You can just download the exe (that's all you need) or you can download the installer if you'd rather. That will give you local access to the commandline of your remote TKL server.

Anyway, as I said you don't actually need PuTTY for this...

To access phpMyAdmin browse to https://<TKL-appliance-doman-name>:12322 eg https://mywordpress.com:12321 There you can log in using the default root account and the password you set on first boot (same as the password you used in Filezilla). As you are using AWS you shouldn't need any extra config to get this to work.

Sounds like you should be familiar enoungh with phpMyAdmin to config the DB. Then use Notepad++ (via Filezilla) to edit the specified file - (in Filezilla) 2 single clicks to edit the name of a file, right-click >> view/edit to edit the php file, save and make sure the file has been reuploaded to your TKL with Filezilla. Sometimes it's a little slow to pop up, but a Filezilla window should show up asking if you want to upload the modified file - 'yes' you do!

Creating a new directory and uploading youre files should be pretty straight forward.

Sorry for the detail... I didn't read your post properly prior and wrote most of that as I read, then I got to: "I know how to do all of this, I just have no clue where to find the correct interfaces because I am used to CPanel on shared hosting plans." - Doh! Hopefully someone else finds it useful! :)

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)