Using MultiPHP Manager may change PHP version changes site file permissions
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
-
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? 0 -
All the php version are set to suphp, and i have not changed those any time recently thanks! 0 -
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. 0 -
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. 0 -
You could always create a test site on the server and perform the FTP work with an IP address instead of a domain name to see if you can reproduce the behavior. 0 -
yes thank you 0
Please sign in to leave a comment.
Comments
6 comments