Control Web Panel
WebPanel => CentOS-WebPanel Bugs => Topic started by: Freespirits_GR_Host on September 07, 2020, 02:42:45 AM
-
Hello
I would like to report an issue after using the "Fix Account Permissions".
The fix does the following : chmod files to 644, php files to 640 and folders to 755.
The problem is that someone using Joomla and nginx as webserver using that option will have problems with the website showing "403 Forbidden" error because index.php gets the 640 permission.
Is it possible to have one more option to fix permissions having only the options to chmod files to 644 and folders to 755?
I spend a lot of time to find out that 640 permission added for php files and hope that this post will save some time to people trying to investigate "403 Forbidden error".
Thank you in advance.
-
hello
this is same as
cd /home/user/public_html
find -xtype d | xargs chmod 755
find -xtype f |xargs chmod 644
also check if you've filesystem lock enabled or the php files are immutable.
-
Thank you for your answer but the problem remains.
To all new accounts added and joomla based sites if i use the "Fix Account Issues & Permissions" with or without using nginx it will chmod files to 644, php files to 640 and folders to 755.
I will use the manual way you suggest but it would be great if that was a one click button option.
The problem can be easily reproduced as it appeared and occures to the latest versions.
-
Hello
I just noticed that even when you use NGINX-PHPFPM using the "Fix Account Issues" will not chmod php files to 644 but to 640.
That will cause a lot of headache to many people.
Tested already with Joomla and wordpress websites and leads tp a "403 Forbidden" error.
The problem occurs to all the VPS i am using CWP7.
Please fix this issues the fastest possible.
Thank you in advance.
-
Try switching off Mod_Security
-
hello
this is same as
find -xtype f |xargs chmod 644
also check if you've filesystem lock enabled or the php files are immutable.
xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option
-
Hello and thank you everybody for your replies. ;)
I have already checked everything suggested without luck.
The point is that somebody can reproduce the issue easily by using PHP-FPM to a domain.
If your website is based in joomla or wordpress you will see the "403 Forbidden" as all your php files will get 640 permissions.
Yes i know how to fix it manually but as this forum is to report bugs i just wanted to report that this issue has affect to latest versions of CWP7.
-
forum is not for bug reporting it's used so someone else can suggest you a solution, for bug reporting you need to contact cwp developers
https://control-webpanel.com/contact
-
forum is not for bug reporting it's used so someone else can suggest you a solution, for bug reporting you need to contact cwp developers
https://control-webpanel.com/contact
I apologise.
I just considered that the section "CENTOS-WEBPANEL BUGS" was created so that users report possible bugs.