Wordpress "Unable to locate WordPress root directory" error

Enes

New member
Joined
Jun 20, 2024
Messages
6
When I want to update WordPress, it's not automatic. I think it's DirectAdmin's fault but I don't know how to solve.

1719352541905.png


1719352486239.png
 
I don't think DirectAdmin has anything to do with WordPress.
 
you need to create FTP login credential and set working directory to your WP site.
 
Well, in Pro Pack there is a WP management part.
Check the website and log pathes in the DB too.
 
Man, seriously.... "Server Admins" these days are jokes.......

Have you even filled in the FTP details? Just create a separate FTP login pointing to the /public_html/ and it should update minor fixes...


Edit: I'm sorry if this sounded harsh but
 
You don't need FTP for this. I think your permissions are not correct. That is why wordpress cannot update.

Login via ssh and do a set_permissions.

Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh domaindir example.com

(replace example.com with real domain)

Or set the user home

cd /usr/local/directadmin/scripts
./set_permissions.sh set_user_home $USER

(replace $USER with real username)
 
Edit: I'm sorry if this sounded harsh but
For some this will be the case.
But don't forget we all had to learn. Next to that, remember that DA also provides the personal and lite licenses for hobbyists and beginners. So it might not even be a hosting company. ;)
And even they have to start learning things at some point and since he's newly registered....
 
And even they have to start learning things at some point and since he's newly registered....

But if you use Google and search the exact phrase "Unable to locate WordPress root directory" you will get thousands of results including videos demonstrating how to fix the problem. That is how you learn. Not by asking the exact same question yet again and expect other people to Google it for you. The only answer for this is: "Google it." Its already been answered thousands of times. I don't know the answer either but I guarantee you I can find the answer within a few minutes using Google. That is the number one lesson a new person should learn.
 
But if you use Google and search the exact phrase "Unable to locate WordPress root directory" you will get thousands of results including videos demonstrating how to fix the problem. That is how you learn.
I don't agree with you. Google is not the master or teacher. You can find a lot on Google. But that is not what a forum is forum.
Because thinking that way, we can point in most questions here to Google, because via Google the answers are also found in other threads here on the forum. Als often on multiple places.

Next to that, doing Google searches must sometimes also be learned and get used to. Also in those many posts one can find about an issue, often tere are 10 different ways to do things, especially with Wordpress. So I can imagine somebody asking on a place he/she has more trust in.

But as said, looking at it that way, we can use the "Google it" in most forum posts here. Which is not user friendly and not what forums are intended for.
I do agree people should learn to use Google too for solutions, just not as main thing, depending on the issue and the trust you have in the Google answers.
 
depending on the issue and the trust you have in the Google answers.
I do agree with this, when I get stuck with PHP, I Google it........ However, seeing as I know how PHP works, I usually can tell what is the more workable solution to my problem.
 
I have learned everything I know about running a server from using Google and I am very good at what I do. You can count on one hand the number of questions I have posted here. That is because the answers are already out there. With DA Google often points back here if it is DA related. Its not really Google but its research. Google is just one of the tools.
 
and I am very good at what I do
Good you have that trust in yourself. But this certainly won't be the case for everybody that they can learn it that way.

I personally mostly have learned (way before I began hosting) by running servers at home and learning from my mistakes. Google wasn't that great at that time either, true.
And Google is indeed only a tool. And that's the endless circle, because without the posts and questions on all different forums, Google couldn't provide the answers either.

Not everybody has the same learning capabilities either. Also I can learn way better in a practical environment then theoretical (Google is theoretical too).

Anway, also remember that it's sometimes hard to find the correct solution between the hundreds (often different) answers as said.
I still think normally it's just not done to say "google it" on forums, except by maybe adding it in a helpfull comment.

Especially for this question, I think he's at the right place if he thinks it's caused by DA and one can't conclude only by this question that a server admin is a joke because he doesn't know this. It's not correct.

I hope we didn't scare him away by this.
 
Anway, also remember that it's sometimes hard to find the correct solution between the hundreds (often different) answers as said.

That is how you learn how things work. If you just want the quick answer for your unique problem then fine asking the question may be the fastest. But if want to really learn, going through all the stuff that doesn't work is just as valuable and in the long run better, in my opinion. I wouldn't trade that experience for anything. I actually started with books before Google.
 
But if want to really learn, going through all the stuff that doesn't work is just as valuable and in the long run better, in my opinion.
If you have time for it, then it's always better to try and see if you can fix it yourself one way or the other, we agree about that part. ;)
 
If you have time for it, then it's always better to try and see if you can fix it yourself one way or the other, we agree about that part. ;)

I know we are way off topic but just an experience from yesterday. I was at home getting a server ready for production. I just could not get the network to connect. Everything seemed right. The network lights blinked. After 4 hours I figured out some ports on an old switch I was using were going bad. Yes I wish it didn't take 4 hours but its a lesson I will not forget. If I had asked somebody and got the answer in 5 minutes I know I definitely would not remember to check the ports the next time it happens. Its the hard lessons that make you good at what you do not the quick fixes. If I ask something on a forum its because I have already spent days researching it.
 
Yes that's what I mean, if you have time for it. If your customers were complaining about lack of access due to the network issue, it might have been another case. ;)
Anyway I stop with this, we indeed getting to much off-topic.

@Enes did you manage to fix your issue?
 
Back
Top