PHP permissions after updating and moving to php 7.x

morriscey

Member
Apr 7, 2017
21
3
3
PEI
cPanel Access Level
Root Administrator
Hey folks,

Still a novice when it comes to the intricacies WHM. We have a VPS running whm. The bulk of the websites are running wordpress. many of the sites were older and set up with php 5.6., or 7.0. I saw the message both were EOL so I figured I should update PHP for the server.

Selected PHP7.1, 7.2, and 7.3 with all options in easyapache, and applied - 90% of the sites went down. Tried to use the previous profile I made in easy apache, but that didn't bring them back, so switched back to 7.1, .2, .3. IF I have to fix them may as well fix them after they're updated.

Some sites showed the wordpress white screen, some with 500 errors.

The white screen ones came back after turning on debug mode, clearing the site cache, bumping up the php memory limit on some. Some with 500 errors came back after disabling some plugins.

So sites are reachable.

Go to make some changes on the site I'm working on, and realize I'm unable to update or upload through wordpress.

Open up the site in filezilla, chmod the directories recursively to 755, and files to 644 recursively, and once that completed - no change.

Tried the solution here - SOLVED - MPM Pre_fork to Worker changes file permissions
but that wasn't my issue.

I'm sure I'm just missing something dumb again, so I'm here to ask the cpanel Gurus for their advice. If you need any more info just point me at it an dI'll be sure to post it for you.

thanks again,

M
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,273
1,282
313
Houston
Hello @morriscey

There could potentially be multiple issues but I'd suggest starting with the apache error logs as well as the PHP error logs to get an idea of what the issues on the sites are. Because there might be multiple items I'd think it'd be best if you opened a ticket where we can assist you with addressing all of them. If you do open a ticket please update this thread with the ticket ID and we'll follow up here with the outcome.
 

morriscey

Member
Apr 7, 2017
21
3
3
PEI
cPanel Access Level
Root Administrator
Turns out I had CGI as the PHP handler, and didn't have my permissions set properly after changing php versions.

Installing suphp in easy apache, and switching the php handler from cgi to suphp fixed my issues.

Thanks for your help.
 
  • Like
Reactions: cPanelLauren