Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: barnaba123 on May 23, 2021, 08:33:56 AM

Title: Error 500 every few days. Have to Fix permissions everytime
Post by: barnaba123 on May 23, 2021, 08:33:56 AM
Hello,
I have problem with permissions. They seem to reset somehow, but im doing nothing to those files. They just lay around and are executed every while.

Still, after few days, I have to go and fix permissions, meaning i cannot autoimate process as it requires my attendance.

What may be causing this problem? This account is quite big and it takes some time to restore permissions.
Title: Re: Error 500 every few days. Have to Fix permissions everytime
Post by: josephgodwinke on May 23, 2021, 10:58:16 AM
Are you saying numerous accounts have permission issues or it is just one account?

Do these account(s) have subdomains?
Title: Re: Error 500 every few days. Have to Fix permissions everytime
Post by: barnaba123 on May 31, 2021, 12:51:43 PM
I'm really sorry for late reply. Acually I'm using only one account (dedicated server) and it has 1 Prestashop and one thirtybees.

Every while permissions are lost. But not those "visible". chmod is always proper. but 500 and only Fix permissions on this account recovers it.

This script is static, not modified, not updated (except manually). Not sure what happens to it it starts to produce 500 and only Fix Permissions helps it.

This script is not used daily, more like weekly and /scripts/cron_fix_openbasedir does not detect it.
Title: Re: Error 500 every few days. Have to Fix permissions everytime
Post by: Igor S. on June 01, 2021, 09:13:01 AM
Maybe you uploading files under another user like root or you have set the root login credentials for FTPs in your website config.
Title: Re: Error 500 every few days. Have to Fix permissions everytime
Post by: barnaba123 on June 01, 2021, 03:29:23 PM
When I upload, i do it with user account i created.
And PHP files work fine after upload, but some times passes and after few weeks of not using are 500.

If it's not common problem, then maybe I will just wait untill it happens next  time, will check exactly which "fix permissions" option fixes problem and report back when i have 100% confirmed it happens without my changes.
Title: Re: Error 500 every few days. Have to Fix permissions everytime
Post by: Igor S. on June 04, 2021, 07:15:59 PM
That's weird. Seems like you changing the owner or permissions manually.