How to fix permission issues in linux.

Webmaster Forums, Forum Promotion, SEO, Domain Names, Hosting & More!

AdminBrave is a community with useful content and resources. Connect with fellow webmasters. Grow your network. Stay informed. Learn and share with us!

B

Brave

Valued Member
Joined
Aug 29, 2021
Messages
44
AB$
204
In wp dash I just clicked clear cache it told me access denied in logs as cache was not cleared then I have used chmod and chown then again it works and after 20 - 30 mins again access was denied.

I am running WordPress on an apache server one thing I do daily is chmod and then chown www-data because my permissions reset daily, please help me how to fix this.
 
Abhi

Abhi

Valued Member
Joined
Jan 21, 2020
Messages
4,264
AB$
11,782
> @Brave one thing I do daily is chmod and then chown www-data

This should not happen. You should talk to your host about this.
 
B

Brave

Valued Member
Joined
Aug 29, 2021
Messages
44
AB$
204
@Abhi I am only the host, CPU is with me tell me what to do?
 
Abhi

Abhi

Valued Member
Joined
Jan 21, 2020
Messages
4,264
AB$
11,782
Did you inspect the logs. It must have something about the change of permissions for var/www folder.
 
B

Brave

Valued Member
Joined
Aug 29, 2021
Messages
44
AB$
204
@Abhi No nothing it just logged my activity and cron jobs.
 
Abhi

Abhi

Valued Member
Joined
Jan 21, 2020
Messages
4,264
AB$
11,782
Which OS are you running ? Ubuntu ? Which version ?
 
B

Brave

Valued Member
Joined
Aug 29, 2021
Messages
44
AB$
204
@Abhi Ubuntu Server 21.04
 
Abhi

Abhi

Valued Member
Joined
Jan 21, 2020
Messages
4,264
AB$
11,782
Try using LTS. They are tried and tested for bugs.
 
admin

admin

Community Leader
Joined
Aug 2, 2019
Messages
1,888
AB$
4,529
How many scripts do you run on your hosting ? How are they separated ? Is this is a home server ?

 
B

Brave

Valued Member
Joined
Aug 29, 2021
Messages
44
AB$
204
> @admin How many scripts do you run on your hosting ? How are they separated ?

Nothing much only WP and Postfix server.

> @admin Is this is a home server ?

Oh Yeah!! I am using it locally only for home users.
 
admin

admin

Community Leader
Joined
Aug 2, 2019
Messages
1,888
AB$
4,529
You should try using some advanced logging tools. Identify what is causing the change in permissions first.
 
B

Brave

Valued Member
Joined
Aug 29, 2021
Messages
44
AB$
204
@admin Which tool and How to install and configure.

> I don't want any xyz tool, I want the tool that should be trusted and should not collect any data.
 
Last edited:
B

Brave

Valued Member
Joined
Aug 29, 2021
Messages
44
AB$
204
Hello @Abhi I tried LTS it worked properly but after a day it started doing the same thing I tried everything but nothing just helped me and now I finally set up cron job to chmod and chown the /home/web directory so that I won't have to struggle for clearing cache.
 
Last edited:
Abhi

Abhi

Valued Member
Joined
Jan 21, 2020
Messages
4,264
AB$
11,782
At least you know your way around.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Abhi
Replies
7
Views
1K
phenomlab
P
Abhi
Replies
12
Views
176
astyx
A
Top