Using MultiPHP Manager may change PHP version changes site file permissions

dataforge

Member
Aug 9, 2016
13
0
51
NC, USA
cPanel Access Level
Reseller Owner
whm 98.0.4. This morning, I used multiphp manager. i noticed that a new site i had made recently was set to a specified php version, and not inherit. i set the site from 7.4 to 7.2 and tested the site and it loaded fie. I set it to 7.0 and tested the site and it loaded fine. i set it back to 7.4 and it worked fine. so I wasnt sure why it was set instead of inherit. so i set it to inherit, and it worked fine still.
but about an hour later we realized the site stopped working. it is just wordpress, and was giving 500 internal server error. i contacted our server host to look as i could not figure out why. they say the file permissions was wrong, as we use suphp and the file permissions was higher than allowed, as the server log said:
[Wed Aug 18 15:19:40.873147 2021] [:error] [pid 74485:tid 47656647509760] [client 10.20.5.236:46128] SoftException in Application.cpp:261: File "/home/countryr/public_html/index.php" is writeable by group, referer: xxxxxx.com


and they had to set the files 644 and directories 755 and then the site worked

so it could be investigated if changing multiphp modifies the file permissions

thanks
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,519
1,030
313
cPanel Access Level
Root Administrator
Hey there! Changing the PHP setting wouldn't change the permissions on the site, but you can have different PHP handlers for each version, which will cause the sites to behave differently. On the main WHM >> MultiPHP Manager page you'll see you can choose the handler for each version. Can you make sure those are all set to suPHP in the dropdown menu?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,519
1,030
313
cPanel Access Level
Root Administrator
Thanks for the additional details. I still don't believe that MultiPHP Manager would be changing any permissions, as that would be a security disaster for all users on a system.

Do you know how that index page was created? By default, when WordPress is installed, that file is the standard 644, but depending on how it was edited at some point could change things.

If you're able to submit a ticket to our team we'd be happy to look at the system for you directly.
 

dataforge

Member
Aug 9, 2016
13
0
51
NC, USA
cPanel Access Level
Reseller Owner
I install wordpress by logging into the ftp of the domain with filezilla using the users cpanel credentials. i then go into public_html and drag and drop the wordpress files from my local computer to the public_html. i setup the database in cpanel, and then when the copying is done i visit the site and it goes through the wordpress setup wizard.
maybe the next site i setup i will test changing the php version while i'm setting up things to test, but i dont want to test on this site again and mess it up aha.