Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am having a hard time understanding how permissions are supposed to be set.
I can't seem to upgrade my wordpress and i have been reading online that it's a permissions problems.
The problem is i don't really understand who is supposed to own the folders and why
I am using CentOS, when i installed it, i remember it asked me to make a user, i made a user called "admin" i can't remember if i made him a root user,
i also have the root user, and i recently found out there is the apache user also,
can someone explain to me, what permissions and which user is supposed to have permissions for these files,
currently i have 3 users all mixed up, as you can see in the picture below,
/var/www/html/turdpress -R is gonna be the apache service/user.
files should be 644
directories should be 755
With few exceptions... None of those apply (cgi-stuff)
When you installed it, the installer "asked you" to make an admin user, it was for the Wordpress admin account
It is NOT a linux system-level user.
It's the god-mode / Power User / Admin
i thinkthe most important bit from the previous post is that wordpress has a vast amount of tutorials and documentation for you to peruse.
centos is most certainly also mentioned.
one thing though: somehow i get the impression that you are using centos 6.8. good, and NOT outdated, but many of the tutorials might assume that you are using a somewhat newer operating system.
i have been reading online that it's a permissions problems.
Quote:
Originally Posted by chripy811
maybe it's not a permissions problem
I've used those 2 documents for 5 years or more on 100s of Turdpress installs and all mine work.
IDK what you've read, but I'm pretty sure it wasn't sourced from wordpress.com/codex
You had my attention, and now you don't. Good Luck. Nothing personal.
also, i am using centos 7 , not 6, i will try to yum update
is this shot taken during installation?
it's really busy installing loads of stuff.
i think you are totally confused.
i will break it down for you:
1) you must install the operating system, which includes standard stuff like initial updates, creating a user, choosing a password etc.
2) then you must install a web server. the obvious choice is apache, and php. this with yum.
3) then you must get your server working, i.e. your machine is serving pages to the outside world, from some other machine you can see maybe the apache test page.
4) only now (!) do you go to wordpress, download the latest wordpress, and follow THEIR instructions to install it.
you MUST follow these steps in exactly that order.
there's no other way.
Personally I advise against any CMS as they generally lead to bad practices, if you must use wordpress then makesure to follow the wordpress hardening document: https://codex.wordpress.org/Hardening_WordPress
It'll avoid most of the issues that makes wordpress like Swiss cheese in regards to security.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.